/* ==========================================================================
   Theme tokens.

   Three layers, in order:
     1. Ramps      — raw values. Nothing outside this block should hold a hex.
     2. Cluster    — one hue per content cluster. Badges, hub headers and system
                     tiles all derive from these, so a cluster is recoloured in
                     exactly one place.
     3. Semantic   — what the UI actually references.

   The dark theme at the bottom of this block only overrides layer 3, which is
   why it is short. Tints are built with color-mix() rather than hardcoded rgba
   so they follow the palette automatically.
   ========================================================================== */
:root {
  color-scheme: light;

  /* -- 1. Ramps ----------------------------------------------------------- */
  --navy-900: #071320;
  --navy-800: #0b1d30;
  --navy-700: #112a42;
  --navy-600: #1a3a58;
  --navy-500: #27506f;

  --cool-50:  #f5f8fb;
  --cool-100: #eaf0f6;
  --cool-200: #dbe4ed;
  --cool-300: #c7d4e0;
  --cool-500: #5d7186;
  --cool-700: #33495d;

  --coral-700: #c9430b;   /* white text clears 4.5:1 — filled buttons only */
  --coral-600: #d24d24;
  --coral-500: #ef6238;   /* vivid — tints, borders, never under white text */
  --coral-400: #ff8259;

  --sky-600: #17709f;
  --sky-500: #2f9ad6;
  --sky-400: #62b8e8;

  /* -- 2. Cluster hues ---------------------------------------------------- */
  --c-destination-systems: #3d6b8c;
  --c-airport-transit:     #5a6578;
  --c-connected-travel:    #1f7a76;
  --c-travel-safety:       #8a5f4e;
  --c-booking-money:       #8a7344;
  --c-packing-gear:        #4a7c59;
  --c-digital-nomad:       #5c5480;
  --c-family-travel:       #9e5a66;
  --c-route-blueprints:    #3d5a80;
  --c-smart-checklists:    #4a6b7c;
  --c-travel-hacks:        var(--coral-600);
  --c-seasonal-event:      #6b7a4a;
  --c-travel-insurance:    #1f7a76;

  /* Legacy aliases — cluster rules and a few components still name hues
     directly. Kept so the palette has a single definition. */
  --teal: var(--c-connected-travel);
  --sage: var(--c-packing-gear);
  --ocean: var(--c-destination-systems);
  --slate: var(--c-airport-transit);
  --indigo: var(--c-digital-nomad);
  --rose: var(--c-family-travel);
  --amber: var(--c-booking-money);
  --olive: var(--c-seasonal-event);

  /* -- 3. Semantic -------------------------------------------------------- */
  --bg: var(--cool-50);
  --bg-alt: var(--cool-100);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: var(--navy-900);
  --text-muted: var(--cool-500);
  --border: var(--cool-200);
  --border-strong: var(--cool-300);

  --accent: var(--coral-500);
  --accent-dark: var(--coral-600);
  /* Split from --accent: the vivid coral only reaches 3.2:1 under white text,
     so filled buttons use a darker step. */
  --accent-solid: var(--coral-700);
  --accent-solid-hover: #a83606;
  --on-accent: #ffffff;
  --link: var(--sky-600);

  /* "Ink" surfaces are dark in both themes: header, hero, footer, overlays. */
  --ink: var(--navy-800);
  --ink-2: var(--navy-700);
  --ink-3: var(--navy-600);
  --on-ink: #ffffff;
  --on-ink-muted: color-mix(in srgb, #ffffff 72%, transparent);
  --on-ink-border: color-mix(in srgb, #ffffff 16%, transparent);

  --ring: color-mix(in srgb, var(--sky-500) 38%, transparent);
  --scrim: color-mix(in srgb, var(--navy-900) 82%, transparent);
  --shadow: 0 8px 30px color-mix(in srgb, var(--navy-900) 10%, transparent);
  --shadow-lift: 0 14px 40px color-mix(in srgb, var(--navy-900) 16%, transparent);

  --brand-gradient: linear-gradient(135deg, var(--accent) 0%, var(--sky-600) 100%);
  --brand-stripe: linear-gradient(90deg, var(--accent), var(--sky-500), var(--c-connected-travel));

  --radius: 12px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --article: 720px;
  --hub-accent: var(--sky-600);
  --hub-tint: var(--bg-alt);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Cluster hues are mid-tones tuned for white; lift them so they keep
       contrast against a navy page. */
    --c-destination-systems: #7fb0d6;
    --c-airport-transit:     #9aa7bd;
    --c-connected-travel:    #55bdb7;
    --c-travel-safety:       #d3a08a;
    --c-booking-money:       #d3b877;
    --c-packing-gear:        #86c295;
    --c-digital-nomad:       #a49bd0;
    --c-family-travel:       #e0959f;
    --c-route-blueprints:    #8aa6d4;
    --c-smart-checklists:    #93b6c9;
    --c-travel-hacks:        var(--coral-400);
    --c-seasonal-event:      #b3c184;
    --c-travel-insurance:    #55bdb7;

    --bg: var(--navy-900);
    --bg-alt: var(--navy-800);
    --surface: #0e2236;
    --surface-raised: #142c43;
    --text: #eaf1f8;
    --text-muted: #9db0c2;
    --border: #1c3a55;
    --border-strong: #2a4a68;

    --accent: var(--coral-400);
    --accent-dark: var(--coral-500);
    /* On a dark page the button keeps the bright coral, but white text drops to
       2.4:1 — navy text on it reaches 7.6:1. */
    --accent-solid: var(--coral-400);
    --accent-solid-hover: var(--coral-500);
    --on-accent: var(--navy-900);
    --link: var(--sky-400);

    --ink: #06111d;
    --ink-2: var(--navy-800);
    --ink-3: var(--navy-700);

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.55);
    --hub-accent: var(--sky-400);
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* Display face. Archivo is set tight and heavy so headlines read as product
   signage rather than body copy set large. */
h1, h2, h3, .logo, .footer-brand, .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-weight: 800; letter-spacing: -0.028em; }
.home-hero h1 { letter-spacing: -0.034em; line-height: 1.05; }
.card h2, .card h3 { letter-spacing: -0.01em; }
html {
  scroll-behavior: smooth;
  /* The header is sticky at 65px, so anchor jumps (article TOC, breadcrumbs)
     would otherwise land with the target heading hidden underneath it. */
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--c-connected-travel) 5%, transparent), transparent 42%),
    radial-gradient(circle at 88% 92%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 38%),
    var(--bg);
}
::selection {
  background: color-mix(in srgb, var(--c-connected-travel) 22%, transparent);
  color: var(--text);
}
body.splash-active { overflow: hidden; }

