/* ============================================================
   DESTINATIONS PAGE
   Responsive standard: 3 -> 2 -> 1 columns (4 on very wide screens), chip-style region
   filter on phones, content-anchored dark scrims so every card passes WCAG AA over the
   lightest photo (sky / snow / white buildings).
   Breakpoints: 1100 (tablet landscape) · 820 (tablet portrait) · 560 (phones) · 400 (small phones)
   ============================================================ */
:root {
  --ink-muted: #66665f;                 /* secondary copy on ivory, 5.3:1 (the global --gray is 4.2:1) */
  --card-fallback: linear-gradient(160deg, #2c6e49 0%, #1f3d2e 55%, #151a17 100%); /* shown if a photo fails to load */
  --tabs-top: 68px;                     /* height of the scrolled fixed nav */
}
@media (max-width: 1100px) { :root { --tabs-top: 64px; } }

/* ——— Reveal robustness (hidden initial state only when scripts run; never for reduced motion) ——— */
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ——— Hero ——— */
#hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--ivory);
  min-height: min(55vh, 560px);
  padding: calc(var(--nav-h) + clamp(36px, 7vw, 88px)) var(--gutter) clamp(36px, 5vw, 64px); }
#world-map-bg { position: absolute; inset: 0; opacity: .35; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 52%, transparent 100%); }
/* phones: the whole world at 390px is a smudge, so scale it up and let the hero crop it (Africa / Europe / Asia stay centred) */
@media (max-width: 820px) { #world-map-bg { inset: auto; left: 50%; top: 50%; width: max(100%, 940px); height: auto; aspect-ratio: 2 / 1; transform: translate(-50%, -50%); } }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 920px; }
.hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); font-weight: 600; margin-bottom: 20px; display: block; }
.hero-title { font-family: var(--f-display); font-size: clamp(44px, 9vw, 120px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; color: var(--black); margin-bottom: 20px; }
.hero-title em { color: var(--orange); font-style: italic; }
.hero-sub { font-size: 16px; color: var(--ink-muted); max-width: 480px; margin: 0 auto 40px; line-height: 1.6; font-weight: 300; text-wrap: balance; }
@media (max-width: 560px) {
  .hero-eyebrow { letter-spacing: 2.5px; margin-bottom: 16px; }
  .hero-title { margin-bottom: 16px; }
  .hero-sub { font-size: 15px; font-weight: 400; margin-bottom: 28px; }
}

/* ——— Region filter: underline tabs on desktop, scrollable chips on phones/tablets ——— */
.region-tabs { position: sticky; top: var(--tabs-top); z-index: 100; background: var(--ivory); border-bottom: 1px solid var(--gray-light); transition: top .35s var(--ease-out); }
body:has(.nav.nav-hidden) .region-tabs { top: 0; }          /* nav slides away on scroll-down: the bar takes its place */
.region-tabs-scroll { display: flex; justify-content: center; gap: 0; padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.region-tab { flex: 0 0 auto; min-height: 56px; padding: 0 clamp(16px, 2.4vw, 32px); font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; cursor: pointer; color: var(--ink-muted); background: none; border: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.region-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
@media (hover: hover) { .region-tab:hover { color: var(--orange); } }
.region-tab:focus-visible { outline-offset: -3px; }
/* scroll affordance: soft edge fades appear only while there is more to scroll */
.region-tabs::before, .region-tabs::after { content: ''; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
.region-tabs::before { left: 0;  background: linear-gradient(to right, var(--ivory) 25%, rgba(253,253,243,0)); }
.region-tabs::after  { right: 0; background: linear-gradient(to left,  var(--ivory) 25%, rgba(253,253,243,0)); }
.region-tabs.can-scroll-left::before, .region-tabs.can-scroll-right::after { opacity: 1; }
@media (max-width: 820px) {
  .region-tabs-scroll { justify-content: flex-start; gap: 10px; padding: 10px var(--gutter); scroll-padding-inline: var(--gutter); }
  .region-tab { min-height: 44px; padding: 0 20px; font-size: 14px; background: #fff; color: var(--black-soft); border: 1.5px solid var(--gray-light); border-radius: 999px; }
  .region-tab.active { background: var(--orange-pale); border-color: var(--orange); color: var(--black); }
}

/* ——— Region sections ——— */
.region-sections { background: var(--ivory); }
.region-section { display: none; padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(52px, 7vw, 88px); border-bottom: 1px solid var(--gray-light); }
.region-section.active { display: block; }
.region-inner { max-width: 1280px; margin-inline: auto; }
.region-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.region-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); font-weight: 600; margin-bottom: 10px; display: block; text-wrap: balance; }   /* a long sub-region list wraps evenly, never one orphan word */
.region-title { font-family: var(--f-display); font-size: clamp(38px, 4.5vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; color: var(--black); }
.region-count { font-size: 13px; color: var(--ink-muted); margin-top: 6px; display: block; }
.region-cta { min-height: 46px; padding: 12px 28px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* one "view all" link per region: the header pill on tablets/desktop, the under-grid link on phones */
.region-viewall { display: none; text-align: center; padding-top: 28px; }
.region-viewall a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--orange); text-decoration: none; transition: gap .2s, color .2s; }
@media (hover: hover) { .region-viewall a:hover { gap: 14px; color: var(--orange-ink); } }
.region-empty p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 520px; margin-bottom: 24px; }
@media (max-width: 560px) {
  .region-header { align-items: flex-start; }
  .region-eyebrow { letter-spacing: 1.8px; }
  .region-cta { display: none; }
  .region-viewall { display: block; }
  .region-viewall a { display: flex; width: 100%; min-height: 50px; border: 1.5px solid rgba(26,26,26,.25); border-radius: 60px; color: var(--black); }
}

/* ——— Destination cards ———
   A centred, wrapping flex row (not a fixed grid): the last row of 1-2 cards sits in the middle instead of leaving a void
   on the right. Card width = one column of --dg-cols, so every card is the same size whatever the row. */
.dest-grid { --dg-cols: 3; --dg-gap: clamp(16px, 2.2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--dg-gap); margin: 0; }
@media (max-width: 960px)  { .dest-grid { --dg-cols: 2; } }
@media (max-width: 560px)  { .dest-grid { --dg-cols: 1; } }
@media (min-width: 1700px) { .region-inner { max-width: var(--container-wide); } .dest-grid { --dg-cols: 4; } }
.dest-card { flex: 0 0 calc((100% - (var(--dg-cols) - 1) * var(--dg-gap)) / var(--dg-cols) - .02px); }

/* The text block is in normal flow at the bottom of the card, so a card grows to fit its text
   (min-height is the safety net where overflow:hidden would otherwise stop it growing). */
.dest-card { --dest-shadow: 0 0 0 1px rgba(26,26,26,.09), 0 12px 30px -8px rgba(26,26,26,.16);
  display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; aspect-ratio: 3/4; min-height: 380px; overflow: hidden; overflow: clip; isolation: isolate; background: var(--card-fallback); -webkit-tap-highlight-color: transparent; box-shadow: var(--dest-shadow); }
@media (hover: hover) { .dest-card:hover { box-shadow: 0 0 0 1px rgba(26,26,26,.09), 0 24px 56px rgba(0,0,0,.18); } }
/* Pale photos (white sky, haze, snow) used to dissolve into the ivory page: the ring above plus this gentle top vignette
   keep every card's edge and rounded corners readable. The deep scrim for the TEXT lives on .dest-card-content. */
.dest-card .dest-card-overlay { background: linear-gradient(to bottom, rgba(8,8,8,.24) 0, rgba(8,8,8,0) 26%), linear-gradient(to top, rgba(8,8,8,.30) 0, rgba(8,8,8,0) 46%); }
.dest-card-img.img-failed { display: none; }                  /* broken photo -> brand-green fallback surface */
/* Per-photo focal points. Landscape photos are cropped to a portrait window (the middle 50% by default), so a subject near one edge
   can fall outside it. Keyed by the Unsplash photo id (not the post), so the rule follows the photo if a card's image is swapped
   and quietly stops matching if it is replaced. The 50% default needs no rule. */
.dest-card-img[src*="photo-1747838622066"] { object-position: 98% 50%; }   /* United Kingdom: Big Ben + Westminster sit at the right of the frame */
.dest-card-img[src*="photo-1613476775431"] { object-position: 80% 50%; }   /* Finland: the glass igloo is at the right edge */
.dest-card-img[src*="photo-1523805009345"] { object-position: 16% 50%; }   /* Kenya: the giraffe stands left of centre */
.dest-card-img[src*="photo-1744705221117"] { object-position: 74% 50%; }   /* Singapore: the full sweep of the Marina Bay roof */
.dest-card-img[src*="photo-1499856871958"] { object-position: 28% 50%; }   /* Europe Grand Tour: the lamp-lit bridge, lamp post included */
.dest-card:focus-visible { outline-offset: 4px; border-radius: 20px; }

/* Readability: the card-wide scrim comes from style.css; this scrim is anchored to the TEXT BLOCK itself,
   so the text always sits on >= .8 black however tall the card is or how pale the photo is. */
.dest-card .dest-card-content { position: relative; inset: auto; z-index: 2; padding: 56px clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 26px);
  background: linear-gradient(to top, rgba(8,8,8,.92) 0, rgba(8,8,8,.8) calc(100% - 56px), rgba(8,8,8,0) 100%);
  text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.dest-card-region { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--orange-light); margin-bottom: 8px; line-height: 1.3; }
.dest-card-name { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; margin-bottom: 8px; color: #fff; }
.dest-card-tagline { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.94); margin-bottom: 12px; text-wrap: pretty; }
@media (min-width: 561px) { .dest-card-tagline { min-height: 3em; } }   /* two lines reserved, so titles line up across a row */
.dest-card-meta { font-size: 12px; font-weight: 500; letter-spacing: .3px; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.dest-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 52px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }   /* same height with or without a price block */
.dest-card-price { min-width: 0; font-size: 12px; line-height: 1.2; color: rgba(255,255,255,.86); }
.dest-card-price strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--orange-light); }
/* CTA is always visible (no hover-only affordance); hover just nudges the arrow */
.dest-card .dest-card-btn { flex: 0 0 auto; margin-left: auto; font-size: 13px; opacity: 1; transform: none; white-space: nowrap; color: var(--orange-light); transition: gap .25s, color .25s; }
@media (hover: hover) { .dest-card:hover .dest-card-btn { gap: 10px; color: #fff; } }
@media (hover: none) {
  .dest-card:hover { transform: none; box-shadow: var(--dest-shadow); }
  .dest-card:hover .dest-card-img { transform: none; }
  .dest-card:active { transform: scale(.985); }
}
@media (max-width: 560px) {
  .dest-card { aspect-ratio: 3/4.15; min-height: 400px; border-radius: 18px; }
  .dest-card .dest-card-content { padding: 48px 22px 20px; background: linear-gradient(to top, rgba(8,8,8,.92) 0, rgba(8,8,8,.8) calc(100% - 48px), rgba(8,8,8,0) 100%); }
}

/* Entrance: staggered rise via an animation, so hover transitions are never delayed by the stagger */
.dest-card.reveal.visible { transition: transform .4s, box-shadow .4s; transition-delay: 0s !important; animation: destCardRise .7s var(--ease-out) var(--rd, 0s) backwards; }
@keyframes destCardRise { from { opacity: 0; transform: translateY(28px); } }

/* ——— Enquiry strip (shared component; text contrast raised for this page) ——— */
.enquiry-strip .enquiry-label { color: rgba(255,255,255,.82); text-align: center; }
.enquiry-strip p { color: rgba(255,255,255,.84); max-width: 560px; margin-inline: auto; text-wrap: balance; }
.enquiry-strip p.enquiry-label { max-width: none; }
.enquiry-strip h2 { line-height: 1.12; }
@media (max-width: 560px) { .enquiry-strip p { font-size: 15px; margin-bottom: 28px; } }
