/*
 * Everyday Luxury Vacation Rentals — Destinations Hub
 * Design 03 — The Map Explorer
 * File: destination-hub-explorer.css
 *
 * Deploy to: /wp-content/themes/haven-theme/assets/css/destination-hub-explorer.css
 * Enqueued automatically by page-destinations.php when $design === 'explorer'.
 *
 * Scope: every rule lives under `.has-destination-explorer` so the styles
 * cannot affect any other page on the site. Future destinations require no
 * CSS changes — adding an entry to Haven_Destination_Auto_Mega::get_curated_destinations()
 * in inc/class-haven-destination-auto-mega.php is enough.
 *
 * Contents
 * ─────────────────────────────────────────────────────
 * 1.  Brand tokens (scoped)
 * 2.  Page wrapper reset (neutralise WordPress chrome)
 * 3.  Hero
 * 4.  Map card + SVG map
 * 5.  Pins
 * 6.  Collection (chips + count)
 * 7.  Cards
 * 8.  CTA
 * 9.  Responsive
 * 10. Reduced motion
 */


/* ── 1. Brand tokens (scoped to the explorer page only) ─────────────────── */
.has-destination-explorer {
	--dh-earth:        #1E1A14;
	--dh-earth-2:      #2A241B;
	--dh-dune:         #C4A078;
	--dh-dune-soft:    #E5D2B8;
	--dh-terra:        #B05B4A;
	--dh-linen:        #FAF7F1;
	--dh-paper:        #F6EFE5;
	--dh-rule:         rgba(196, 160, 120, 0.4);
	--dh-serif:        'Cormorant Garamond', 'Cardo', Georgia, serif;
	--dh-sans:         'DM Sans', 'Nunito Sans', system-ui, sans-serif;
	--dh-ease:         cubic-bezier(.25, .46, .45, .94);

	/* Region accent colours — referenced by inline `style="color:..."` on each pin
	   so currentColor cascades to halo/ring/core/label. */
	--dh-r-coast:      #3C7C8E;
	--dh-r-desert:     #B05B4A;
	--dh-r-mountain:   #5A6E4E;
	--dh-r-city:       #7A6B5A;
}


/* ── 2. Page wrapper reset ────────────────────────────────────────────────
 *
 * WordPress page.php wraps content in .entry-content / .content-area. These
 * add padding that breaks the full-bleed hero. Neutralise them on this page
 * only — the rule is scoped under .has-destination-explorer so it cannot
 * leak elsewhere.
 */
.has-destination-explorer .content-area,
.has-destination-explorer .site-main,
.has-destination-explorer .destination-explorer-main,
.has-destination-explorer .page-content,
.has-destination-explorer .entry-content,
.has-destination-explorer .page-content-wrapper {
	padding:   0 !important;
	margin:    0 !important;
	max-width: none !important;
}


/* ── 3. Hero ──────────────────────────────────────────────────────────── */
.has-destination-explorer .dh-hero {
	position:        relative;
	min-height:      600px;
	display:         flex;
	align-items:     center;
	color:           var(--dh-linen);
	overflow:        hidden;
	font-family:     var(--dh-sans);
	font-size:       16px;
	line-height:     1.6;
	-webkit-font-smoothing: antialiased;
}
.has-destination-explorer .dh-hero__bg {
	position: absolute; inset: 0; z-index: 0;
}
.has-destination-explorer .dh-hero__bg img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
.has-destination-explorer .dh-hero__bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(110deg, rgba(30, 26, 20, 0.92) 0%, rgba(30, 26, 20, 0.65) 55%, rgba(30, 26, 20, 0.30) 100%);
}
.has-destination-explorer .dh-hero__inner {
	position: relative; z-index: 1;
	max-width: 1320px; width: 100%;
	margin: 0 auto;
	padding: 80px 32px;
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 60px;
	align-items: center;
}
.has-destination-explorer .dh-hero__copy h1,
.has-destination-explorer .dh-hero__title {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	line-height: 0.98;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
	color: var(--dh-linen);
}
.has-destination-explorer .dh-hero__title em {
	font-style: italic;
	color: var(--dh-dune);
}
.has-destination-explorer .dh-hero__eyebrow {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--dh-dune);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.has-destination-explorer .dh-hero__eyebrow::before {
	content: ""; width: 36px; height: 1px;
	background: var(--dh-dune);
}
.has-destination-explorer .dh-hero__lede {
	font-size: 1.05rem;
	color: rgba(250, 247, 241, 0.85);
	max-width: 48ch;
	margin: 0 0 28px;
}
.has-destination-explorer .dh-hero__quickstats {
	display: flex; gap: 32px; flex-wrap: wrap;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dh-dune-soft);
	margin: 0;
}
.has-destination-explorer .dh-hero__quickstats div {
	flex: 0 1 auto;
}
.has-destination-explorer .dh-hero__quickstats strong {
	display: block;
	color: var(--dh-linen);
	font-size: 1.7rem;
	font-family: var(--dh-serif);
	font-weight: 400;
	letter-spacing: 0;
	margin-bottom: 2px;
}


