/* ============================================================
   Distel Travel — /plans/  ·  DARK EDITORIAL v3
   Black gradients, gold accents, presentation-style itinerary.
   All theming lives here — markup and JS never change for a restyle.
   ============================================================ */

:root {
  color-scheme: dark;

  /* surfaces — layered blacks with warmth */
  --bg: #0a0a09;
  --bg-deep: #060606;
  --surface: #141513;
  --surface-2: #1b1d1a;
  --surface-3: #232622;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* ink on dark */
  --ink: #f2efe6;
  --ink-soft: #a8ab9f;
  --ink-faint: #6d7066;

  /* accents */
  --gold: #c9a96a;
  --gold-bright: #e3c78f;
  --gold-dim: rgba(201, 169, 106, 0.16);
  --sage: #8fb89b;
  --sage-dim: rgba(143, 184, 155, 0.14);
  --paige: #d98aa6;
  --paige-dim: rgba(217, 138, 166, 0.14);
  --sea: #8fb6c9;
  --sea-dim: rgba(143, 182, 201, 0.14);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", monospace;
  --text-hero: clamp(2.8rem, 8vw, 6rem);
  --text-display: clamp(2.2rem, 6vw, 4rem);
  --text-title: clamp(1.6rem, 3.6vw, 2.4rem);
  --text-heading: clamp(1.3rem, 2.6vw, 1.8rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-desc: 0.9rem;
  --text-label: 0.72rem;

  /* rhythm */
  --max-width: 87.5rem;              /* 1400px — full-width canvas */
  --max-copy: 46rem;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -24px rgba(0,0,0,0.9);
  --shadow-pop: 0 2px 0 rgba(255,255,255,0.05) inset, 0 32px 80px -20px rgba(0,0,0,0.95);
  --bar-h: 4.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 80% -10%, rgba(201, 169, 106, 0.07), transparent 60%),
    radial-gradient(100% 50% at 0% 10%, rgba(143, 184, 155, 0.05), transparent 55%),
    linear-gradient(180deg, #0d0d0c 0%, var(--bg) 30%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 1.25rem);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: #0a0a09; }

.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold); flex: none; opacity: .8; }

/* ============ PRESENTATION HERO ============ */
.trip-hero {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 62vh, 640px);
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) brightness(0.86);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.55) 0%, rgba(6,6,6,0.18) 34%, rgba(6,6,6,0.62) 68%, var(--bg) 98%),
    linear-gradient(90deg, rgba(6,6,6,0.5) 0%, transparent 55%);
}
.hero-content { padding: 6rem 0 2.4rem; width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.trip-hero h1 {
  font-family: var(--font-display); font-size: var(--text-hero); font-weight: 550;
  line-height: 0.98; letter-spacing: -0.015em; margin-top: 0.9rem;
  text-wrap: balance;
}
.trip-hero .sub {
  color: var(--ink-soft); margin-top: 1rem; font-size: var(--text-body-lg);
  max-width: var(--max-copy); text-wrap: pretty;
}
.trip-hero .daterange {
  font-family: var(--font-mono); font-size: var(--text-desc);
  color: var(--gold-bright); margin-top: 0.9rem; letter-spacing: 0.04em;
}

/* weather strip */
.weather-strip { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.weather-chip {
  font-family: var(--font-mono); font-size: var(--text-label);
  background: rgba(20, 21, 19, 0.6); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 0.34rem 0.85rem; color: var(--ink-soft); white-space: nowrap;
}
.weather-chip b { color: var(--ink); font-weight: 600; }

/* nav row + toggle */
.trip-nav {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding-top: 1.3rem; font-size: var(--text-desc); color: var(--ink-soft);
}
.trip-nav a { text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.trip-nav a:hover { color: var(--gold-bright); border-color: var(--gold); }

.win-toggle {
  display: inline-flex; background: rgba(20,21,19,0.7); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 3px;
}
.win-toggle label { position: relative; }
.win-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.win-toggle span {
  display: inline-block; padding: 0.5rem 1.15rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); user-select: none; -webkit-user-select: none; transition: color .15s;
}
.win-toggle input:checked + span { background: var(--gold); color: #0d0c08; font-weight: 600; }
.win-toggle input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ============ LAYOUT ============ */
.trip-layout { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; }
.trip-main { min-width: 0; }
.map-pane {
  order: -1; position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--bg) 85%, transparent);
  padding-bottom: 0.4rem;
}
#map {
  height: 260px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: var(--surface);
}
.map-note { font-size: var(--text-label); color: var(--ink-faint); padding-top: 0.5rem; }
@media (max-width: 1059px) { .map-note { display: none; } #map { height: 200px; } }
@media (min-width: 1060px) {
  .trip-layout { flex-direction: row; align-items: flex-start; gap: 2.25rem; }
  .trip-main { flex: 1; }
  .map-pane { order: 0; width: clamp(360px, 32vw, 460px); flex: none; position: sticky; top: 1.25rem; }
  #map { height: calc(100vh - 10.5rem); min-height: 460px; }
}
.map-marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #14120c;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #0a0a09; box-shadow: 0 3px 12px rgba(0,0,0,0.6);
  cursor: pointer; z-index: 2; position: relative;
}
/* non-selected hotel options: light gray dots, hover reveals the name, click selects */
.map-alt { position: relative; cursor: pointer; z-index: 1; }
.map-alt-dot {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  background: rgba(200, 202, 195, 0.85); border: 1.5px solid #0a0a09;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform .15s, background .15s;
}
.map-alt:hover .map-alt-dot { transform: scale(1.5); background: var(--gold-bright); }
.map-alt-label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(20, 21, 19, 0.95); color: var(--ink);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.55rem; border-radius: 7px; border: 1px solid var(--line-strong);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.map-alt:hover .map-alt-label { opacity: 1; }
.mapboxgl-popup-content {
  font-family: var(--font-body); border-radius: 12px; padding: 0.65rem 0.9rem;
  background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-pop);
}
.mapboxgl-popup-tip { border-top-color: var(--surface-2) !important; border-bottom-color: var(--surface-2) !important; }
.mapboxgl-popup-close-button { color: var(--ink-soft); }