.site-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--ink-2) 55%, var(--navy-900) 100%);
  color: var(--on-ink);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.site-splash[hidden],
.site-splash.site-splash--done {
  display: none !important;
}
.site-splash.site-splash--active {
  display: flex;
}
.site-splash--out { opacity: 0; visibility: hidden; pointer-events: none; }
.site-splash-inner { text-align: center; padding: 2rem; max-width: 28rem; }
.site-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.site-splash-logo {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  margin: 0;
  letter-spacing: 0.02em;
}
.site-splash-tagline {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--on-ink) 82%, transparent);
  line-height: 1.5;
}
.site-splash-loader {
  width: min(240px, 70vw);
  height: 4px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--on-ink) 20%, transparent);
  border-radius: 999px;
  overflow: hidden;
}
.site-splash-loader-bar {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--brand-gradient);
  border-radius: inherit;
  animation: splash-load 1.1s ease-in-out infinite;
}
@keyframes splash-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-splash { transition: none; }
  .site-splash-loader-bar { animation: none; width: 100%; }
  .card:hover, .btn.primary:hover { transform: none; }
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
a { color: var(--link); text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

/* Header and hero share one dark "ink" band, so the brand reads as a booking
   product rather than a magazine masthead, and the white search card lands at
   maximum contrast against it. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--on-ink-border);
  color: var(--on-ink);
}
.site-header .logo,
.site-header .logo:hover { color: var(--on-ink); }
.site-header .site-nav a,
.site-header .search-open,
.site-header .nav-toggle { color: var(--on-ink-muted); }
.site-header .site-nav a:hover,
.site-header .search-open:hover { color: var(--on-ink); }
.nav-dropdown { background: var(--surface); border-color: var(--border); }
.nav-dropdown a { color: var(--text); }
.nav-dropdown a:hover { background: var(--bg-alt); }
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-stripe);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-text { letter-spacing: 0.01em; }
.logo-mark {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  background: var(--brand-gradient);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 28%, transparent);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid color-mix(in srgb, var(--on-ink) 92%, transparent);
  border-radius: 3px;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}
.logo-mark--lg {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.logo-mark--lg::after { inset: 9px; border-width: 2.5px; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.7rem;
  flex: 1;
  min-width: 0;
}
.site-nav a, .search-open {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.88rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.nav-group { position: relative; flex-shrink: 0; }
.nav-group-head {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-group-label {
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav-subtoggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.nav-subtoggle:hover { background: var(--bg-alt); color: var(--text); }
.nav-group:hover .nav-group-label,
.nav-group:focus-within .nav-group-label,
.nav-group.is-open .nav-group-label {
  border-bottom-color: var(--accent, var(--accent));
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 12rem;
  padding: 0.5rem 0;
  background: var(--surface, var(--on-ink));
  border: 1px solid var(--border, var(--border));
  border-radius: 8px;
  box-shadow: 0 8px 24px color-mix(in srgb, #000 8%, transparent);
  z-index: 50;
}
.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-muted, var(--bg-alt)); }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { display: block; }
.destination-region { margin-bottom: 2.5rem; }
.destination-region .section-title {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; }

.search-overlay {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
  background: var(--surface);
}
.search-overlay input {
  width: 100%; padding: 0.85rem 1rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.search-results { margin-top: 0.75rem; }
.search-results a {
  display: block; padding: 0.65rem 0;
  border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.search-results small { color: var(--text-muted); }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  color: var(--on-ink);
  background:
    radial-gradient(ellipse 70% 60% at 88% 6%, color-mix(in srgb, var(--sky-600) 34%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 4% 92%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(165deg, var(--ink-2) 0%, var(--ink) 55%, var(--navy-900) 100%);
}
.home-hero h1 { color: var(--on-ink); }
.home-hero .hero-sub { color: var(--on-ink-muted); }
.home-hero .eyebrow {
  color: var(--sky-400);
  background: color-mix(in srgb, #fff 10%, transparent);
  border-color: var(--on-ink-border);
}
.home-hero .btn.ghost {
  background: color-mix(in srgb, #fff 8%, transparent);
  border-color: var(--on-ink-border);
  color: var(--on-ink-muted);
}
.home-hero .btn.ghost:hover {
  background: color-mix(in srgb, #fff 16%, transparent);
  border-color: color-mix(in srgb, #fff 34%, transparent);
  color: var(--on-ink);
}
/* The form is a light card in both themes — it must read as the focal object. */
.home-hero .fs-form {
  background: var(--surface-raised);
  border-color: transparent;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--navy-900) 45%, transparent);
}
.home-hero .fs-note, .home-hero .fs-oneway { color: var(--text-muted); }
.home-hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: min(480px, 55vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-destination-systems) 7%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.home-hero .eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: color-mix(in srgb, var(--c-connected-travel) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-connected-travel) 16%, transparent);
  border-radius: 999px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; font-weight: 600; color: var(--teal);
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15; max-width: 16ch; margin: 0.75rem 0 0.5rem;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block; padding: 0.75rem 1.25rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn.primary {
  background: var(--accent-solid); color: var(--on-accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-solid) 30%, transparent);
}
.btn.primary:hover {
  background: var(--accent-solid-hover); color: var(--on-accent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 34%, transparent);
  transform: translateY(-1px);
}
.btn.secondary { border-color: var(--text); color: var(--text); }
.btn.secondary:hover { background: var(--text); color: var(--on-ink); }