/* ── 4. Map card + SVG map ────────────────────────────────────────────── */
.has-destination-explorer .dh-map-card {
	position: relative;
	background: rgba(15, 12, 8, 0.55);
	border: 1px solid rgba(196, 160, 120, 0.28);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 24px 26px 20px;
	border-radius: 6px;
}
.has-destination-explorer .dh-map-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--dh-dune);
	margin-bottom: 14px;
}
.has-destination-explorer .dh-map-card__head strong {
	color: var(--dh-linen);
	font-family: var(--dh-serif);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: 0;
}
.has-destination-explorer .dh-map {
	width: 100%; height: auto; display: block; overflow: visible;
}
.has-destination-explorer .dh-map__land {
	fill: rgba(250, 247, 241, 0.08);
	stroke: rgba(196, 160, 120, 0.3);
	stroke-width: 0.6;
	stroke-linejoin: round;
}
.has-destination-explorer .dh-map__inset-frame {
	fill: rgba(250, 247, 241, 0.05);
	stroke: rgba(196, 160, 120, 0.3);
	stroke-width: 0.6;
}
.has-destination-explorer .dh-map__inset-label {
	fill: var(--dh-dune-soft);
	font-family: var(--dh-sans);
	font-size: 8px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}
.has-destination-explorer .dh-map__lat {
	stroke: rgba(196, 160, 120, 0.12);
	stroke-width: 0.5;
	stroke-dasharray: 2 5;
	fill: none;
}
.has-destination-explorer .dh-map__compass {
	fill: none;
	stroke: var(--dh-dune);
	stroke-width: 0.5;
	opacity: 0.5;
}
.has-destination-explorer .dh-map__compass text {
	fill: var(--dh-dune);
	font-family: var(--dh-sans);
	font-size: 7px;
	letter-spacing: 0.2em;
}
.has-destination-explorer .dh-map__cluster-line {
	stroke: currentColor;
	stroke-width: 0.5;
	opacity: 0.4;
	fill: none;
}


/* ── 5. Pins ──────────────────────────────────────────────────────────── */
.has-destination-explorer .dh-pin {
	cursor: pointer;
	outline: none;
	transition: transform 0.35s var(--dh-ease), opacity 0.35s var(--dh-ease);
	transform-origin: center;
	transform-box: fill-box;
}
.has-destination-explorer .dh-pin .dh-pin__halo {
	fill: currentColor; opacity: 0.18;
	filter: blur(3px);
}
.has-destination-explorer .dh-pin .dh-pin__core {
	fill: currentColor;
	stroke: var(--dh-linen);
	stroke-width: 0.8;
}
.has-destination-explorer .dh-pin .dh-pin__ring {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	opacity: 0;
	transform-origin: center;
	transform-box: fill-box;
}
.has-destination-explorer .dh-pin .dh-pin__label {
	fill: var(--dh-linen);
	font-family: var(--dh-sans);
	font-size: 8.5px;
	letter-spacing: 0.06em;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.3s var(--dh-ease);
	pointer-events: none;
	paint-order: stroke;
	stroke: rgba(15, 12, 8, 0.85);
	stroke-width: 3;
}
.has-destination-explorer .dh-pin:hover {
	transform: scale(1.18);
}
.has-destination-explorer .dh-pin:hover .dh-pin__halo {
	opacity: 0.45;
}
.has-destination-explorer .dh-pin:hover .dh-pin__label,
.has-destination-explorer .dh-pin:focus-visible .dh-pin__label,
.has-destination-explorer .dh-pin.is-hot .dh-pin__label {
	opacity: 1;
}
.has-destination-explorer .dh-pin:focus-visible .dh-pin__core {
	stroke-width: 1.4;
}
.has-destination-explorer .dh-pin.is-hot .dh-pin__ring {
	opacity: 1;
	animation: dh-ring-pulse 1.6s ease-out infinite;
}
.has-destination-explorer .dh-pin.is-dim {
	opacity: 0.18;
}
@keyframes dh-ring-pulse {
	0%   { transform: scale(1);   opacity: 0.9; }
	100% { transform: scale(2.6); opacity: 0; }
}