/* ============ TIMELINE — the presentation spine ============ */
.timeline { list-style: none; margin: 0.5rem 0 0; position: relative; counter-reset: chapter; }
.timeline::before {
  content: ""; position: absolute; left: 1.1rem; top: 0.5rem; bottom: 0.5rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}
.tl-item { position: relative; padding: 0 0 2rem 3.2rem; }
.tl-dot {
  position: absolute; left: 0.45rem; top: 0.3rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 0.62rem; z-index: 1;
}
.tl-item.is-seg .tl-dot { border-color: var(--gold); }
.tl-day {
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem;
}

/* segment cards */
.seg-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-card);
}
.seg-icon {
  font-size: 1.05rem; flex: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid rgba(201,169,106,0.3);
  display: grid; place-items: center;
}
.seg-main { flex: 1; min-width: 0; }
.seg-title { font-weight: 600; font-size: var(--text-body); letter-spacing: 0.01em; }
.seg-meta { color: var(--ink-soft); font-size: var(--text-desc); margin-top: 0.15rem; }
.seg-cost { font-family: var(--font-mono); font-size: var(--text-desc); color: var(--gold-bright); white-space: nowrap; }
@media (max-width: 560px) {
  .seg-card { flex-wrap: wrap; }
  .seg-main { flex: 1 1 100%; order: 1; }
  .seg-icon { order: 0; }
  .seg-cost { order: 2; margin-left: auto; }
}
/* selectable segment options (flights / transfer modes) */
.seg-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.seg-opt {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.03em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,0.03); color: var(--ink-soft);
  padding: 0.34rem 0.75rem; min-height: 32px;
  transition: border-color .15s, background .15s, color .15s;
}
.seg-opt:hover { border-color: var(--gold); color: var(--gold-bright); }
.seg-opt[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #14120c; font-weight: 600; }
.seg-opt .so-price { opacity: 0.75; margin-left: 0.25rem; }
.seg-opt[aria-pressed="true"] .so-price { opacity: 0.9; }

/* ============ BASE BLOCKS — chapters ============ */
.base-block {
  counter-increment: chapter;
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 55%, #101110 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
}
.base-block::after {
  content: counter(chapter, decimal-leading-zero);
  position: absolute; top: 0.4rem; right: 1.1rem;
  font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 550;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.10);
  pointer-events: none; line-height: 1;
}
.base-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.4rem 0.2rem; flex-wrap: wrap; }
.base-head h2 {
  font-family: var(--font-display); font-size: var(--text-heading); font-weight: 550; letter-spacing: -0.01em;
}
.nights-badge {
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.08em;
  background: var(--sage-dim); color: var(--sage); border: 1px solid rgba(143,184,155,0.25);
  border-radius: 999px; padding: 0.26rem 0.8rem;
  white-space: normal; max-width: calc(100% - 4.5rem); line-height: 1.5;
}
.base-active { padding: 0.25rem 1.4rem 1.05rem; color: var(--ink-soft); font-size: var(--text-desc); max-width: var(--max-copy); }
.base-active strong { color: var(--ink); }

