/*
 * Home — "Desde Sámara a todo Costa Rica"
 * traveltour-child/assets/css/lt-home-zones.css
 *
 * Bloque oscuro antes de "Popular Tours". Usa las variables del Home
 * (page-homepage-2.php) con respaldo, y todo va bajo .bwm-hz.
 */

.bwm-hz {
	--hz-bg: #0E1A0B;
	--hz-bg-2: #142612;
	--hz-ink: #F9F6F1;
	--hz-muted: rgba(249, 246, 241, 0.72);
	--hz-teal: var(--accent-teal, #10D2BE);
	--hz-teal-bright: var(--accent-teal-bright, #4FE0D2);
	--hz-magenta: var(--accent-magenta, #E90A89);
	--hz-sun: var(--accent-sun, #F2A93B);
	--hz-line: rgba(249, 246, 241, 0.12);
	--hz-font: var(--font-body, 'Poppins', sans-serif);
	position: relative;
	overflow: hidden;
	padding: 96px 0;
	background:
		radial-gradient(60% 70% at 25% 40%, rgba(16, 210, 190, 0.14), transparent 70%),
		radial-gradient(40% 50% at 90% 10%, rgba(233, 10, 137, 0.10), transparent 70%),
		var(--hz-bg);
	color: var(--hz-ink);
	font-family: var(--hz-font);
}

.bwm-hz__head {
	max-width: 720px;
	margin-bottom: 40px;
}

.bwm-hz__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hz-teal);
}

.bwm-hz__title {
	margin: 0;
	font-size: clamp(2rem, 4.2vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--hz-ink);
}

.bwm-hz__sub {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hz-muted);
}

.bwm-hz__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px;
	align-items: start;
}

/* ── Mapa ───────────────────────────────────────────────────────────────── */
.bwm-hz__mapcard {
	padding: 16px;
	border: 1px solid var(--hz-line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.03);
}

.bwm-hz__map {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
}

.bwm-hz__prov {
	fill: rgba(249, 246, 241, 0.07);
	stroke: var(--hz-bg);
	stroke-width: 2.5;
	stroke-linejoin: round;
}

.bwm-hz__prov.has-items {
	fill: rgba(16, 210, 190, 0.20);
}

.bwm-hz__plabel {
	font-family: var(--hz-font);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	fill: rgba(249, 246, 241, 0.38);
	pointer-events: none;
}

.bwm-hz__plabel.is-clipped {
	visibility: hidden;
}

/* Rutas desde Sámara: tenues, y la del lugar elegido brillante y en movimiento. */
.bwm-hz__route {
	fill: none;
	stroke: rgba(16, 210, 190, 0.32);
	stroke-width: 1.5;
	stroke-dasharray: 3 5;
	stroke-linecap: round;
	pointer-events: none;
	transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.bwm-hz__route.is-active {
	stroke: var(--hz-teal);
	stroke-width: 2.5;
	stroke-dasharray: 8 6;
	animation: bwmHzFlow 1.2s linear infinite;
}

/* El lugar elegido cambia su conteo por el tiempo de viaje desde Sámara. */
.bwm-hz__pin-time {
	display: none;
	font-weight: 700;
	fill: var(--hz-sun);
}

.bwm-hz__pin.is-active .bwm-hz__pin-time {
	display: inline;
}

.bwm-hz__pin.is-active .bwm-hz__pin-count.has-time {
	display: none;
}

/* Pines (links). */
.bwm-hz__pin {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* El foco del pin es el anillo del circulo (abajo), no el recuadro del
   navegador ni el del CSS global del Home. */
.bwm-hz .bwm-hz__pin:focus,
.bwm-hz .bwm-hz__pin:focus-visible {
	outline: none;
}

.bwm-hz__hit {
	fill: transparent;
}

.bwm-hz__dot {
	fill: var(--hz-teal);
	stroke: var(--hz-bg);
	stroke-width: 2.5;
	transition: r 0.2s ease, fill 0.2s ease;
}

.bwm-hz__pin.is-base .bwm-hz__dot {
	fill: var(--hz-magenta);
}

.bwm-hz__pulse {
	fill: none;
	stroke: var(--hz-teal);
	stroke-width: 2;
	opacity: 0;
	pointer-events: none;
}

.bwm-hz__pin.is-base .bwm-hz__pulse {
	stroke: var(--hz-magenta);
}

.bwm-hz__pin.is-active .bwm-hz__pulse,
.bwm-hz__pin.is-base .bwm-hz__pulse {
	animation: bwmHzPulse 2.2s ease-out infinite;
}

.bwm-hz__pin:hover .bwm-hz__dot,
.bwm-hz__pin:focus-visible .bwm-hz__dot {
	r: 8px;
}

.bwm-hz__pin.is-active .bwm-hz__dot {
	r: 9px;
	fill: var(--hz-ink);
}

.bwm-hz__pin.is-base.is-active .bwm-hz__dot {
	fill: var(--hz-magenta);
}

.bwm-hz__pin:focus-visible .bwm-hz__hit {
	stroke: var(--hz-ink);
	stroke-width: 2;
}

.bwm-hz__pin-text {
	font-family: var(--hz-font);
	font-size: 13px;
	fill: var(--hz-ink);
	stroke: var(--hz-bg);
	stroke-width: 4px;
	stroke-linejoin: round;
	paint-order: stroke;
	pointer-events: none;
}

.bwm-hz__pin-name {
	font-weight: 700;
}

.bwm-hz__pin-count {
	font-weight: 600;
	fill: var(--hz-teal);
}

.bwm-hz__pin.is-active .bwm-hz__pin-count {
	fill: var(--hz-sun);
}

/* Las rutas se dibujan al entrar en pantalla (lt-home-zones.js pone .is-in). */
.bwm-hz.is-enhanced:not(.is-in) .bwm-hz__route,
.bwm-hz.is-enhanced:not(.is-in) .bwm-hz__pin {
	opacity: 0;
}

.bwm-hz.is-in .bwm-hz__route,
.bwm-hz.is-in .bwm-hz__pin {
	opacity: 1;
	transition: opacity 0.8s ease;
}

/* Controles de zoom (solo celular; los muestra BWMMapView). */
.bwm-hz__mapctl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.bwm-hz__mapctl[hidden] {
	display: none;
}

.bwm-hz__mapbtns {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.bwm-hz__mapbtn[aria-pressed="true"] {
	border-color: var(--hz-teal);
	background: var(--hz-teal);
	color: var(--hz-bg);
}

.bwm-hz__maphint {
	order: 2;
	flex-basis: 100%;
	margin: 0;
	font-size: 12px;
	color: var(--hz-muted);
	text-align: right;
}

.bwm-hz__mapbtn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hz-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--hz-ink);
	font: inherit;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.bwm-hz__mapbtn--text {
	width: auto;
	padding: 0 16px;
	font-size: 13px;
}

.bwm-hz__mapbtn:hover {
	border-color: var(--hz-teal);
}

.bwm-hz__mapbtn:focus-visible,
.bwm-hz__cta:focus-visible,
.bwm-hz__chip:focus-visible {
	outline: 2px solid var(--hz-teal);
	outline-offset: 3px;
}

/* ── Panel del lugar ────────────────────────────────────────────────────── */
.bwm-hz__spot {
	overflow: hidden;
	border: 1px solid var(--hz-line);
	border-radius: 24px;
	background: var(--hz-bg-2);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.bwm-hz__spot-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: rgba(16, 210, 190, 0.12);
}

.bwm-hz__spot-media[hidden] {
	display: none;
}

.bwm-hz__spot-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bwm-hz__spot-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, var(--hz-bg-2));
	pointer-events: none;
}