section { padding: 3rem 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.75rem; margin-bottom: 1.5rem;
}
.section-title::before {
  content: "";
  flex-shrink: 0;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.intent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 3px solid var(--intent-accent, var(--teal));
}
.intent-card:nth-child(1) { --intent-accent: var(--ocean); }
.intent-card:nth-child(2) { --intent-accent: var(--amber); }
.intent-card:nth-child(3) { --intent-accent: var(--sage); }
.intent-card:nth-child(4) { --intent-accent: var(--slate); }
.intent-card:nth-child(5) { --intent-accent: var(--teal); }
.intent-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.intent-card h2 { font-size: 1rem; margin: 0 0 0.35rem; }
.intent-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid > .card { min-width: 0; }
.card-grid.large { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  text-decoration: none; color: inherit;
  display: block;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  min-width: 0;
}
.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.card-media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-alt);
  line-height: 0;
}
.card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border: 0;
}
.card-body {
  display: block;
  padding: 1.25rem;
  flex: 1;
}
.card--media .card-body h2,
.card--media .card-body h3 {
  margin-top: 0;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  color: inherit;
}
.card.featured {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 4px 22px color-mix(in srgb, var(--navy-900) 6%, transparent);
}
.card.featured:not(.card--media) {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--c-connected-travel) 25%, transparent)) border-box;
  border: 1px solid transparent;
}
.card h2, .card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0.5rem 0; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .meta { display: block; margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-muted); }