/* ============ HOTEL CAROUSEL ============ */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.3rem 1.4rem 1.4rem; scroll-padding-inline: 1.4rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.hotel-card {
  flex: 0 0 min(84%, 340px); scroll-snap-align: start;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) { .hotel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); } }
.hotel-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 48px -18px rgba(201,169,106,0.28); }
.hotel-photo { aspect-ratio: 4 / 3; background: linear-gradient(140deg, #1d1f1c, #121311); position: relative; }
.hotel-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 44%;
  background: linear-gradient(180deg, transparent, rgba(6,6,6,0.55));
  pointer-events: none; z-index: 1;
}
.hotel-photo .ph-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); opacity: 0.4;
}
.hotel-photos {
  position: absolute; inset: 0; display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hotel-photos::-webkit-scrollbar { display: none; }
.hotel-photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.ph-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.32rem;
  pointer-events: none; z-index: 2;
}
.ph-dots i { width: 0.36rem; height: 0.36rem; border-radius: 50%; background: rgba(255,255,255,0.4); }
.ph-dots i.on { background: var(--gold-bright); }

.hotel-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.hotel-name-row { display: flex; align-items: flex-start; gap: 0.5rem; }
.hotel-name-row .hotel-name { flex: 1; min-width: 0; }
.hotel-name { font-weight: 650; font-size: 1.05rem; line-height: 1.25; letter-spacing: 0.005em; }
.hotel-stars { color: var(--gold); font-size: 0.66rem; letter-spacing: 0.3em; }
.hotel-links { display: flex; gap: 0.4rem; margin-left: auto; flex: none; }
.hotel-links a {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink-soft);
  transition: color .15s, border-color .15s, background .15s;
}
.hotel-links a:hover { color: var(--gold-bright); border-color: var(--gold); background: var(--gold-dim); }
.hotel-links svg { width: 1rem; height: 1rem; display: block; }

.badges { display: flex; flex-wrap: wrap; gap: 0.32rem; }
.badge {
  font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.06em; border-radius: 999px;
  padding: 0.16rem 0.55rem; background: var(--sage-dim); color: var(--sage);
  border: 1px solid transparent; white-space: nowrap;
}
.badge.b-paige { background: var(--paige-dim); color: var(--paige); }
.badge.b-austin { background: var(--gold-dim); color: var(--gold-bright); }
.badge.b-fhr { background: var(--sea-dim); color: var(--sea); }
.hotel-blurb { color: var(--ink-soft); font-size: var(--text-desc); flex: 1; text-wrap: pretty; }
.hotel-rate { font-family: var(--font-mono); font-size: 1.02rem; color: var(--gold-bright); }
.hotel-rate small { color: var(--ink-faint); font-family: var(--font-body); }
.hotel-rate .est { color: var(--paige); font-size: var(--text-label); }
.select-btn {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--gold);
  background: transparent; color: var(--gold-bright); font-weight: 600; font-size: var(--text-desc);
  letter-spacing: 0.02em; transition: background .15s, color .15s;
}
.select-btn:hover { background: var(--gold-dim); }
.select-btn[aria-pressed="true"] { background: var(--gold); color: #14120c; }
.carousel-btn {
  position: absolute; top: 34%; transform: translateY(-50%); z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(20,21,19,0.85); backdrop-filter: blur(8px); color: var(--ink);
  box-shadow: var(--shadow-card); display: none; place-items: center; font-size: 1.1rem;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.carousel-btn.prev { left: 0.6rem; }
.carousel-btn.next { right: 0.6rem; }
@media (hover: hover) and (pointer: fine) { .carousel-btn { display: grid; } }

/* transfer chip */
.transfer-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-desc); color: var(--ink-soft);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0.32rem 0.9rem;
}

