/**
 * Protected areas archive + single extras
 *
 * @package HelloElementorChild
 */

body.post-type-archive-protected_area .site-main.hec-protected-archive,
body.tax-protected_area_category .site-main.hec-protected-archive,
body.single-protected_area .site-main.hec-protected-single {
	max-width: none !important;
	width: 100%;
	margin: 0;
	padding: 0;
}

.hec-protected-archive__intro {
	max-width: var(--container-max);
	margin: 0 auto var(--space-2xl);
	padding: 0 var(--space-md);
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--color-muted-foreground);
}

.hec-protected-archive__section {
	max-width: var(--container-max);
	margin: 0 auto var(--space-2xl);
	padding: 0 var(--space-md);
}

.hec-protected-archive__section-title {
	margin: 0 0 var(--space-lg);
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: var(--font-weight-bold);
	color: var(--color-ink);
	line-height: 1.25;
}

.hec-protected-archive__section-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.hec-protected-archive__section-title a:hover,
.hec-protected-archive__section-title a:focus-visible {
	color: var(--color-sea);
}

.hec-protected-archive__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-lg);
}

.hec-protected-archive__card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.hec-protected-archive__card:hover {
	border-color: var(--color-sea);
	box-shadow: var(--shadow-medium);
	transform: translateY(-4px);
}

.hec-protected-archive__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-frost);
}

.hec-protected-archive__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-base);
}

.hec-protected-archive__card:hover .hec-protected-archive__thumb img {
	transform: scale(1.04);
}

.hec-protected-archive__card-title {
	margin: 0;
	padding: var(--space-md);
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: var(--font-weight-bold);
	line-height: 1.35;
	color: var(--color-ink);
}

.hec-protected-archive__map {
	max-width: var(--container-max);
	margin: 0 auto var(--space-2xl);
	padding: 0 var(--space-md);
}

.hec-protected-archive__map-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: white;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.hec-protected-archive__map-figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

.hec-protected-archive__map-link {
	position: relative;
	display: block;
	cursor: zoom-in;
	text-decoration: none;
}

.hec-protected-archive__map-link img {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: center top;
}

.hec-protected-archive__map-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(7, 59, 76, 0.28);
	color: var(--color-surface);
	font-size: 1.35rem;
	opacity: 0;
	transition: opacity var(--transition-fast);
	pointer-events: none;
}

.hec-protected-archive__map-link:hover .hec-protected-archive__map-zoom,
.hec-protected-archive__map-link:focus-visible .hec-protected-archive__map-zoom {
	opacity: 1;
}

.hec-protected-archive__map-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-md);
	padding-inline: clamp(0rem, 1.5vw, 0.75rem);
}

.hec-protected-archive__map-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: var(--font-weight-bold);
	color: var(--color-ink);
	line-height: 1.25;
}

.hec-protected-archive__map-hint {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--color-muted-foreground);
}

.hec-protected-archive__empty {
	margin: 0;
	color: var(--color-muted-foreground);
	font-size: 0.95rem;
}

@media (max-width: 1024px) {
	.hec-protected-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hec-protected-archive__map-inner {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.hec-protected-archive__map-content {
		padding-inline: 0;
		text-align: left;
	}
}

@media (max-width: 540px) {
	.hec-protected-archive__grid {
		grid-template-columns: 1fr;
	}
}
