/* ==========================================================================
   Holidays Republic — main stylesheet
   --------------------------------------------------------------------------
   Enqueued by functions.php. All colours are design tokens on :root; brand
   colours chosen in Holidays Republic → Settings override them inline.

   PALETTE 1  "Harbour Trust"  (light, default)
     Republic Navy  #043664  oklch(.33 .095 252)  brand / trust (dark blue)
     Lagoon         #00717a  oklch(.50 .085 205)  links, secondary actions
     Sunset Coral   #d14125  oklch(.58 .185 33)   the ONLY booking/CTA colour
     Sun Gold       #fabb41  oklch(.83 .15 80)    highlights on navy
     Sea Mist       #f3f8fa  oklch(.975 .006 230) page background
     Ink            #102032  oklch(.24 .04 252)   body text (15.3:1 on mist)
   PALETTE 2  "Night Flight"  (dark mode)
     Night #08121f · Cabin #111e2d · Glow Lagoon #4eccd3 · Glow Coral #f77c56
   PALETTE 3  "Postcards"  (destination art — see .art--* below)
   Contrast checked (WCAG 2.1): white on coral 4.67, muted text 6.07,
   lagoon links 5.35, dark-mode text 15.8.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  /* hex fallbacks (older browsers) */
  --navy: #043664; --navy-700: #022a4e; --navy-500: #03528e;
  --lagoon: #00717a; --lagoon-soft: #dcf0f1;
  --coral: #d14125; --coral-hover: #b9361d; --coral-soft: #fde9e2;
  --sun: #fabb41; --sun-soft: #fff1d1;
  --ink: #102032; --muted: #515f6e; --faint: #8b97a3;
  --bg: #f3f8fa; --surface: #ffffff; --surface-2: #eaf1f5; --sand: #f9eee0;
  --line: #dbe4ea; --line-strong: #c4d1da;
  --on-navy: #ffffff; --on-navy-muted: #b9cbe0;

  --shadow-1: 0 1px 2px rgb(4 54 100 / .06), 0 2px 8px rgb(4 54 100 / .06);
  --shadow-2: 0 2px 6px rgb(4 54 100 / .08), 0 14px 34px -10px rgb(4 54 100 / .22);
  --shadow-3: 0 30px 60px -20px rgb(4 30 60 / .45);

  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xs: 10px; --r-s: 14px; --r-m: 22px; --r-l: 30px; --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}
@supports (color: oklch(0 0 0)) {
  :root {
    --navy: oklch(.33 .095 252); --navy-700: oklch(.27 .08 252); --navy-500: oklch(.43 .12 250);
    --lagoon: oklch(.50 .085 205); --lagoon-soft: oklch(.94 .03 205);
    --coral: oklch(.58 .185 33); --coral-hover: oklch(.52 .175 33); --coral-soft: oklch(.95 .03 40);
    --sun: oklch(.83 .15 80); --sun-soft: oklch(.96 .045 85);
    --ink: oklch(.24 .04 252); --muted: oklch(.48 .03 250); --faint: oklch(.66 .025 245);
    --bg: oklch(.975 .006 230); --surface: oklch(1 0 0); --surface-2: oklch(.955 .012 230); --sand: oklch(.955 .022 75);
    --line: oklch(.915 .012 235); --line-strong: oklch(.85 .018 235);
  }
}