/* Cluster colour is set once per cluster and every component reads it, so a
   hue lives in exactly one place. Text is mixed toward --text (near-black in
   light, near-white in dark) which keeps every badge above 7:1 in both themes —
   the raw mid-tone hues only reached ~3:1 on their own tint. */
[data-cluster="destination-systems"] { --cluster: var(--c-destination-systems); }
[data-cluster="airport-transit"] { --cluster: var(--c-airport-transit); }
[data-cluster="connected-travel"] { --cluster: var(--c-connected-travel); }
[data-cluster="travel-safety"] { --cluster: var(--c-travel-safety); }
[data-cluster="booking-money"] { --cluster: var(--c-booking-money); }
[data-cluster="packing-gear"] { --cluster: var(--c-packing-gear); }
[data-cluster="digital-nomad"] { --cluster: var(--c-digital-nomad); }
[data-cluster="family-travel"] { --cluster: var(--c-family-travel); }
[data-cluster="route-blueprints"] { --cluster: var(--c-route-blueprints); }
[data-cluster="smart-checklists"] { --cluster: var(--c-smart-checklists); }
[data-cluster="travel-hacks"] { --cluster: var(--c-travel-hacks); }
[data-cluster="seasonal-event"] { --cluster: var(--c-seasonal-event); }
[data-cluster="travel-insurance"] { --cluster: var(--c-travel-insurance); }

.cluster-badge {
  --hue: var(--cluster, var(--c-connected-travel));
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--hue) 62%, var(--text));
  background: color-mix(in srgb, var(--hue) 12%, var(--surface));
  padding: 0.2rem 0.55rem; border-radius: 999px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--hue) 24%, transparent);
}
.cluster-badge.small { font-size: 0.68rem; }