/* highlight reel */
.hl-label {
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); padding: 0.1rem 1.4rem 0.65rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hl-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hl-strip {
  display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 1.4rem 1.5rem; scroll-padding-inline: 1.4rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hl-strip::-webkit-scrollbar { display: none; }
.hl-card { flex: 0 0 216px; scroll-snap-align: start; }
.hl-card figure { margin: 0; }
.hl-card .hl-img {
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(140deg, #1d1f1c, #121311);
  border: 1px solid var(--line);
}
.hl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
@media (hover: hover) { .hl-card:hover img { transform: scale(1.045); } }
.hl-card figcaption { font-size: 0.78rem; color: var(--ink-soft); padding-top: 0.45rem; line-height: 1.4; }

/* ============ STICKY SUMMARY BAR ============ */
.summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid var(--line);
  padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom));
}
.summary-inner { display: flex; align-items: center; gap: 1.2rem; width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.summary-totals { flex: 1; min-width: 0; }
.summary-cash { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--gold-bright); line-height: 1.05; }
.summary-pts { font-family: var(--font-mono); font-size: var(--text-label); color: var(--ink-soft); margin-top: 0.15rem; }
.summary-bar details { position: relative; }
.summary-bar summary {
  list-style: none; cursor: pointer; font-size: var(--text-desc); color: var(--gold-bright);
  border: 1px solid var(--line-strong); padding: 0.55rem 1.05rem; border-radius: 999px; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.summary-bar summary:hover { border-color: var(--gold); background: var(--gold-dim); }
.summary-bar summary::-webkit-details-marker { display: none; }
.breakdown {
  position: absolute; bottom: calc(100% + 0.85rem); right: 0; width: min(88vw, 23rem);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 1rem 1.1rem; font-size: var(--text-desc);
}
.breakdown table { width: 100%; border-collapse: collapse; }
.breakdown td { padding: 0.24rem 0; vertical-align: top; color: var(--ink-soft); }
.breakdown td:last-child { text-align: right; font-family: var(--font-mono); white-space: nowrap; color: var(--ink); }
.breakdown tr.total td { border-top: 1px solid var(--line-strong); padding-top: 0.55rem; font-weight: 700; color: var(--gold-bright); }
.breakdown .bd-note { color: var(--ink-faint); font-size: 0.72rem; margin-top: 0.55rem; }

/* ============ LANDING ============ */
.landing-hero { position: relative; padding: 7rem 0 3rem; overflow: hidden; }
.landing-hero h1 {
  font-family: var(--font-display); font-size: var(--text-hero); font-weight: 550;
  line-height: 0.98; letter-spacing: -0.015em; margin-top: 1rem; text-wrap: balance;
}
.landing-hero p { color: var(--ink-soft); margin-top: 1.1rem; max-width: var(--max-copy); font-size: var(--text-body-lg); text-wrap: pretty; }
.trip-cards { display: grid; gap: 1.5rem; margin: 2rem 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .trip-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .trip-cards { grid-template-columns: repeat(3, 1fr); } }
.trip-card {
  position: relative; display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }
.trip-cover { aspect-ratio: 16 / 10; background: linear-gradient(140deg, #1d1f1c, #121311); }
.trip-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) brightness(0.9); transition: transform .35s ease; }
.trip-card:hover .trip-cover img { transform: scale(1.03); }
.trip-card-body {
  position: absolute; inset: auto 0 0 0; padding: 3.2rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(6,6,6,0.72) 38%, rgba(6,6,6,0.92));
}
.trip-card-body h2 { font-family: var(--font-display); font-size: var(--text-title); font-weight: 550; line-height: 1.05; }
.trip-card-body .route { color: var(--ink-soft); font-size: var(--text-desc); margin-top: 0.4rem; }
.trip-card-body .totals { margin-top: 0.7rem; font-family: var(--font-mono); color: var(--gold-bright); font-size: var(--text-body); }
.trip-card-body .totals small { color: var(--ink-soft); }