/* Palette 2 — Night Flight */
:root[data-theme="dark"] {
  --navy: #0b2240; --navy-700: #06182f; --navy-500: #2f6db0;
  --lagoon: #4eccd3; --lagoon-soft: #0f2f37;
  --coral: #f77c56; --coral-hover: #ff936f; --coral-soft: #3a1d17;
  --sun: #fabb41; --sun-soft: #3a2c0e;
  --ink: #e5ecf1; --muted: #9eadba; --faint: #6e7f8f;
  --bg: #08121f; --surface: #111e2d; --surface-2: #172739; --sand: #1a2433;
  --line: #22344a; --line-strong: #2e4560;
  --on-navy-muted: #9fb4cc;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 2px 6px rgb(0 0 0 / .35), 0 14px 34px -10px rgb(0 0 0 / .6);
  color-scheme: dark;
}
:root[data-theme="dark"] .btn--cta { color: #08121f; }
:root[data-theme="dark"] .btn--navy { --btn-bg: var(--lagoon); --btn-fg: #08121f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0b2240; --navy-700: #06182f; --navy-500: #2f6db0;
    --lagoon: #4eccd3; --lagoon-soft: #0f2f37;
    --coral: #f77c56; --coral-hover: #ff936f; --coral-soft: #3a1d17;
    --sun: #fabb41; --sun-soft: #3a2c0e;
    --ink: #e5ecf1; --muted: #9eadba; --faint: #6e7f8f;
    --bg: #08121f; --surface: #111e2d; --surface-2: #172739; --sand: #1a2433;
    --line: #22344a; --line-strong: #2e4560;
    --on-navy-muted: #9fb4cc;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 2px 6px rgb(0 0 0 / .35), 0 14px 34px -10px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .btn--cta { color: #08121f; }
  :root:not([data-theme="light"]) .btn--navy { --btn-bg: var(--lagoon); --btn-fg: #08121f; }
}

/* ---------- 2. Base ---------- */
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 36px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--lagoon); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 .5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--sand { background: var(--sand); }
.cv { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- 3. Buttons, chips, badges ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--cta { --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--coral) 70%, transparent); }
.btn--cta:hover { --btn-bg: var(--coral-hover); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: transparent; }
.btn--ghost { --btn-bg: transparent; }
.btn--on-dark { --btn-bg: rgb(255 255 255 / .1); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .28); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-pill); border: 1px solid transparent; background: transparent; color: inherit;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease-spring);
}
.badge.is-on { transform: scale(1); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 550;
  transition: background-color .15s, border-color .15s, color .15s; text-decoration: none; white-space: nowrap; flex: none;
}
.chip:hover { border-color: var(--navy-500); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"], :root[data-theme="dark"] .chip.is-active { background: var(--lagoon); border-color: var(--lagoon); color: #08121f; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 650; background: var(--lagoon-soft); color: var(--lagoon); }
.tag--coral { background: var(--coral-soft); color: var(--coral); }
.tag--sun { background: var(--sun-soft); color: oklch(.45 .1 70); }
:root[data-theme="dark"] .tag--sun { color: var(--sun); }

/* ---------- 4. Header — floating "island" bar + mega menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: calc(var(--header-h) + 20px); padding-top: 12px;
  transition: transform .35s var(--ease); pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header > .container {
  pointer-events: auto; height: var(--header-h); display: flex; align-items: center; gap: 16px; padding: 0 10px 0 16px;
  border-radius: 22px; background: color-mix(in oklab, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid color-mix(in oklab, var(--line-strong) 60%, transparent);
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 10px 30px -18px rgb(4 30 60 / .35);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled > .container { background: color-mix(in oklab, var(--surface) 90%, transparent); box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 16px 40px -18px rgb(4 30 60 / .45); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: .98rem; } .brand__mark { width: 30px; height: 30px; } }
.nav { display: none; align-items: center; gap: 2px; margin-left: 6px; }
.nav > a, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; background: none;
  border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem;
}
.nav > a:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: var(--surface-2); text-decoration: none; }
.nav > a[aria-current="page"] { color: var(--navy-500); }
:root[data-theme="dark"] .nav > a[aria-current="page"] { color: var(--lagoon); }
.nav__trigger .icon { width: 16px; height: 16px; transition: rotate .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .icon { rotate: 180deg; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.search-trigger {
  display: none; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; min-width: 210px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .9rem;
}
.search-trigger kbd { margin-left: auto; font: 600 .72rem var(--font-body); padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.header-cta { display: none; }
.icon-btn { border-radius: 12px; }

.mega {
  position: absolute; left: 50%; top: calc(var(--header-h) + 20px); translate: -50% 0; width: min(var(--maxw), calc(100vw - 2 * var(--gutter)));
  pointer-events: auto; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-3); display: grid; gap: 18px; grid-template-columns: 1fr 260px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega__item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.mega__item:hover { background: var(--surface-2); text-decoration: none; }
.mega__item b { display: block; font-size: .97rem; }
.mega__item small { color: var(--muted); font-size: .82rem; }
.mega__aside { border-radius: 18px; padding: 18px; background: var(--navy); color: #fff; display: grid; align-content: space-between; gap: 14px; }
.mega__aside p { margin: 0; color: var(--on-navy-muted); font-size: .9rem; }
.mega__aside b { font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.vicon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--vs); color: var(--v); flex: none; }
:root[data-theme="dark"] .vicon { background: var(--vd); color: var(--vl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vicon { background: var(--vd); color: var(--vl); } }

@media (min-width: 1080px) {
  .nav, .search-trigger, .header-cta { display: inline-flex; }
  .search-mobile, .menu-btn { display: none; }
}
@media (max-width: 1079px) { .mega { display: none; } }

/* Palette 4 — "Services": one accent per booking type (contrast-checked) */
.v-flights   { --v: #0079b3; --vs: #dff1ff; --vl: #69c1fc; --vd: #0b293c; }
.v-hotels    { --v: #7f5bb6; --vs: #f1ebff; --vl: #c3a5f9; --vd: #2a203b; }
.v-cars      { --v: #986600; --vs: #fdecd5; --vl: #e4ac59; --vd: #352206; }
.v-tours     { --v: #ab4a7d; --vs: #ffe7f1; --vl: #f197c2; --vd: #381c2a; }
.v-transfers { --v: #00818c; --vs: #d4f6fa; --vl: #3bcddc; --vd: #002d31; }
.v-esim      { --v: #4b8323; --vs: #e5f4dd; --vl: #96c979; --vd: #1b2c12; }
.v-insurance { --v: #496dc3; --vs: #e7efff; --vl: #95b6ff; --vd: #1a263f; }
.v-trains    { --v: #008758; --vs: #dbf6e7; --vl: #6bcf9d; --vd: #0b2e1e; }
.v-extras    { --v: #b2511e; --vs: #ffe9e0; --vl: #f79e75; --vd: #3a1e11; }

/* ---------- 5. Mobile app bar & drawer ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none;
  color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; border-radius: var(--r-s); position: relative;
}
.tabbar .icon { width: 24px; height: 24px; }
.tabbar [aria-current="page"] { color: var(--navy); }
:root[data-theme="dark"] .tabbar [aria-current="page"] { color: var(--lagoon); }
.tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral); }
.tabbar .badge { right: calc(50% - 22px); top: 0; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .tabbar { display: none; } body { padding-bottom: 0; } }

.sheet {
  position: fixed; inset: 0; z-index: 60; display: grid; visibility: hidden; pointer-events: none;
}
.sheet__scrim { position: absolute; inset: 0; background: rgb(4 18 36 / .45); opacity: 0; transition: opacity .3s; }
.sheet__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface);
  box-shadow: var(--shadow-3); display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .38s var(--ease); overscroll-behavior: contain;
}
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: 1.3rem; margin: 0; }
.sheet__body { padding: 16px 20px 32px; overflow-y: auto; flex: 1; }
.drawer-nav { display: grid; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.drawer-nav a:hover { background: var(--surface-2); }
.saved-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.saved-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-s); }
.saved-item .art { aspect-ratio: 1; border-radius: var(--r-xs); }
.saved-item a { color: var(--ink); font-weight: 650; text-decoration: none; }
.saved-item small { display: block; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .saved-item { animation: pop-in .35s var(--ease) both; } }

/* ---------- 6. Command palette (dialog) ---------- */
.palette {
  width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 560px); padding: 0; border: 0; border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); margin-top: 10vh; overflow: hidden;
}
.palette::backdrop { background: rgb(4 18 36 / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.palette[open] { animation: pop-in .25s var(--ease); display: flex; flex-direction: column; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette__input input { flex: 1; height: 62px; border: 0; outline: 0; background: transparent; font-size: 1.1rem; }
.palette__results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.palette__results a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.palette__results a small { color: var(--muted); display: block; font-size: .82rem; }
.palette__results a[aria-selected="true"], .palette__results a:hover { background: var(--surface-2); }
.palette__results .art { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 10px; flex: none; }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); }
.palette__foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; gap: 16px; }
.palette__foot kbd { font: 600 .72rem var(--font-body); padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px; }

/* ---------- 7. Immersive hero — the sky changes with what you search ---------- */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #0a3a6b; }
@property --sky-mid { syntax: "<color>"; inherits: true; initial-value: #2f7fc0; }
@property --sky-low { syntax: "<color>"; inherits: true; initial-value: #a9d4f0; }
@property --sun-c   { syntax: "<color>"; inherits: true; initial-value: #fff4d6; }
@property --sea-a   { syntax: "<color>"; inherits: true; initial-value: #1d74b0; }
@property --sea-b   { syntax: "<color>"; inherits: true; initial-value: #083d6e; }
@property --land    { syntax: "<color>"; inherits: true; initial-value: #0d3557; }
.sky {
  --sky-top: #0a3a6b; --sky-mid: #2f7fc0; --sky-low: #a9d4f0; --sun-c: #fff4d6; --sea-a: #1d74b0; --sea-b: #083d6e; --land: #0d3557;
  transition: --sky-top 1.2s var(--ease), --sky-mid 1.2s var(--ease), --sky-low 1.2s var(--ease), --sun-c 1.2s var(--ease), --sea-a 1.2s var(--ease), --sea-b 1.2s var(--ease), --land 1.2s var(--ease);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) 100%);
}
.sky[data-sky="hotels"]    { --sky-top: #1d1f55; --sky-mid: #6d4c97; --sky-low: #f2a27f; --sun-c: #ffd6a6; --sea-a: #5a4f91; --sea-b: #1e1f4f; --land: #1c1838; }
.sky[data-sky="cars"]      { --sky-top: #0c355d; --sky-mid: #c9844f; --sky-low: #fcd59c; --sun-c: #fff0c9; --sea-a: #2d6c95; --sea-b: #0f3a5c; --land: #3a2414; }
.sky[data-sky="tours"]     { --sky-top: #0a4a5f; --sky-mid: #35a0a4; --sky-low: #cdf0e4; --sun-c: #fffbe6; --sea-a: #17a2a6; --sea-b: #0a5e6e; --land: #0f3d33; }
.sky[data-sky="transfers"] { --sky-top: #061733; --sky-mid: #1b4b88; --sky-low: #7aa9d8; --sun-c: #e9f1ff; --sea-a: #1c4f86; --sea-b: #08223f; --land: #07172d; }
.sky[data-sky="esim"]      { --sky-top: #040b20; --sky-mid: #142d63; --sky-low: #4a6fab; --sun-c: #f6f2e3; --sea-a: #1a3a70; --sea-b: #060f26; --land: #050c1d; }
.sky[data-sky="insurance"] { --sky-top: #0e3360; --sky-mid: #4d8fd0; --sky-low: #dcecfa; --sun-c: #ffffff; --sea-a: #2f7fc0; --sea-b: #0e4677; --land: #12395f; }
.sky[data-sky="trains"]    { --sky-top: #0b3a3e; --sky-mid: #4c9a84; --sky-low: #e3f1cf; --sun-c: #fff8dc; --sea-a: #2b8a86; --sea-b: #0c4b4d; --land: #173a2a; }
.sky[data-sky="extras"]    { --sky-top: #1d1840; --sky-mid: #b0586a; --sky-low: #ffc58f; --sun-c: #fff0cf; --sea-a: #7d4a72; --sea-b: #2a1d45; --land: #24142b; }

.scene { position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; z-index: 0; }
.scene svg { width: 100%; height: 100%; display: block; }
.scene .far { fill: color-mix(in oklab, var(--sky-low) 45%, var(--sky-mid)); opacity: .75; }
.scene .mid { fill: var(--land); }
.scene .near { fill: color-mix(in oklab, var(--land) 80%, #000); }
.scene .shine { stroke: rgb(255 255 255 / .35); stroke-width: 2; stroke-linecap: round; }
.scene .stars { fill: #fff; opacity: 0; transition: opacity 1.2s; }
.sky[data-sky="esim"] .scene .stars, .sky[data-sky="transfers"] .scene .stars { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .scene .shine-g { animation: drift 9s linear infinite alternate; }
  @supports (animation-timeline: scroll()) {
    .scene .far, .scene .sun { animation: px-slow linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .scene .mid { animation: px-mid linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  }
}
@keyframes drift { to { transform: translateX(-60px); } }
@keyframes px-slow { to { transform: translateY(70px); } }
@keyframes px-mid { to { transform: translateY(32px); } }

.hero2 {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin-top: calc((var(--header-h) + 20px) * -1);
  padding: calc(var(--header-h) + 20px + clamp(36px, 6vw, 80px)) 0 clamp(90px, 11vw, 150px);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
}
.hero2::before { /* legibility veil behind the headline */
  content: ""; position: absolute; z-index: 0; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 20% 18%, rgb(2 14 32 / .45), transparent 70%);
}
.hero2 > .container { position: relative; z-index: 2; }
.hero2 h1 { color: #fff; max-width: 14ch; font-size: clamp(2.6rem, 1.3rem + 5vw, 5.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.hero2__sub { color: rgb(255 255 255 / .86); font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem); max-width: 44ch; margin: 18px 0 0; }
.hero2__trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero2__trust li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: .88rem; font-weight: 550;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero2__trust .icon { color: var(--sun); width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero2 [data-enter] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .hero2 .scene .sun { animation: sunrise-y 1.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes sunrise-y { from { transform: translateY(120px); opacity: .3; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(6px); } }

/* ---------- 8. Finder (multi-service search card) ---------- */
.finder {
  min-width: 0; margin-top: clamp(28px, 4vw, 48px); border-radius: 28px; color: var(--ink);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgb(255 255 255 / .55); box-shadow: 0 40px 80px -30px rgb(2 20 45 / .55), 0 1px 0 rgb(255 255 255 / .6) inset;
  overflow: hidden;
}
.finder__tabs { display: flex; gap: 4px; padding: 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); position: relative; }
.finder__tabs::-webkit-scrollbar { display: none; }
.finder__tabs [role="tab"] {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 8px;
  border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-weight: 620; font-size: .93rem; white-space: nowrap;
  transition: color .2s;
}
.finder__tabs [role="tab"] .vicon { width: 32px; height: 32px; border-radius: 10px; transition: transform .3s var(--ease-spring); }
.finder__tabs [role="tab"] .vicon .icon { width: 18px; height: 18px; }
.finder__tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.finder__tabs [role="tab"][aria-selected="true"] .vicon { transform: scale(1.08); background: var(--v); color: #fff; }
.finder__tabs .tabs__ink { position: absolute; z-index: 0; top: 10px; bottom: 10px; border-radius: 14px; background: var(--surface-2); transition: left .35s var(--ease), width .35s var(--ease); }
.finder__body { padding: 18px clamp(14px, 2.4vw, 24px) 20px; }
.finder__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.finder__foot a { font-weight: 600; }
.finder__foot > span { display: inline-flex; align-items: center; gap: 8px; }
.finder__foot .icon { color: var(--lagoon); width: 18px; height: 18px; }
.sform { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .sform { grid-template-columns: repeat(2, 1fr); } .sform .btn-search { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .sform { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)) auto; }
  .sform .field--wide { grid-column: span 2; }
  .sform .btn-search { grid-column: auto; }
}
.btn-search { min-height: 60px; border-radius: 16px; padding: 0 26px; font-size: 1.02rem; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: pop-in .35s var(--ease); }
.field { position: relative; display: grid; align-content: center; min-height: 60px; border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 7px 14px 6px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--navy-500); box-shadow: 0 0 0 4px color-mix(in oklab, var(--navy-500) 16%, transparent); }
.field label, .field .field__label { font-size: .74rem; font-weight: 650; color: var(--muted); }
.field input, .field select { border: 0; outline: 0; background: transparent; padding: 2px 0 3px; font-size: 1rem; font-weight: 600; width: 100%; min-width: 0; color: var(--ink); }
.field select { -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--faint); font-weight: 500; }
.field--swap { padding-right: 52px; }
.swap-btn { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; transition: rotate .4s var(--ease-spring); }
.swap-btn.is-spun { rotate: 180deg; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); line-height: 1; font-weight: 700; }
.stepper output { font-weight: 650; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.check input { accent-color: var(--navy-500); width: 18px; height: 18px; }

/* Tabs used elsewhere (deals page) */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 650; font-size: .93rem; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tabs .tabs__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-1); transition: left .35s var(--ease), width .35s var(--ease); }

/* ---------- 8b. Services bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 168px; } }
.svc {
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 18px; padding: 18px; min-height: 150px;
  border-radius: 24px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--v) 40%, var(--line)); }
.svc::after { content: ""; position: absolute; width: 180px; aspect-ratio: 1; right: -60px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--v) 22%, transparent), transparent 70%); transition: transform .5s var(--ease); }
.svc:hover::after { transform: scale(1.3); }
@media (min-width: 1100px) { .bento--4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; } }
.svc b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.svc small { color: var(--muted); display: block; margin-top: 2px; font-size: .86rem; line-height: 1.4; }
.svc__go { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background-color .2s, color .2s; }
.svc:hover .svc__go { background: var(--v); color: #fff; }
@media (min-width: 1100px) {
  .svc--lg { grid-column: span 2; grid-row: span 2; padding: 26px; background: linear-gradient(160deg, var(--vs), var(--surface) 70%); }
  .svc--lg b { font-size: 1.7rem; }
  .svc--lg small { font-size: 1rem; max-width: 30ch; }
  .svc--lg .vicon { width: 56px; height: 56px; border-radius: 18px; }
  .svc--wide { grid-column: span 2; }
}
:root[data-theme="dark"] .svc--lg { background: linear-gradient(160deg, var(--vd), var(--surface) 70%); }
.svc__brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.svc__brands span { font-size: .76rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.svc__art { position: absolute; right: 28px; top: 72px; width: 52%; max-width: 240px; color: var(--v); opacity: .9; }
@media (max-width: 1099px) { .svc__art { display: none; } }

/* ---------- 9. Postcard art scenes (Palette 3) ---------- */
.art {
  --sky1: #bfe3f5; --sky2: #f6efe2; --sun: #fff1c9; --sea1: #1f7fb6; --sea2: #0d4f86; --land: #f4f7fb; --horizon: 30%; --land-h: 46%;
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; color: var(--land);
  background: linear-gradient(180deg, var(--sky1), var(--sky2) 70%);
}
.art::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; right: 16%; bottom: calc(var(--horizon) + 14%); background: radial-gradient(circle, var(--sun) 55%, transparent 72%); }
.art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: var(--horizon);
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .14) 0 1px, transparent 1px 9px), linear-gradient(180deg, var(--sea1), var(--sea2));
}
.art > svg { position: absolute; z-index: 1; left: 0; width: 100%; height: var(--land-h); bottom: calc(var(--horizon) - 1px); fill: currentColor; }
.art--inland::after { display: none; }
.art--inland > svg { bottom: 0; }
.art--aegean  { --sky1: #9fd2ef; --sky2: #eef6f6; --sun: #fff4cf; --sea1: #1979b4; --sea2: #08457c; --land: #f7f9fc; }
.art--tropic  { --sky1: #ffc98f; --sky2: #ffe7c4; --sun: #fff6dc; --sea1: #13a3a5; --sea2: #08646f; --land: #0f3a31; }
.art--dusk    { --sky1: #2f2a6b; --sky2: #ef8e6c; --sun: #ffd39b; --sea1: #3a4a8a; --sea2: #1a2252; --land: #19163a; }
.art--desert  { --sky1: #f8dcb0; --sky2: #f2b47c; --sun: #fff4d8; --land: #b0532d; --land-h: 62%; }
.art--alpine  { --sky1: #bfe1fb; --sky2: #eef7ff; --sun: #ffffff; --sea1: #2470a8; --sea2: #0f3f6e; --land: #27463a; --land-h: 60%; }
.art--riviera { --sky1: #a6d6f0; --sky2: #fff1dd; --sun: #fff4d1; --sea1: #1594b2; --sea2: #0a5b7c; --land: #d07b44; --land-h: 54%; }
.art--rose    { --sky1: #ffc6b3; --sky2: #ffe8da; --sun: #fff3e6; --land: #c07052; --land-h: 50%; }
.art--lagoon  { --sky1: #c4ecf0; --sky2: #f3fbf7; --sun: #fffbe3; --sea1: #27b9b4; --sea2: #0b7b86; --land: #1d5a43; }
.art--harbour { --sky1: #d6e7f7; --sky2: #fbefe0; --sun: #fff1d6; --sea1: #2b6aa0; --sea2: #123d6b; --land: #d9b38c; }

/* ---------- 10. Postcard cards & rails ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 290px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scroll-padding-inline: var(--gutter); }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; }
.rail-nav button:disabled { opacity: .35; cursor: default; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.postcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.postcard .art { aspect-ratio: 4 / 3.6; }
.postcard__body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; }
.postcard__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.postcard__title a { color: var(--ink); text-decoration: none; }
.postcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card clickable */
.postcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .88rem; }
.postcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.postcard__foot { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-size: .82rem; color: var(--muted); line-height: 1.2; }
.price b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.postcard .tags { position: absolute; z-index: 3; left: 12px; top: 12px; display: flex; gap: 6px; }
.postcard .tags .tag { background: rgb(255 255 255 / .92); color: #043664; }
.fav-btn {
  position: absolute; z-index: 3; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .92); color: #102032; display: grid; place-items: center; box-shadow: var(--shadow-1);
}
.fav-btn .icon { width: 20px; height: 20px; transition: fill .2s, color .2s; }
.fav-btn[aria-pressed="true"] { color: var(--coral); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn.is-bump { animation: heart .45s var(--ease-spring); }
@keyframes heart { 40% { transform: scale(1.3); } }
.postcard.is-hidden { display: none; }

/* ---------- 11. Deal tickets ---------- */
.tickets { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ticket {
  --notch: 12px; position: relative; display: grid; grid-template-columns: 1fr auto; background: var(--surface);
  border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 118px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 118px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 118px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 118px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main { padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.ticket__route { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ticket__route .line { flex: 1; height: 0; border-top: 2px dotted var(--line-strong); position: relative; min-width: 24px; }
.ticket__route .line .icon { position: absolute; left: 50%; top: -11px; translate: -50% 0; background: var(--surface); color: var(--lagoon); padding: 0 2px; }
.ticket__route small { display: block; font: 500 .75rem var(--font-body); color: var(--muted); }
.ticket__desc { margin: 0; color: var(--muted); font-size: .92rem; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket__stub { width: 118px; padding: 16px 14px; border-left: 2px dashed var(--line-strong); display: grid; align-content: space-between; gap: 10px; text-align: center; background: var(--surface-2); }
.ticket__stub .price b { font-size: 1.6rem; }
.countdown { font-size: .74rem; font-weight: 650; color: var(--coral); font-variant-numeric: tabular-nums; }

/* ---------- 12. Type tiles, steps, editorial ---------- */
.types { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .types { grid-template-columns: repeat(6, 1fr); } }
.type {
  display: grid; gap: 14px; padding: 18px; border-radius: var(--r-m); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
.type:hover { text-decoration: none; border-color: var(--navy-500); transform: translateY(-2px); }
.type__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c, var(--lagoon-soft)); color: var(--cf, var(--lagoon)); }
.type b { font-family: var(--font-display); font-size: 1.08rem; }
.type small { color: var(--muted); }

.steps { counter-reset: s; display: grid; gap: 28px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font: 750 1.25rem var(--font-display); background: var(--navy); color: #fff;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 60px; right: -14px; border-top: 2px dashed var(--line-strong); }
@media (max-width: 859px) { .steps li::after { display: none; } }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.editorial { display: grid; gap: 22px; }
@media (min-width: 900px) { .editorial { grid-template-columns: 1.25fr 1fr; } }
.story-lead { display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; position: relative; }
.story-lead:hover { text-decoration: none; }
.story-lead .art { aspect-ratio: 16 / 10; }
.story-lead__body { padding: 22px 24px 26px; }
.story-lead h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: #fff; }
.story-lead p { color: var(--on-navy-muted); margin: 0; }
.story-list { display: grid; gap: 4px; align-content: start; list-style: none; margin: 0; padding: 0; }
.story { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.story:hover { background: var(--surface); text-decoration: none; }
.story .art { aspect-ratio: 1; border-radius: var(--r-s); }
.story b { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; display: block; margin: 4px 0; }
.story small { color: var(--muted); }

/* ---------- 13. Newsletter "passport" ---------- */
.passport {
  position: relative; overflow: hidden; display: grid; gap: 26px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-l); background: var(--navy); color: #fff;
  background-image: radial-gradient(circle at 110% -10%, rgb(250 187 65 / .35), transparent 40%), repeating-radial-gradient(circle at 0 120%, transparent 0 22px, rgb(255 255 255 / .04) 22px 23px);
}
@media (min-width: 900px) { .passport { grid-template-columns: 1.1fr 1fr; } }
.passport h2 { color: #fff; }
.passport p { color: var(--on-navy-muted); margin: 0; }
.passport__perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: #dfe8f3; }
.passport__perks li { display: flex; gap: 10px; align-items: center; }
.passport__perks .icon { color: var(--sun); }
.subscribe { display: grid; gap: 10px; }
.subscribe__row { display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill); background: #fff; }
.subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; color: #102032; font-size: 1rem; }
.subscribe small { color: var(--on-navy-muted); }
.subscribe .err { color: #ffb4a0; font-weight: 600; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--navy-700); color: var(--on-navy-muted); padding: 64px 0 28px; margin-top: 0; }
:root[data-theme="dark"] .site-footer { background: #050c16; }
.site-footer a { color: #e3ecf6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer-grid h3 { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; }
.theme-switch { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgb(255 255 255 / .08); }
.theme-switch button { border: 0; background: transparent; color: var(--on-navy-muted); padding: 6px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.theme-switch button[aria-pressed="true"] { background: rgb(255 255 255 / .16); color: #fff; }

/* ---------- 15. Page heads, filters, empty states ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); margin-bottom: .3em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.filterbar {
  position: sticky; top: calc(var(--header-h) + 18px); z-index: 20; padding: 12px 0; background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .3s var(--ease);
}
.site-header.is-hidden ~ main .filterbar { top: 0; }
.filterbar__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); flex: 1 1 220px; max-width: 360px; }
.searchbox:focus-within { border-color: var(--navy-500); }
.searchbox input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
.select { height: 44px; padding: 0 36px 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23515f6e' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font-weight: 550; }
.range { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.range input { accent-color: var(--coral); width: 130px; }
.result-count { font-size: .9rem; color: var(--muted); margin: 18px 0; }
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-l); color: var(--muted); }
.empty h3 { color: var(--ink); }
.empty[hidden] { display: none; }

/* ---------- 16. Destination page ---------- */
.dest-hero { position: relative; border-radius: var(--r-l); overflow: hidden; }
.dest-hero .art { aspect-ratio: 21 / 9; min-height: 280px; }
.dest-hero__title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px clamp(20px, 4vw, 40px); color: #fff; background: linear-gradient(transparent, rgb(2 20 40 / .72)); }
.dest-hero__title h1 { color: #fff; margin: 0; }
.dest-hero__title p { margin: 4px 0 0; color: #dfe8f3; }
.dest-hero .fav-btn { right: 18px; top: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin: 22px 0; }
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.layout-split { display: grid; gap: 40px; }
@media (min-width: 1000px) { .layout-split { grid-template-columns: minmax(0, 1fr) 360px; } }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 16px; align-self: start; }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow-2); }
.book-card h2 { font-size: 1.35rem; }
.book-links { display: grid; gap: 8px; margin: 14px 0; }
.book-link { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
.book-link:hover { text-decoration: none; border-color: var(--navy-500); background: var(--surface-2); }
.book-link .type__icon { width: 40px; height: 40px; border-radius: 12px; }
.book-link b { display: block; font-size: .97rem; }
.book-link small { color: var(--muted); }
.disclosure { font-size: .78rem; color: var(--muted); margin: 0; }

.climate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 170px; margin: 18px 0 8px; }
.month { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; border: 0; background: none; padding: 0; color: var(--muted); font-size: .72rem; font-weight: 650; }
.month__bar { align-self: end; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--sun), color-mix(in oklab, var(--sun) 40%, var(--coral))); height: var(--h); opacity: .45; transition: opacity .2s, transform .3s var(--ease); transform-origin: bottom; }
.month.is-good .month__bar { opacity: .8; }
.month[aria-pressed="true"] .month__bar { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--coral); }
.month[aria-pressed="true"] { color: var(--ink); }
.climate__readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.climate__readout div { background: var(--surface-2); border-radius: var(--r-s); padding: 12px 14px; }
.climate__readout small { color: var(--muted); display: block; font-size: .78rem; }
.climate__readout b { font-family: var(--font-display); font-size: 1.35rem; }
@media (prefers-reduced-motion: no-preference) { .months.is-in .month__bar { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 35ms); } }
@keyframes grow { from { transform: scaleY(0); } }

.areas { display: grid; gap: 14px; }
@media (min-width: 700px) { .areas { grid-template-columns: 1fr 1fr; } }
.area { padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--lagoon)); }
.area h3 { margin-bottom: 4px; }
.area p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--lagoon); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); }
.faq details[open] > div { animation: rise .3s var(--ease); }

/* ---------- 17. Article ---------- */
.progress { position: fixed; z-index: 50; inset: 0 0 auto 0; height: 3px; background: var(--coral); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.article-head { max-width: 780px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: #102032; display: grid; place-items: center; font: 750 1rem var(--font-display); }
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 230px minmax(0, 720px); justify-content: start; } }
.toc { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; font-size: .9rem; display: none; }
@media (min-width: 1000px) { .toc { display: block; } }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a.is-active { color: var(--ink); border-color: var(--coral); font-weight: 650; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: var(--r-m); background: var(--lagoon-soft); margin: 1.6em 0; font-size: 1rem; line-height: 1.6; }
.callout .icon { color: var(--lagoon); width: 24px; height: 24px; }
.callout p:last-child { margin: 0; }
.inline-book { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--surface); margin: 1.6em 0; }
.inline-book p { margin: 0; font-size: 1rem; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); margin-top: 40px; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.3rem; }
.share { display: flex; gap: 8px; margin-top: 24px; }

/* ---------- 18. Forms & misc pages ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.input-group { display: grid; gap: 6px; }
.input-group label { font-weight: 650; font-size: .92rem; }
.input-group input, .input-group textarea, .input-group select { padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-strong); background: var(--surface); outline: 0; }
.input-group textarea { min-height: 150px; resize: vertical; }
.input-group :is(input, textarea, select):focus { border-color: var(--navy-500); box-shadow: 0 0 0 4px color-mix(in oklab, var(--navy-500) 18%, transparent); }
.input-group .hint { font-size: .82rem; color: var(--muted); }
.input-group.has-error :is(input, textarea) { border-color: var(--coral); }
.input-group .error { font-size: .85rem; color: var(--coral); font-weight: 600; display: none; }
.input-group.has-error .error { display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.principles { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.principles .type__icon { width: 44px; height: 44px; }
.principles b { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 2px; }
.principles p { margin: 0; color: var(--muted); }
.money-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 14px 0 10px; }
.money-split span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound .art { width: min(320px, 80vw); border-radius: var(--r-l); margin: 0 auto 28px; box-shadow: var(--shadow-2); }
.legal { max-width: 760px; }

/* ---------- 19. Toast ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); background: #102032; color: #fff; box-shadow: var(--shadow-3); font-weight: 550; pointer-events: auto; animation: toast-in .4s var(--ease-spring) both; }
:root[data-theme="dark"] .toast { background: #e5ecf1; color: #08121f; }
.toast .icon { color: var(--sun); }
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 20. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ==========================================================================
   v2 additions
   ========================================================================== */

/* ---------- 21. Immersive destination cards (home rail) ---------- */
.dcard { position: relative; display: block; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-1); }
.dcard .art { aspect-ratio: 3 / 4.1; transition: transform .7s var(--ease); }
.dcard:hover .art { transform: scale(1.04); }
.dcard__body { position: absolute; z-index: 2; inset: auto 10px 10px 10px; padding: 14px 16px; border-radius: 18px; background: rgb(6 20 40 / .5); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgb(255 255 255 / .16); }
.dcard__body h3 { color: #fff; font-size: 1.35rem; margin: 0; }
.dcard__body h3 a { color: #fff; text-decoration: none; }
.dcard__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.dcard__row { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 6px; font-size: .86rem; color: rgb(255 255 255 / .82); }
.dcard__row b { font-family: var(--font-display); font-size: 1.25rem; color: #fff; display: block; line-height: 1.1; }
.dcard .fav-btn { z-index: 4; }
.dcard .tags { position: absolute; z-index: 4; left: 12px; top: 12px; display: flex; gap: 6px; }
.dcard .tags .tag { background: rgb(255 255 255 / .92); color: #043664; }
.dcard.is-hidden { display: none; }

/* ---------- 22. Vertical (booking) pages ---------- */
.vhero { position: relative; isolation: isolate; overflow: hidden; color: #fff; margin-top: calc((var(--header-h) + 20px) * -1); padding: calc(var(--header-h) + 20px + clamp(28px, 5vw, 64px)) 0 clamp(30px, 4vw, 48px); }
.vhero::before { content: ""; position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse 70% 60% at 18% 20%, rgb(2 14 32 / .45), transparent 70%); }
.vhero .scene { height: 70%; }
.vhero > .container { position: relative; z-index: 2; }
.vhero .crumbs, .vhero .crumbs a { color: rgb(255 255 255 / .8); }
.vhero .crumbs li + li::before { color: rgb(255 255 255 / .5); }
.vhero h1 { color: #fff; font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.2rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; display: flex; align-items: center; gap: 16px; }
.vhero h1 .vicon { width: 58px; height: 58px; border-radius: 18px; background: rgb(255 255 255 / .16); color: #fff; border: 1px solid rgb(255 255 255 / .25); }
.vhero h1 .vicon .icon { width: 28px; height: 28px; }
.vhero__sub { color: rgb(255 255 255 / .86); font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); max-width: 52ch; margin: 14px 0 0; }
.vtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 2px; margin-top: 18px; }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); }
.vtabs a .icon { width: 17px; height: 17px; }
.vtabs a:hover { background: rgb(255 255 255 / .2); text-decoration: none; }
.vtabs a[aria-current="page"] { background: #fff; color: #102032; }

/* ---------- 23. Travelpayouts kit ---------- */
.tp { position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; color: var(--ink); }
.vhero .tp { margin-top: 28px; box-shadow: 0 40px 80px -30px rgb(2 20 45 / .55); border-color: rgb(255 255 255 / .5); }
.tp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px clamp(14px, 2.4vw, 24px); border-bottom: 1px solid var(--line); }
.tp__title { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.tp__title .vicon { width: 34px; height: 34px; border-radius: 11px; }
.tp__note { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tp__note .icon { width: 15px; height: 15px; color: var(--lagoon); }
.tp__body { padding: 18px clamp(14px, 2.4vw, 24px) 20px; }
/* Paste the Travelpayouts <script> inside .tp-widget. While it is empty
   the fallback is shown; once it contains anything the fallback hides. */
.tp-widget:empty { display: none; }
.tp-widget:not(:empty) { min-height: var(--tp-h, 160px); border-radius: 16px; overflow-x: auto; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: tp-shimmer 1.4s linear infinite; }
.tp-widget:not(:empty):has(iframe, div, form, a) { background: none; animation: none; }
.tp-widget iframe, .tp-widget > div, .tp-widget form { max-width: 100% !important; }
.tp-widget:not(:empty) + .tp-fallback { display: none; }
@keyframes tp-shimmer { to { background-position: -200% 0; } }
.tp-slot-label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 12px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .82rem; }
.tp-slot-label code { font-size: .78rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.tp-slot-label .icon { color: var(--lagoon); }
html.tp-live .tp-slot-label { display: none; } /* add class="tp-live" to <html> in production */
.tp-banner { display: grid; place-items: center; margin: 32px auto; max-width: 728px; min-height: 90px; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .82rem; text-align: center; padding: 10px; }
.tp-banner:has(> :not(span)) { border: 0; min-height: 0; padding: 0; }
@media (max-width: 760px) { .tp-banner { max-width: 320px; min-height: 100px; } }
.aff-link { font-weight: 650; color: var(--lagoon); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: color-mix(in oklab, var(--lagoon) 35%, transparent); text-underline-offset: .2em; }
.aff-link::after { content: "\2197"; font-size: .8em; margin-left: 2px; }
.aff-link:hover { text-decoration-color: var(--lagoon); }

/* ---------- 24. Partners, popular lists, tips ---------- */
.partners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.partner { display: grid; gap: 12px; align-content: space-between; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.partner__name { display: flex; align-items: center; gap: 12px; }
.partner__mono { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 1.05rem var(--font-display); background: var(--vs); color: var(--v); letter-spacing: -.03em; }
:root[data-theme="dark"] .partner__mono { background: var(--vd); color: var(--vl); }
.partner__name b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.partner__name small { color: var(--muted); font-size: .82rem; }
.partner p { margin: 0; color: var(--muted); font-size: .93rem; }
.partner .btn { justify-self: start; }
.note { font-size: .84rem; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.note .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--lagoon); }

.popular { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.pop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.pop:hover { text-decoration: none; border-color: var(--v, var(--navy-500)); transform: translateY(-2px); }
.pop b { display: block; font-size: .98rem; }
.pop small { color: var(--muted); }
.pop .icon:last-child { margin-left: auto; color: var(--faint); }
.pop__route { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.pop__route .icon { width: 16px; height: 16px; color: var(--v, var(--lagoon)); }

.tips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; margin: 0; }
.tips li { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tips .vicon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.tips b { display: block; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 4px; letter-spacing: -.01em; }
.tips p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- 25. Setup page ---------- */
.setup-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.setup-table th, .setup-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.setup-table th { background: var(--surface-2); font-size: .82rem; color: var(--muted); font-weight: 650; }
.setup-table code { font-size: .82rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; border-radius: 18px; }
.swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 0; }
.swatches li { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; }
.swatches span { display: block; height: 56px; }
.swatches div { padding: 8px 10px; }
.swatches code { font-weight: 650; }
.codeblock { background: #0b1626; color: #d8e6f5; border-radius: 16px; padding: 16px 18px; overflow-x: auto; font: .85rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 26. Photography ---------- */
/* Photos sit on top of the illustrated .art scene, which doubles as the
   loading placeholder (and as the fallback if an image can't load). */
.art > svg { z-index: 1; }
.art > img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.art > img.is-loaded { opacity: 1; }
.dcard::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(2 14 32 / .25) 0%, transparent 30%, transparent 55%, rgb(2 14 32 / .35) 100%); }
.dcard__body, .dcard .tags, .dcard .fav-btn { z-index: 4; }
.story-lead .art { position: relative; }
.story-lead .art::before, .story-lead .art::after { z-index: 0; }

.hero-photos { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 9s linear; }
.hero-photos img.is-on.is-loaded { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-photos img { transform: none; } }
.has-photo::before {
  z-index: 1;
  background: linear-gradient(180deg, rgb(2 14 32 / .55) 0%, rgb(2 14 32 / .2) 38%, rgb(2 14 32 / .25) 62%, rgb(2 14 32 / .6) 100%),
              radial-gradient(ellipse 70% 55% at 18% 22%, rgb(2 14 32 / .5), transparent 70%);
}
.hero2.has-photo { min-height: min(900px, 100svh); }
.vhero.has-photo { padding-bottom: clamp(36px, 5vw, 60px); }

.svc__photo { position: absolute; left: 0; right: 0; top: 0; height: 52%; overflow: hidden; z-index: 0; display: none; }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.svc__photo img.is-loaded { opacity: 1; }
.svc__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.svc:hover .svc__photo img { transform: scale(1.04); }
@media (min-width: 1100px) {
  .svc--lg .svc__photo { display: block; }
  .svc--lg > .vicon, .svc--lg > .svc__go { position: relative; z-index: 2; }
  .svc--lg > .vicon { background: rgb(255 255 255 / .9); box-shadow: var(--shadow-1); }
}
.svc--lg .svc__art { display: none; }
.credits { columns: 2 260px; padding-left: 1.1em; font-size: .9rem; color: var(--muted); }
.credits li { margin-bottom: 6px; break-inside: avoid; }


/* ==========================================================================
   WordPress additions
   ========================================================================== */

/* Admin bar offsets for sticky elements */
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }
.site-header { top: var(--adminbar, 0px); }
.filterbar { top: calc(var(--header-h) + 18px + var(--adminbar, 0px)); }
.aside-sticky, .toc { top: calc(var(--header-h) + 36px + var(--adminbar, 0px)); }
.progress { top: var(--adminbar, 0px); }

/* Service accents: any colour picked in the dashboard */
.has-accent { --vs: color-mix(in oklab, var(--v, #0079b3) 13%, #fff); --vl: color-mix(in oklab, var(--v, #0079b3) 55%, #fff); --vd: color-mix(in oklab, var(--v, #0079b3) 28%, #0b1320); }
.vicon.has-accent, .has-accent .vicon { background: var(--vs); color: var(--v); }
:root[data-theme="dark"] .vicon.has-accent, :root[data-theme="dark"] .has-accent .vicon { background: var(--vd); color: var(--vl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vicon.has-accent, :root:not([data-theme="light"]) .has-accent .vicon { background: var(--vd); color: var(--vl); } }
.finder__tabs [role="tab"][aria-selected="true"] .vicon { background: var(--v); color: #fff; }
.svc__text { position: relative; z-index: 1; }
.nav__trigger[data-current] { color: var(--navy-500); }
.drawer-nav .vicon { width: 34px; height: 34px; border-radius: 10px; }
.drawer-nav .vicon .icon { width: 18px; height: 18px; }
.drawer-label { margin: 18px 12px 4px; font-size: .82rem; font-weight: 650; color: var(--muted); }
.sheet__body .theme-switch { margin-top: 24px; }
.brand__img { width: auto; height: 38px; max-width: 160px; object-fit: contain; }

/* Cards */
.postcard__text { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.postcard__title--sm { font-size: 1.15rem; line-height: 1.25; }
.postcard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.postcard--text .postcard__body { padding: 20px; }
.partner__logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.partner__logo img { width: 100%; height: 100%; object-fit: contain; }
.btn--warn { --btn-bg: var(--sun-soft); --btn-bd: #e4b54a; }

/* Layout helpers */
.container--narrow { max-width: 860px; }
.section-pad-bottom { padding-bottom: 80px; }
.section-top-0 { padding-top: 12px; }
.page-head--flush { padding-bottom: 0; }
.block-gap { margin-top: 44px; }
.climate.block-gap { margin-top: 32px; }
.h-sm { font-size: 1.5rem; }
.small { font-size: .9rem; }
.section-head--flush { margin: 0; }
.chips--gap { margin-bottom: 24px; }
.photo-credit { margin: 8px 4px 0; font-size: .8rem; color: var(--muted); }
.photo-credit a { color: var(--muted); }
.lead--prose p { margin: 0 0 .6em; }
.type__icon--sun { --c: var(--sun-soft); --cf: oklch(.5 .12 70); }
.type__icon--coral { --c: var(--coral-soft); --cf: var(--coral); }
.notfound__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.notfound .lead { margin-inline: auto; }
.searchbox--lg { max-width: 560px; height: 52px; margin-top: 8px; }

/* Setup hints (only visible to logged-in editors) */
.setup-hint { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-m); border: 1.5px dashed #d9a530; background: var(--sun-soft); color: var(--ink); font-size: .9rem; line-height: 1.5; }
.setup-hint .icon { color: #b07a00; margin-top: 2px; }
.setup-hint p { margin: 0; }
.setup-hint a { font-weight: 650; }
.vhero .setup-hint, .hero2 .setup-hint { background: #fff8e6; color: #102032; }

/* Widget slots */
.hr-slot { max-width: 100%; overflow-x: auto; }
.hr-slot--desktop { display: none; }
@media (min-width: 768px) { .hr-slot--desktop { display: block; } .hr-slot--mobile { display: none; } }
.tp-banner:has(.hr-slot) { border: 0; min-height: 0; padding: 0; }
.subscribe--embed { background: #fff; border-radius: var(--r-m); padding: 16px; color: #102032; }

/* Forms */
.callout--error { background: var(--coral-soft); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Article */
.article-title { margin-top: 12px; }
.byline__share { margin-left: auto; }
.article-photo { margin: 26px 0 0; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); }
.article-photo img { width: 100%; max-height: 560px; object-fit: cover; }
.article-photo figcaption { padding: 8px 14px; font-size: .8rem; color: var(--muted); }
.article-photo figcaption a { color: var(--muted); }
.article-layout--solo { grid-template-columns: minmax(0, 760px) !important; }
.tags-line a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; text-decoration: none; }
.comments-wrap { max-width: 760px; margin-top: 48px; }

/* Block content inside .prose */
.prose { overflow-wrap: break-word; }
.prose--page { max-width: 760px; }
.prose--home { max-width: 860px; }
.prose > * + * { margin-top: 0; }
.prose a:not(.btn) { color: var(--lagoon); }
.prose a.btn { text-decoration: none; }
.prose img { height: auto; border-radius: var(--r-m); }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .wp-block-image.alignwide, .prose .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.prose .alignfull img { border-radius: 0; }
.prose .wp-block-quote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.prose .wp-block-quote p { margin: 0; }
.prose .wp-block-quote cite { display: block; margin-top: 8px; font: 500 .9rem var(--font-body); color: var(--muted); }
.prose .wp-block-pullquote { border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); padding: 1.4em 0; text-align: center; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 650; text-decoration: none; }
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.6em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 650; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .wp-block-embed iframe { max-width: 100%; border-radius: var(--r-m); }
.prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.prose .wp-block-column { flex: 1 1 260px; }
.prose .has-text-align-center { text-align: center; }
.prose .wp-block-details { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 18px; background: var(--surface); }
.prose .wp-block-details summary { font-weight: 650; cursor: pointer; }
.prose .inline-book { font-size: 1rem; }
.prose .credits { columns: 2 260px; font-size: .9rem; color: var(--muted); }

/* Pagination */
.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 36px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-links .page-numbers:hover:not(.current) { border-color: var(--navy-500); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Comments */
.comments { padding-top: 24px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.comment-list .children { list-style: none; margin: 12px 0 0 28px; padding: 0; }
.comment-body { padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.comment-meta { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line-strong); background: var(--surface); }

/* Newsletter on narrow screens: stack the field and button */
@media (max-width: 520px) {
  .subscribe__row { flex-direction: column; border-radius: var(--r-m); padding: 8px; }
  .subscribe__row input { min-height: 46px; }
  .subscribe__row .btn { width: 100%; }
}
.subscribe small a { color: #fff; }