.hub-page {
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, var(--hub-tint) 0%, var(--bg) 320px);
}
.hub-page--destination-systems { --hub-accent: var(--ocean); --hub-tint: color-mix(in srgb, var(--c-destination-systems) 10%, var(--bg)); }
.hub-page--airport-transit { --hub-accent: var(--slate); --hub-tint: color-mix(in srgb, var(--c-airport-transit) 10%, var(--bg)); }
.hub-page--connected-travel { --hub-accent: var(--teal); --hub-tint: color-mix(in srgb, var(--c-connected-travel) 10%, var(--bg)); }
.hub-page--travel-safety { --hub-accent: var(--c-travel-safety); --hub-tint: color-mix(in srgb, var(--c-travel-safety) 10%, var(--bg)); }
.hub-page--booking-money { --hub-accent: var(--amber); --hub-tint: color-mix(in srgb, var(--c-booking-money) 10%, var(--bg)); }
.hub-page--packing-gear { --hub-accent: var(--sage); --hub-tint: color-mix(in srgb, var(--c-packing-gear) 10%, var(--bg)); }
.hub-page--digital-nomad { --hub-accent: var(--indigo); --hub-tint: color-mix(in srgb, var(--c-digital-nomad) 10%, var(--bg)); }
.hub-page--family-travel { --hub-accent: var(--rose); --hub-tint: color-mix(in srgb, var(--c-family-travel) 10%, var(--bg)); }
.hub-page--route-blueprints { --hub-accent: var(--c-route-blueprints); --hub-tint: color-mix(in srgb, var(--c-route-blueprints) 10%, var(--bg)); }
.hub-page--smart-checklists { --hub-accent: var(--c-smart-checklists); --hub-tint: color-mix(in srgb, var(--c-smart-checklists) 10%, var(--bg)); }
.hub-page--travel-hacks { --hub-accent: var(--accent); --hub-tint: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.hub-page--seasonal-event { --hub-accent: var(--olive); --hub-tint: color-mix(in srgb, var(--c-seasonal-event) 10%, var(--bg)); }
.hub-header { margin-bottom: 2rem; }
.hub-header .eyebrow { color: var(--hub-accent); }
.hub-desc { color: var(--text-muted); max-width: 52ch; }

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.system-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit;
  border-top: 3px solid var(--cluster, var(--c-connected-travel));
  transition: box-shadow 0.2s, transform 0.2s;
}
.system-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
/* tile accent comes from the shared [data-cluster] mapping above */
.system-tile h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.system-tile p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.two-col {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem;
}
.persona-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; margin-bottom: 0.75rem; background: var(--surface);
}
.persona-block summary { cursor: pointer; }
.persona-block ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.pick-list { list-style: none; padding: 0; margin: 0; }
.pick-list li { border-bottom: 1px solid var(--border); }
.pick-list li:last-child { border-bottom: 0; }
.pick-list a {
  display: block;
  padding: 0.7rem 0.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.pick-list a:hover {
  color: var(--teal);
  padding-left: 0.5rem;
}

.newsletter-card, .newsletter-footer {
  background: var(--text); color: var(--on-ink); border-radius: var(--radius);
  padding: 1.25rem; margin-top: 1.5rem;
}
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.newsletter-form input {
  flex: 1; padding: 0.6rem 0.75rem; border: none; border-radius: 8px;
}
.newsletter-form button {
  padding: 0.6rem 1rem; background: var(--accent); color: var(--on-ink);
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
}

.trust-strip {
  background: var(--bg-alt); text-align: center; padding: 2rem 0;
}
.trust-strip a { font-weight: 600; }

.video-highlight {
  overflow-x: clip;
  max-width: 100%;
}
.video-highlight .video-wrapper {
  max-width: 100%;
}
.videos-index {
  overflow-x: clip;
  max-width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  line-height: 0;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}
.video-embed {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}
.video-embed h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.video-note {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Article */
.article-page {
  overflow-x: clip;
  max-width: 100%;
}
#main {
  overflow-x: clip;
  max-width: 100%;
}
.hero-placeholder {
  min-height: 280px; background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
  color: var(--on-ink); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.article-hero {
  margin: 0; width: 100%; max-height: 480px; overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
}
.article-hero img {
  width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block;
}
.hero-label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; }
.hero-placeholder p { max-width: 50ch; margin: 0.5rem 0 0; font-size: 0.95rem; opacity: 0.95; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem;
  padding: 2rem 0 4rem;
  max-width: 100%;
  overflow-x: clip;
}
.article-main {
  min-width: 0;
  max-width: 780px;
  width: 100%;
  overflow-x: clip;
}
.article-main > * {
  max-width: 100%;
}
.article-sidebar {
  min-width: 0;
  max-width: 280px;
  overflow-x: clip;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose p { margin: 0 0 1.15rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2; margin: 0.75rem 0;
}
.article-excerpt { font-size: 1.15rem; color: var(--text-muted); }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  font-size: 0.82rem; color: var(--text-muted);
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.trust-badge {
  background: var(--bg-alt); padding: 0.15rem 0.5rem; border-radius: 999px;
}

.callout {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout h2 { font-size: 1rem; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.quick-plan ul { margin: 0; padding-left: 1.2rem; }

.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.toc h2 { font-size: 0.9rem; margin: 0 0 0.75rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc-h3 { margin-left: 1rem; font-size: 0.92rem; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem; margin: 2.5rem 0 1rem;
  scroll-margin-top: 80px;
}
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; scroll-margin-top: 80px; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.prose iframe,
.prose video,
.prose embed {
  max-width: 100%;
}
.prose li { margin-bottom: 0.35rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: left; }
th { background: var(--bg-alt); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.checklist li.is-done label { opacity: 0.72; }
.checklist li.is-done { color: var(--text-muted); }
.checklist label { cursor: pointer; display: flex; gap: 0.5rem; align-items: flex-start; }
.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.checklist-progress {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

.sidebar-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem;
}
.sidebar-box h3 { font-size: 0.85rem; text-transform: uppercase; margin: 0 0 0.5rem; letter-spacing: 0.04em; }
.tag-list { list-style: none; padding: 0; margin: 0; }
.tag-list li {
  display: inline-block; background: var(--bg-alt);
  padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.82rem; margin: 0.2rem 0.2rem 0 0;
}

.site-footer {
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, var(--navy-900) 45%, var(--ink-3) 100%);
  color: color-mix(in srgb, var(--on-ink) 85%, transparent);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-stripe);
}
.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.footer-brand-wrap .logo-mark {
  box-shadow: 0 2px 12px color-mix(in srgb, #000 25%, transparent);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--on-ink); margin: 0; }
.footer-tagline { margin: 0.35rem 0 0; }
.footer-heading { color: var(--on-ink); font-weight: 600; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: color-mix(in srgb, var(--on-ink) 92%, transparent); }
.site-footer a:hover { color: var(--on-ink); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--on-ink) 15%, transparent); font-size: 0.85rem; }

.filter-bar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.filter-primary { display: flex; flex-wrap: wrap; gap: 1rem; }
.filter-advanced { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.filter-advanced summary { cursor: pointer; font-weight: 600; }
.filter-advanced-inner { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; align-items: center; }
.filter-bar label { font-size: 0.9rem; font-weight: 600; }
.filter-bar select { margin-left: 0.35rem; padding: 0.4rem; }
.filter-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.btn.small { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.search-badge { display: block; font-size: 0.75rem; color: var(--teal); margin-top: 0.25rem; }
.no-results-suggest { font-size: 0.9rem; color: var(--text-muted); }

.btn-save-board { margin-top: 1rem; }
.btn-save-board.saved { border-color: var(--teal); color: var(--teal); }

.boards-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.travel-log-stats {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.travel-log-stats .section-title { margin: 0 0 1rem; font-size: 1.15rem; }
.travel-log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.travel-log-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.travel-log-stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--ocean);
}
.travel-log-stat span { font-size: 0.85rem; color: var(--text-muted); }
.travel-log-hint { margin: 1rem 0 0; font-size: 0.88rem; color: var(--text-muted); }

.travel-passport {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.travel-passport .section-title { margin: 0 0 1rem; font-size: 1.15rem; }
.passport-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.passport-columns h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.passport-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.passport-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
.passport-meta { font-size: 0.82rem; color: var(--text-muted); }
.passport-empty { font-size: 0.9rem; color: var(--text-muted); }

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.board-header h2 { margin: 0; font-size: 1.15rem; font-family: var(--font-display); }
.board-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.board-notes-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.board-notes {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
  min-height: 4.5rem;
}
.dest-filter-bar { margin-bottom: 1.5rem; }
.destination-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.destination-card-link {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.destination-card-link:hover { color: inherit; }
.dest-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.dest-status-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: inherit;
}
.dest-status-btn:hover { border-color: var(--accent); }
.dest-status-btn.is-active[data-status="visited"] {
  background: color-mix(in srgb, var(--c-packing-gear) 14%, transparent);
  border-color: var(--c-packing-gear);
  color: var(--c-packing-gear);
}
.dest-status-btn.is-active[data-status="planned"] {
  background: color-mix(in srgb, var(--c-booking-money) 12%, transparent);
  border-color: var(--amber);
  color: var(--c-booking-money);
}
.boards-toolbar input { flex: 1; min-width: 200px; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.boards-empty { text-align: center; padding: 2rem; background: var(--bg-alt); border-radius: var(--radius); }
.boards-list { display: flex; flex-direction: column; gap: 1.5rem; }
.board-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.btn-delete-board, .btn-remove-item {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
.btn-delete-board:hover, .btn-remove-item:hover { color: var(--accent); }
.board-items { list-style: none; padding: 0; margin: 1rem 0 0; }
.board-items li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.board-empty { color: var(--text-muted); margin: 0.75rem 0 0; }

@media (max-width: 1120px) {
  .two-col, .article-layout { grid-template-columns: 1fr; }
  /* max-width:280px is for the desktop rail; without resetting it here the
     two-column stacked layout is squeezed into 280px against the left edge. */
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: none;
  }
  .nav-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 120;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
    max-height: min(70vh, 32rem);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a,
  .site-nav .nav-group-head {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .site-nav > a,
  .search-open {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    white-space: normal;
  }
  .nav-group { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0;
  }
  .nav-group-label {
    flex: 1;
    padding: 0.5rem 0;
    border-bottom: none;
  }
  .nav-subtoggle { display: inline-flex; flex-shrink: 0; }
  .nav-subtoggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown { display: none; }
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 0.5rem 0.75rem;
    margin: 0;
  }
  .nav-group.is-open .nav-dropdown { display: block; }
  .nav-dropdown a {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    white-space: normal;
  }
}

@media (min-width: 1121px) {
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

.destination-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem; margin: 0.25rem 0;
}
.destination-hero p { max-width: 50ch; opacity: 0.95; }
.destination-hero--image {
  position: relative; min-height: 320px; overflow: hidden;
  color: var(--on-ink); background: var(--ink-2);
}
.destination-hero--image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.destination-hero-overlay {
  position: relative; z-index: 1; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-900) 15%, transparent) 0%, color-mix(in srgb, var(--navy-900) 82%, transparent) 72%);
}

.guides-load-more-wrap {
  display: flex; justify-content: center; margin: 2rem 0 1rem;
}

.video-list { display: flex; flex-direction: column; gap: 2.5rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.video-thumb-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.video-thumb-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--navy-900) 8%, transparent);
}
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  overflow: hidden;
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, #000 72%, transparent);
  color: var(--on-ink);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.1rem;
}
.video-thumb-meta {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.video-thumb-meta h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}
.video-channel,
.video-guide-link {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-width: 100%;
}
.video-card .video-wrapper {
  border-radius: 0;
}
.video-meta { padding: 1.25rem; }
.video-meta h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.5rem; }

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}
.page-header h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.checklist-header {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem;
}
.checklist-header h2 { margin: 0; }
.btn-print-checklist {
  padding: 0.45rem 0.9rem; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-family: inherit;
}
.btn-print-checklist:hover { border-color: var(--accent); color: var(--accent); }