/* ── 6. Collection (chips + count) ────────────────────────────────────── */
.has-destination-explorer .dh-collection {
	max-width: 1320px;
	margin: 0 auto;
	padding: 80px 32px 100px;
	background: var(--dh-paper);
	color: var(--dh-earth);
	font-family: var(--dh-sans);
}
.has-destination-explorer .dh-collection__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 36px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--dh-rule);
}
.has-destination-explorer .dh-collection__head h2 {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--dh-earth);
}
.has-destination-explorer .dh-collection__head h2 em {
	font-style: italic;
	color: var(--dh-terra);
}
.has-destination-explorer .dh-collection__count {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #5b5448;
}
.has-destination-explorer .dh-collection__count strong {
	font-family: var(--dh-serif);
	font-size: 1.4rem;
	color: var(--dh-earth);
	font-weight: 400;
	display: inline-block;
	margin-right: 6px;
	letter-spacing: 0;
}

.has-destination-explorer .dh-chips {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin-bottom: 32px;
}
.has-destination-explorer .dh-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid var(--dh-rule);
	border-radius: 999px;
	background: transparent;
	color: var(--dh-earth);
	font-family: var(--dh-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s var(--dh-ease);
}
.has-destination-explorer .dh-chip:hover { border-color: var(--dh-earth); }
.has-destination-explorer .dh-chip[aria-pressed="true"] {
	background: var(--dh-earth);
	color: var(--dh-linen);
	border-color: var(--dh-earth);
}
.has-destination-explorer .dh-chip__dot {
	width: 8px; height: 8px; border-radius: 50%;
	flex: none;
}
.has-destination-explorer .dh-chip[data-region="coast"]    .dh-chip__dot { background: var(--dh-r-coast); }
.has-destination-explorer .dh-chip[data-region="desert"]   .dh-chip__dot { background: var(--dh-r-desert); }
.has-destination-explorer .dh-chip[data-region="mountain"] .dh-chip__dot { background: var(--dh-r-mountain); }
.has-destination-explorer .dh-chip[data-region="city"]     .dh-chip__dot { background: var(--dh-r-city); }
.has-destination-explorer .dh-chip[data-region="all"]      .dh-chip__dot {
	background: linear-gradient(45deg, var(--dh-r-coast), var(--dh-r-desert), var(--dh-r-mountain), var(--dh-r-city));
}
.has-destination-explorer .dh-chip__count {
	margin-left: 6px;
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: 0;
}
.has-destination-explorer .dh-chip[aria-pressed="true"] .dh-chip__count {
	background: rgba(255, 255, 255, 0.15);
	color: var(--dh-linen);
}


/* ── 7. Cards ─────────────────────────────────────────────────────────── */
.has-destination-explorer .dh-cards {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.has-destination-explorer .dh-card {
	position: relative;
	display: block;
	background: var(--dh-earth);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	isolation: isolate;
	color: var(--dh-linen);
	text-decoration: none;
	transition: opacity 0.4s var(--dh-ease), transform 0.5s var(--dh-ease), box-shadow 0.5s var(--dh-ease);
}
.has-destination-explorer .dh-card.is-filtered {
	opacity: 0.18;
	pointer-events: none;
}
.has-destination-explorer .dh-card.is-hot {
	transform: scale(1.025);
	box-shadow: 0 16px 48px rgba(30, 26, 20, 0.28);
}
.has-destination-explorer .dh-card__media {
	position: absolute; inset: 0; z-index: 0;
}
.has-destination-explorer .dh-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 1.2s var(--dh-ease);
	display: block;
}
.has-destination-explorer .dh-card:hover .dh-card__media img {
	transform: scale(1.06);
}
.has-destination-explorer .dh-card::after {
	content: "";
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(30, 26, 20, 0) 30%, rgba(30, 26, 20, 0.55) 65%, rgba(30, 26, 20, 0.96) 100%);
}
.has-destination-explorer .dh-card__pin {
	position: absolute;
	top: 14px; left: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: rgba(15, 12, 8, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(196, 160, 120, 0.3);
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dh-linen);
}
.has-destination-explorer .dh-card__pin-dot {
	width: 8px; height: 8px; border-radius: 50%;
	flex: none;
}
.has-destination-explorer .dh-card[data-region="coast"]    .dh-card__pin-dot { background: var(--dh-r-coast); }
.has-destination-explorer .dh-card[data-region="desert"]   .dh-card__pin-dot { background: var(--dh-r-desert); }
.has-destination-explorer .dh-card[data-region="mountain"] .dh-card__pin-dot { background: var(--dh-r-mountain); }
.has-destination-explorer .dh-card[data-region="city"]     .dh-card__pin-dot { background: var(--dh-r-city); }