.bwm-hz__spot-body {
	padding: 4px 28px 28px;
}

.bwm-hz__spot-prov {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hz-teal);
}

.bwm-hz__spot-name {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--hz-ink);
}

.bwm-hz__spot-blurb {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hz-muted);
}

.bwm-hz__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.bwm-hz__fact {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(249, 246, 241, 0.08);
	font-size: 13px;
	font-weight: 600;
	color: var(--hz-ink);
}

.bwm-hz__fact[hidden] {
	display: none;
}

.bwm-hz__fact--time {
	background: rgba(242, 169, 59, 0.16);
	color: var(--hz-sun);
}

.bwm-hz__fact--price {
	background: rgba(16, 210, 190, 0.16);
	color: var(--hz-teal-bright);
}

.bwm-hz__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin-top: 22px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--hz-magenta);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bwm-hz__cta:hover {
	background: var(--accent-magenta-hover, #C90976);
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* ── Destacados ─────────────────────────────────────────────────────────── */
.bwm-hz__more {
	margin-top: 20px;
}

.bwm-hz__more-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hz-muted);
}

.bwm-hz__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bwm-hz__chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--hz-line);
	border-radius: 999px;
	color: var(--hz-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.bwm-hz__chip[hidden] {
	display: none;
}

.bwm-hz__chip:hover,
.bwm-hz__chip.is-active {
	border-color: var(--hz-teal);
	background: rgba(16, 210, 190, 0.10);
	color: var(--hz-ink);
}

.bwm-hz__chip-meta {
	font-weight: 600;
	color: var(--hz-sun);
}

@keyframes bwmHzFlow {
	to {
		stroke-dashoffset: -28;
	}
}

@keyframes bwmHzPulse {
	0% {
		r: 6px;
		opacity: 0.8;
	}
	100% {
		r: 22px;
		opacity: 0;
	}
}

@media (max-width: 1023px) {
	.bwm-hz__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.bwm-hz {
		padding: 56px 0;
	}

	.bwm-hz__mapcard {
		padding: 10px;
		border-radius: 18px;
	}

	/* BWMMapView: proporcion fija, un dedo hace scroll, dos dedos el mapa. */
	.bwm-hz.is-enhanced .bwm-hz__map {
		aspect-ratio: 4 / 3;
		touch-action: pan-x pan-y;
		-webkit-user-select: none;
		user-select: none;
	}

	/* "Mover mapa": un dedo arrastra el mapa. */
	.bwm-hz.is-enhanced .bwm-hz__map.is-panning {
		touch-action: none;
		outline: 2px solid var(--hz-teal);
		outline-offset: -2px;
		border-radius: 12px;
	}

	.bwm-hz__map.is-far .bwm-hz__pin-text,
	.bwm-hz__map.is-far .bwm-hz__plabel {
		display: none;
	}

	.bwm-hz__dot {
		r: 7px;
	}

	.bwm-hz__hit {
		r: 20px;
	}

	.bwm-hz__spot-body {
		padding: 4px 20px 22px;
	}

	.bwm-hz__spot-name {
		font-size: 24px;
	}

	.bwm-hz__cta {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bwm-hz__route.is-active,
	.bwm-hz__pin.is-active .bwm-hz__pulse,
	.bwm-hz__pin.is-base .bwm-hz__pulse {
		animation: none;
	}

	.bwm-hz__route,
	.bwm-hz__dot,
	.bwm-hz__cta,
	.bwm-hz__chip,
	.bwm-hz.is-in .bwm-hz__route,
	.bwm-hz.is-in .bwm-hz__pin {
		transition: none;
	}
}