@media print {
  .site-header, .site-footer, .article-sidebar, .toc, .related-content,
  .video-embed, .btn-print-checklist, .trust-bar,
  .affiliate-panel, .affiliate-inline, .affiliate-end-panel, .tpwidg-widget-wrap { display: none !important; }
  .article-layout { grid-template-columns: 1fr; }
  .checklist-block { break-inside: avoid; }
  body { font-size: 12pt; background: var(--on-ink); }
  a { color: #000; text-decoration: none; }
}

.flights-editorial { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.flights-editorial ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.flights-page .flights-widget-hero { margin: 1.5rem 0 2.5rem; }
.flights-map-widget { margin: 0 0 2.5rem; }
.flights-widgets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }

.tpwidg-section { padding: 1.25rem 0; }
.tpwidg-widget-wrap {
  margin: 1.5rem 0;
  min-height: 100px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  contain: layout inline-size;
}
.tpwidg-widget-wrap iframe,
.tpwidg-widget-wrap > div,
.tpwidg-widget-wrap > span {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
.tpwidg-section .tpwidg-widget-wrap { margin: 0; }
.article-main > .tpwidg-widget-wrap {
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-sidebar .tpwidg-widget-wrap {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.65rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.tpwidg-widget-wrap--search { border: 1px solid var(--border); padding: 0.5rem; background: var(--surface); }
.tpwidg-widget-wrap--booking { border-radius: 5px; overflow: hidden; }
.tpwidg-widget-wrap--avia { border-radius: 5px; overflow: hidden; min-height: 120px; }
.tpwidg-widget-wrap--avia-map {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
}
.tpwidg-section--map { margin: 2rem 0; }

.affiliate-box, .affiliate-panel, .affiliate-end-panel, .affiliate-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0;
}
.affiliate-panel-intro { margin: 0 0 0.75rem; font-size: 0.95rem; }
.affiliate-disclosure { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 1rem; }
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.affiliate-grid--panel { margin-top: 0.25rem; }
.affiliate-module h3, .affiliate-card h2, .affiliate-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.yesim-esim-panel { border-left: 4px solid var(--ocean); }
.destination-booking-panel { margin-top: 2rem; }

.tool-page .narrow { max-width: 560px; }
.tool-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.tool-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.tool-form input, .tool-form select { padding: 0.6rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.tool-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.tool-note { font-size: 0.9rem; color: var(--text-muted); }

.route-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .route-builder { grid-template-columns: 1fr; } }
.blueprint-list { display: flex; flex-direction: column; gap: 0.5rem; }
.blueprint-item { display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

.personalize-bar-wrap { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.personalize-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 0.92rem; }
.profile-chip {
  padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); cursor: pointer; font-family: inherit; font-size: 0.85rem;
}
.profile-chip:hover { border-color: var(--accent); }

.deals-editorial { margin-top: 2rem; }
.deals-grid { margin-top: 1rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; }
.breadcrumbs a { color: var(--text-muted); }

.error-page { padding: 4rem 0; text-align: center; }
.error-page h1 { font-family: var(--font-display); }

.newsletter-fallback { margin-top: 0.75rem; }
.newsletter-page-form { margin-top: 2rem; max-width: 420px; }
.airports-index .featured { display: block; margin-bottom: 2rem; }

/* ==========================================================================
   Flight search — the site's primary conversion surface.
   Rendered server-side with no third-party script, so it paints with the hero
   instead of popping in half a second late.
   ========================================================================== */

.fs-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 0.9rem;
  margin: 1.75rem 0 1.25rem;
  max-width: 100%;
}
.fs-row {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.9fr 0.9fr 0.6fr auto;
  gap: 0.7rem;
  align-items: end;
}
.fs-field { position: relative; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.fs-field.is-disabled { opacity: 0.45; }
.fs-field label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted);
}
.fs-field input,
.fs-field select {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.62rem 0.7rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fs-field input:focus,
.fs-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-connected-travel) 14%, transparent);
}
.fs-field--submit .fs-submit {
  width: 100%;
  padding: 0.72rem 1.5rem;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.fs-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem;
  margin-top: 0.85rem;
}
.fs-oneway {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; color: var(--text-muted); cursor: pointer;
}
.fs-note { margin: 0; font-size: 0.78rem; color: var(--text-muted); flex: 1 1 16rem; }
.fs-error {
  margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--accent-dark);
}