.h2h {
  margin: 1.5rem 0 2.5rem;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow-x: auto;
}
.h2h table { width: 100%; border-collapse: collapse; min-width: 540px; }
.h2h th, .h2h td { text-align: left; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); font-size: var(--text-desc); }
.h2h th { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.h2h td { color: var(--ink-soft); }
.h2h td:not(:first-child), .h2h th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.h2h tr:last-child td { border-bottom: none; }

.footnote { color: var(--ink-faint); font-size: var(--text-label); line-height: 1.7; padding: 1.25rem 0 2.5rem; max-width: var(--max-copy); }

/* ============ DAY-BY-DAY PLANNER (from the Figma day tabs + hourly rail) ============ */
.daybyday { margin-top: 2.5rem; }
.db-heading {
  font-family: var(--font-display); font-size: var(--text-title); font-weight: 550;
  letter-spacing: -0.01em; margin-bottom: 0.35rem;
}
.db-sub { color: var(--ink-soft); font-size: var(--text-desc); margin-bottom: 1.1rem; max-width: var(--max-copy); }
.day-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.1rem 0.9rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 96px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.55rem 0.8rem; display: flex; flex-direction: column; gap: 0.1rem;
  transition: border-color .15s, background .15s, transform .15s;
}
.day-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.day-tab .dt-day { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.day-tab .dt-date { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-soft); letter-spacing: 0.05em; }
.day-tab .dt-title { font-size: 0.66rem; color: var(--ink-faint); white-space: nowrap; }
.day-tab.on { background: var(--gold); border-color: var(--gold); }
.day-tab.on .dt-day { color: #14120c; }
.day-tab.on .dt-date, .day-tab.on .dt-title { color: rgba(20, 18, 12, 0.75); }

.day-sched { list-style: none; margin: 0; }
.sc-item { display: flex; gap: 0.9rem; padding: 0.55rem 0; }
.sc-rail {
  flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding-top: 0.35rem; text-align: center;
}
.sc-when { font-family: var(--font-mono); font-size: 0.66rem; color: var(--gold-bright); line-height: 1.35; }
.sc-dur { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-faint); line-height: 1.3; }
.sc-line { width: 1px; flex: 0 0 14px; background-image: linear-gradient(180deg, var(--line-strong) 55%, transparent 55%); background-size: 1px 5px; }
.sc-line.grow { flex: 1 1 auto; }
.sc-card {
  flex: 1; min-width: 0; display: flex; gap: 0.9rem; align-items: stretch;
  background: linear-gradient(175deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem; box-shadow: var(--shadow-card);
}
.sc-photo { flex: 0 0 132px; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, #1d1f1c, #121311); }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 108px; }
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.15rem 0.1rem; }
.sc-title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.sc-desc { color: var(--ink-soft); font-size: var(--text-desc); text-wrap: pretty; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; align-items: center; margin-top: auto; padding-top: 0.35rem; }
.sc-place { font-size: 0.74rem; color: var(--ink); font-weight: 500; }
.sc-price { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold-bright); }
.sc-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: capitalize;
  border-radius: 999px; padding: 0.14rem 0.55rem;
}
.t-flight, .t-train, .t-transport { background: var(--gold-dim); color: var(--gold-bright); }
.t-boat { background: var(--sea-dim); color: var(--sea); }
.t-hotel { background: var(--sage-dim); color: var(--sage); }
.t-food, .t-shopping { background: var(--paige-dim); color: var(--paige); }
.t-activity { background: var(--sea-dim); color: var(--sea); }
.t-wellness { background: var(--sage-dim); color: var(--sage); }
.sc-more {
  align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: var(--gold-bright);
  text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.3rem 0.75rem; margin-top: 0.4rem; transition: border-color .15s, background .15s;
}
.sc-more:hover { border-color: var(--gold); background: var(--gold-dim); }
@media (max-width: 560px) {
  .sc-rail { flex-basis: 58px; }
  .sc-card { flex-direction: column; }
  .sc-photo { flex-basis: auto; }
  .sc-photo img { min-height: 150px; aspect-ratio: 16/9; }
}

/* focus visibility on dark */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hl-card img, .trip-cover img { transform: none !important; }
}