.has-destination-explorer .dh-card__body {
	position: relative; z-index: 2;
	height: 100%;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
}
.has-destination-explorer .dh-card__eyebrow {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--dh-dune);
	margin: 0;
}
.has-destination-explorer .dh-card__title {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: clamp(1.4rem, 2vw, 1.85rem);
	line-height: 1;
	margin: 0;
	letter-spacing: -0.01em;
	color: var(--dh-linen);
}
.has-destination-explorer .dh-card__tags {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin-top: 4px;
}
.has-destination-explorer .dh-card__tag {
	font-size: 9.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 3px 9px;
	border: 1px solid rgba(250, 247, 241, 0.25);
	border-radius: 999px;
	color: var(--dh-dune-soft);
	background: rgba(0, 0, 0, 0.2);
}
.has-destination-explorer .dh-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dh-linen);
	width: max-content;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--dh-dune);
}
.has-destination-explorer .dh-card__cta::after {
	content: "→";
	transition: transform 0.3s var(--dh-ease);
}
.has-destination-explorer .dh-card:hover .dh-card__cta::after {
	transform: translateX(6px);
}


/* ── 8. CTA — concierge link is INLINE under the buttons (not auto-included) ── */
.has-destination-explorer .dh-cta {
	background: var(--dh-earth);
	color: var(--dh-linen);
	padding: 120px 32px;
	text-align: center;
	position: relative;
	overflow: hidden;
	font-family: var(--dh-sans);
}
.has-destination-explorer .dh-cta::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(196, 160, 120, 0.12) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(176, 91, 74, 0.10) 0%, transparent 40%);
}
.has-destination-explorer .dh-cta__inner {
	position: relative; z-index: 1;
	max-width: 780px;
	margin: 0 auto;
}
.has-destination-explorer .dh-cta__rule {
	width: 48px; height: 1px;
	background: var(--dh-dune);
	margin: 0 auto 22px;
}
.has-destination-explorer .dh-cta__eyebrow {
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--dh-dune);
	margin: 0 0 18px;
}
.has-destination-explorer .dh-cta__title {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.05;
	margin: 0 0 22px;
	letter-spacing: -0.01em;
	color: var(--dh-linen);
}
.has-destination-explorer .dh-cta__title em {
	font-style: italic;
	color: var(--dh-dune-soft);
}
.has-destination-explorer .dh-cta__lede {
	font-size: 1.05rem;
	color: rgba(250, 247, 241, 0.82);
	max-width: 54ch;
	margin: 0 auto 32px;
	line-height: 1.6;
}
.has-destination-explorer .dh-cta__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.has-destination-explorer .dh-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	font-family: var(--dh-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: all 0.3s var(--dh-ease);
	text-decoration: none;
	cursor: pointer;
	border-radius: 0;
}
.has-destination-explorer .dh-btn--primary {
	background: var(--dh-dune);
	color: var(--dh-earth);
	border: 1px solid var(--dh-dune);
}
.has-destination-explorer .dh-btn--primary:hover {
	background: var(--dh-linen);
	border-color: var(--dh-linen);
	transform: translateY(-2px);
}
.has-destination-explorer .dh-btn--ghost {
	background: transparent;
	color: var(--dh-linen);
	border: 1px solid rgba(250, 247, 241, 0.4);
}
.has-destination-explorer .dh-btn--ghost:hover {
	background: rgba(250, 247, 241, 0.08);
	border-color: var(--dh-linen);
	transform: translateY(-2px);
}
.has-destination-explorer .dh-cta__concierge {
	margin-top: 28px;
	font-size: 0.95rem;
	color: var(--dh-dune-soft);
	font-style: italic;
}
.has-destination-explorer .dh-cta__concierge a {
	color: var(--dh-linen);
	border-bottom: 1px solid var(--dh-dune);
	padding-bottom: 1px;
	font-style: normal;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	font-weight: 500;
	margin-left: 6px;
	text-decoration: none;
	transition: color 0.3s var(--dh-ease);
}
.has-destination-explorer .dh-cta__concierge a:hover {
	color: var(--dh-dune);
}


/* ── 9. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.has-destination-explorer .dh-hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 60px 24px;
	}
}
@media (max-width: 720px) {
	.has-destination-explorer .dh-hero {
		min-height: auto;
		padding: 40px 0;
	}
	.has-destination-explorer .dh-hero__inner {
		padding: 40px 20px;
	}
	.has-destination-explorer .dh-hero__title {
		font-size: clamp(2rem, 8vw, 3rem);
	}
	.has-destination-explorer .dh-hero__quickstats {
		gap: 22px;
	}
	.has-destination-explorer .dh-collection {
		padding: 60px 20px 80px;
	}
	.has-destination-explorer .dh-cards {
		grid-template-columns: 1fr;
	}
	.has-destination-explorer .dh-cta {
		padding: 80px 24px;
	}
	.has-destination-explorer .dh-pin .dh-pin__label {
		display: none; /* labels too small to read on mobile — pin tap still works */
	}
}


/* ── 10. Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.has-destination-explorer * {
		transition-duration: 0.01ms !important;
		animation-duration:  0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
	.has-destination-explorer .dh-pin.is-hot .dh-pin__ring {
		animation: none;
		opacity: 1;
	}
}