/* Autocomplete dropdown */
.fs-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-height: 17rem; overflow-y: auto;
}
.fs-suggest-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  width: 100%; padding: 0.55rem 0.75rem;
  font: inherit; font-size: 0.92rem; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.fs-suggest-item:hover,
.fs-suggest-item.is-active { background: var(--bg-alt); }
.fs-suggest-name { font-weight: 600; color: var(--text); }
.fs-suggest-meta { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* Contextual "Flights to X" module */
.flight-cta {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, color-mix(in srgb, var(--c-connected-travel) 7%, transparent), transparent),
    var(--bg-alt);
}
.flight-cta-head h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.flight-cta-head p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.flight-cta .fs-form { margin-top: 1.1rem; margin-bottom: 0; }
.flight-cta .fs-row { grid-template-columns: 1.3fr 1.3fr 0.9fr 0.9fr 0.6fr auto; }
.flight-cta > .fs-note { margin-top: 0.7rem; }

.flight-cta-go {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  margin-top: 1.1rem; padding: 0.85rem 1.6rem;
  border-radius: 10px; cursor: pointer; text-align: left;
  font-size: 1.15rem;
}
.flight-cta-go-sub { font-size: 0.82rem; font-weight: 500; opacity: 0.9; }
.flight-cta-note { margin-top: 0.6rem; }
.link-button {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 0.85rem; color: var(--teal);
  text-decoration: underline; cursor: pointer;
}

/* Ghost buttons — secondary paths in a hero whose primary action is the form */
.btn.ghost {
  border-color: var(--border);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--on-ink) 60%, transparent);
  font-size: 0.92rem;
  padding: 0.55rem 1.05rem;
}
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 900px) {
  .fs-row,
  .flight-cta .fs-row { grid-template-columns: 1fr 1fr; }
  .fs-field--submit { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .fs-form { padding: 0.9rem; }
  .fs-row,
  .flight-cta .fs-row { grid-template-columns: 1fr; }
  .flight-cta { padding: 1.1rem; }
}

/* Mobile sticky flight bar — revealed past the fold, hidden while the full
   module is on screen. */
.flight-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--on-ink) 97%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px color-mix(in srgb, var(--navy-900) 12%, transparent);
}
.flight-sticky[hidden] { display: none; }
.flight-sticky-label {
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.flight-sticky-btn {
  flex-shrink: 0; padding: 0.6rem 1.15rem; border-radius: 9px;
  font-size: 0.95rem; cursor: pointer;
}
@media (max-width: 860px) {
  .flight-sticky:not([hidden]) { display: flex; }
  /* Keep the footer clear of the bar. */
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 4.5rem; }
}

/* Section lede — a line of context under a section title. */
.section-lede {
  margin: -0.9rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 44rem;
}

/* The map widget builds its own nested DOM, so the generic
   `.tpwidg-widget-wrap > div` width reset does not reach it and it rendered
   edge-to-edge against every other section. Clip it at the wrapper instead. */
.tpwidg-widget-wrap--avia-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tpwidg-widget-wrap--avia-map * { max-width: 100% !important; }

/* Give the form's fine print its own line instead of squeezing it beside the
   one-way checkbox. */
.fs-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
}
.fs-note { grid-column: 1 / -1; flex: none; }
.fs-error { grid-column: 1 / -1; }

@media (prefers-color-scheme: dark) {
  /* On a navy hero the raised surface alone is too close in value — the search
     card needs an explicit edge to stay the focal object it is in light mode. */
  .home-hero .fs-form {
    background: var(--surface-raised);
    border-color: var(--border-strong);
    box-shadow: 0 18px 50px color-mix(in srgb, #000 55%, transparent);
  }
  /* Photography carries a lot of light; knock it back so it does not glare
     against the dark page. */
  .card-thumb, .article-hero img, .destination-hero--image img { filter: brightness(0.88); }
}
