/* ============================================
   Santa Fe Itinerary — Light, editorial theme
   No large dark blocks. Cream paper, navy ink.
   ============================================ */

:root {
  --navy: #0f1d33;        /* used only as INK / hairline accent */
  --navy-deep: #0a1424;   /* used only for hero text accent */
  --cream: #f5efe3;       /* primary background */
  --paper: #fbf7ee;       /* card surface */
  --paper-2: #f1ead9;     /* alt subtle surface */
  --warm-50: #fffdf7;     /* lightest tint */
  --terra: #b65a35;
  --terra-soft: #c97a52;
  --gold: #c79a55;
  --gold-soft: #d9b173;
  --gold-tint: #f3e6c8;   /* gold pill background, lightened */
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6357;
  --rule: #d9cfba;
  --rule-soft: #e6dec9;

  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html {
  /* No smooth-scroll. Animated jumps were felt as a delayed/violent move
     when combined with tab switches. Native finger-driven scroll only. */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NOTE: removed -webkit-overflow-scrolling:touch (deprecated; can break
     iOS momentum on modern iOS) and overscroll-behavior-y:none (was
     trapping momentum at the hero boundary so a single swipe from the
     hero couldn't carry the user down to the bottom of the page). */
  text-rendering: optimizeSpeed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* ===== HERO (only intentionally dark area — full-bleed photo) ===== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('img/hero.jpg') center 30% / cover no-repeat;
  z-index: 0;
  /* NOTE: removed transform:translateZ(0) + will-change:transform +
     backface-visibility:hidden. These promote the hero to a compositor
     layer that, on iOS Chrome, terminates touch momentum at the hero's
     boundary — the user could not scroll from the hero down to the
     bottom of the page in a single swipe. Same root cause as the tabnav
     vibration fix in v=20260520h. The hero photo stays sharp without
     these GPU hints. */
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  /* Stronger top tint (for SF brand on bright sky) and a deeper
     bottom band so the kicker / title / dates remain legible against
     bright adobe walls. */
  background:
    linear-gradient(180deg,
      rgba(15,29,51,0.42) 0%,
      rgba(15,29,51,0.08) 22%,
      rgba(15,29,51,0.0) 42%,
      rgba(15,29,51,0.35) 62%,
      rgba(15,29,51,0.78) 100%);
}
.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
}
.brand {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream);
  /* keep legible even when overlaid on bright sky */
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 14px rgba(0,0,0,0.55);
}
.hero-content {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 24px 28px 56px;
  max-width: 720px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); margin: 0 0 18px;
  /* legibility shadow for bright sky / adobe portions of the hero */
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 18px rgba(0,0,0,0.6);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(64px, 16vw, 120px);
  line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.subtitle {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 5vw, 28px); margin: 0 0 18px;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 18px rgba(0,0,0,0.45);
}
.dates {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  margin: 0 0 28px; color: var(--cream);
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 14px rgba(0,0,0,0.5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  background: var(--cream); color: var(--navy);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--cream);
  transition: all 0.2s; cursor: pointer;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--cream); }
.btn-gold { background: var(--gold); color: #2a1d08; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--cream); }

.hero-scroll {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  color: var(--cream); z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 12px rgba(0,0,0,0.5);
}

/* ===== TAB NAV (sticky, light) =====
   NOTE: backdrop-filter is GPU-expensive on sticky elements and was the
   primary cause of scroll jank on iOS Safari. Replaced with a solid
   near-opaque cream so the bar remains legible without per-frame blur. */
.tabnav {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper); /* opaque cream — no blur cost */
  border-bottom: 1px solid var(--rule);
  /* When launched from the Home Screen (standalone PWA), iOS draws the
     system status bar (clock/wifi/battery) over the top of the viewport
     because the status-bar-style is black-translucent. Reserve room for it
     so the day chips don't collide with the status bar. The variable falls
     back to 0 in browser tabs where env(safe-area-inset-top) is 0. */
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  /* NOTE: removed transform:translateZ(0) + will-change:transform.
     On iOS Chrome they create a compositor layer that disagrees with the
     viewport during address-bar collapse/expand and rubber-band overscroll —
     visible as a page-bottom vibration. Sticky alone is fine. */
}
.tabnav-row {
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 14px;
  /* NO scroll-snap: snap on the nav row competes with our programmatic
     scrollLeft adjustments in setDayActive, ping-ponging on iOS as the
     scroll-spy fires — contributing to the bottom-of-page vibration. */
}
.tabnav-row::-webkit-scrollbar { display: none; }
.tabnav-row + .tabnav-row { padding-top: 0; padding-bottom: 6px; }

.tab {
  flex-shrink: 0;
  appearance: none; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  padding: 8px 14px;
  min-height: 40px;
  background: transparent;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;            /* anchor day pills */
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab:hover { background: var(--paper-2); }
.tab.is-active,
.tab[aria-selected="true"],
.tab[aria-current="page"] {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  font-weight: 700;
}
.tab .tab-day-label { font-size: 11px; }
.tab .tab-day { font-size: 11px; }   /* legacy compat */
.tab .tab-date { font-size: 9px; color: inherit; opacity: 0.78; letter-spacing: 0.1em; }
.tab.is-active .tab-date,
.tab[aria-selected="true"] .tab-date,
.tab[aria-current="page"] .tab-date { opacity: 0.9; }

/* ===== TAB PANELS (light surfaces only) ===== */
.tab-main {
  background: var(--cream);
  padding: 28px 0 56px;
}
.tab-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 22px 0;
}
.tab-panel[hidden] { display: none; }
/* IMPORTANT: do NOT use content-visibility: auto here.
   It made the page report a small scroll height up front, then grow as the
   user scrolled — producing a "hit a wall, then snap forward" feel. */

/* ===== DAY FEED (continuous stacked scroll for all 7 days) =====
   The day feed is the default landing view. All 7 days are rendered and
   stacked vertically — the user scrolls naturally from Wed through Tue
   without any tabs to tap. Day pills above are anchor scrolls + scroll-spy.
   --nav-h is set by JS from the actual rendered nav height; fallback below. */
:root { --nav-h: 96px; }
#day-feed[hidden] { display: none; }
.day-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 22px 16px;
  /* CRITICAL: when scrollIntoView jumps to a day, leave room for sticky nav */
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.day-section + .day-section {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
  padding-top: 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 10px;
}
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--navy);
}
.lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 28px;
}

/* ===== CONDENSED ===== */
.cond-group { margin-bottom: 24px; }
.cond-head {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  margin: 18px 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-soft);
  display: flex; align-items: center; gap: 8px;
}
.cond-flag { filter: saturate(1.1); }
.cond-row {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}
.cond-row:last-child { border-bottom: none; }
.cond-time {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
  padding-top: 2px;
}
.cond-rest {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  color: var(--navy);
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 1px;
  cursor: pointer;
  font-weight: 500;
}
.cond-rest:hover { color: var(--terra); border-color: var(--terra); }

/* ===== Badges ===== */
.badge {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--gold-tint); color: #6e4f10;
  border: 1px solid var(--gold-soft);
  padding: 3px 8px;
  border-radius: 3px;
}
.badge.tbd  { background: #fdf6dd; color: #8a6300; border-color: #ddb74a; }
.badge.paid { background: #e8f3ea; color: #2d6b3b; border-color: #94c79a; }

/* ===== WEATHER CARD ===== */
.weather {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(217, 177, 115, 0.28) 0%, rgba(217, 177, 115, 0) 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(201, 122, 82, 0.22) 0%, rgba(201, 122, 82, 0) 60%),
    linear-gradient(180deg, #fff7e6 0%, #fbe9d4 60%, #f4d8bf 100%);
  border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--terra);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 14px 0 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 8px rgba(182, 90, 53, 0.08);
  overflow: hidden;
}
.weather::before {
  /* soft sun in the corner */
  content: "";
  position: absolute;
  top: -28px; right: -28px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(255, 207, 110, 0.55) 0%, rgba(255, 207, 110, 0) 70%);
  pointer-events: none;
}
.weather-top {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 8px;
  position: relative;
}
.weather-hi {
  font-family: var(--serif); font-weight: 600;
  font-size: 46px; line-height: 1;
  color: var(--terra);
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.6);
}
.weather-unit {
  font-size: 16px; vertical-align: super;
  color: var(--terra-soft); margin-left: 2px;
}
.weather-meta { flex: 1; min-width: 0; }
.weather-cond {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; color: var(--navy-deep);
  line-height: 1.2; margin-bottom: 3px;
  font-weight: 500;
}
.weather-low {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: #6b4a2a;
}
.weather-tip {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--ink-soft);
  margin: 8px 0 0; line-height: 1.5;
  padding-top: 8px;
  border-top: 1px dashed rgba(182, 90, 53, 0.35);
  position: relative;
}

/* ===== DAY ITEM blocks ===== */
.day-item { margin: 0 0 18px; }
.day-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 6px;
}
.day-item p {
  font-size: 15px; color: var(--ink-soft);
  margin: 4px 0; line-height: 1.6;
}

/* ===== RESTAURANT CARD (tap to open modal) ===== */
.rest-card {
  display: block; width: 100%; text-align: left;
  appearance: none; cursor: pointer;
  background: var(--warm-50);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  padding: 14px 16px;
  font-family: inherit; color: inherit;
  margin-top: 6px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.rest-card:hover { background: var(--paper); border-color: var(--gold); }
.rest-card:active { transform: scale(0.997); }
.rest-name {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; color: var(--navy);
  line-height: 1.15;
}
.rest-sub {
  display: block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--muted);
  margin-top: 4px;
}
.rest-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.rest-cta {
  display: block; margin-top: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
}

.dining-list { display: flex; flex-direction: column; gap: 14px; }

/* ===== ESSENTIALS ===== */
.ess-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}
.ess-card {
  background: var(--paper);
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.ess-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.ess-val {
  font-family: var(--serif); font-size: 18px;
  color: var(--navy); line-height: 1.2;
}
.ess-val.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.ess-note {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-soft);
  margin: 18px 0 0; line-height: 1.55;
}

/* ===== IMPORTANT NOTES (Essentials → Notes) ===== */
.notes-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 14px;
  margin: 8px 0 4px;
}
@media (min-width: 600px) {
  .notes-grid { grid-template-columns: 1fr 1fr; }
}
.notes-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
}
.notes-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 10px;
}
.notes-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.notes-list li {
  font-family: var(--serif); font-size: 15px; line-height: 1.45;
  color: var(--ink); padding-left: 14px; position: relative;
}
.notes-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--gold);
}
.notes-list a { color: var(--terra); text-decoration: none; border-bottom: 1px dotted var(--gold-soft); }
.notes-list a:hover { color: var(--gold); }
.notes-list .mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }

/* ===== FLIGHTS (light) ===== */
.grouphead {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-soft);
}
.flight {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.flight-status {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #2d6b3b; border: 1px solid #94c79a;
  background: #e8f3ea;
  padding: 3px 8px; margin-bottom: 12px;
  border-radius: 3px;
}
.flight-route {
  font-family: var(--serif); font-weight: 500;
  font-size: 32px; color: var(--navy);
  margin-bottom: 12px; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 10px;
}
.flight-route .arrow { color: var(--terra); }
.flight-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.flight-grid > div { display: flex; flex-direction: column; gap: 2px; }
.flight-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.flight-val {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: var(--navy);
}
.flight-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin: 4px 0 20px;
}

/* ===== HOTEL (light card) ===== */
.hotel-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  padding: 22px;
}
.hotel-status {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 3px 8px; margin-bottom: 12px;
  border-radius: 3px;
}
.hotel-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 5vw, 34px);
  color: var(--navy); margin: 0 0 6px; line-height: 1.1;
}
.hotel-addr {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin: 0 0 10px; line-height: 1.6;
}
.link-gold {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 1px;
}
.link-gold:hover { color: var(--gold); border-color: var(--gold); }
.hotel-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  border-top: 1px solid var(--rule);
  padding-top: 14px; margin-top: 14px;
}
.hotel-grid > div { display: flex; flex-direction: column; gap: 2px; }

/* ===== ACTIVITIES ===== */
.act-list { display: flex; flex-direction: column; gap: 12px; }
.act-card {
  display: flex; gap: 14px;
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
}
.act-card.paid { border-left-color: #2d6b3b; }
.act-day {
  flex-shrink: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--terra); padding-top: 4px;
  width: 38px;
}
.act-card h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; color: var(--navy);
  margin: 0 0 4px; line-height: 1.2;
}
.act-card p {
  font-size: 14px; color: var(--ink-soft);
  margin: 0; line-height: 1.5;
}

/* ===== MODAL ===== */
.modal-root {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-root[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 29, 51, 0.42);
  backdrop-filter: blur(2px);
}
.modal {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  max-height: 92dvh; overflow-y: auto;
  background: var(--warm-50);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 22px 22px 28px;
  box-shadow: 0 -8px 40px rgba(15,29,51,0.25);
  border-top: 3px solid var(--gold);
  animation: modalUp 0.22s ease-out;
}
@keyframes modalUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal[hidden] { display: none; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--rule);
  color: var(--navy);
  font-size: 22px; line-height: 1;
  cursor: pointer; border-radius: 50%;
}
.modal-close:hover { background: var(--paper); border-color: var(--navy); }
.modal-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 6px;
}
.modal-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 28px; color: var(--navy);
  margin: 0; line-height: 1.1;
}
.modal-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--ink-soft);
  margin: 4px 0 12px;
}
.modal-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 14px;
}
.modal-meta {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 12px 14px; margin: 0 0 14px;
}
.modal-meta p {
  margin: 4px 0; font-size: 14px; color: var(--ink-soft);
  line-height: 1.5;
}
.modal-meta strong {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-right: 4px;
}
.modal-meta a {
  color: var(--terra); border-bottom: 1px solid var(--terra);
  padding-bottom: 1px;
}
.modal-desc {
  font-family: var(--serif); font-size: 16px;
  line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 14px;
}
.modal-section {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  margin: 16px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-soft);
}
.modal-list {
  margin: 6px 0 14px; padding-left: 18px;
}
.modal-list li {
  font-family: var(--serif); font-size: 16px;
  color: var(--navy); margin: 4px 0;
  line-height: 1.4;
}
.modal-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}

/* ===== FOOTER (LIGHT) ===== */
.footer {
  background: var(--paper);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding: 32px 22px 40px;
  text-align: center;
}
.footer p {
  margin: 4px 0;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-sub {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .ess-grid { grid-template-columns: repeat(3, 1fr); }
  .flight-grid { grid-template-columns: repeat(3, 1fr); }
  .hotel-grid { grid-template-columns: repeat(4, 1fr); }
  .tab-panel { padding: 8px 32px 0; }
  .tabnav-row { padding: 4px 24px; }
  .modal {
    max-width: 600px;
    border-radius: 14px;
    margin: 5dvh 0;
    max-height: 90dvh;
    border-top: none;
    border: 1px solid var(--rule);
    border-top: 3px solid var(--gold);
  }
  .modal-root { align-items: center; }
}
@media (min-width: 960px) {
  .display { font-size: 54px; }
}

/* Reduce-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal { animation: none; }
}

/* ============================================
   REVISION ADDITIONS (May 2026)
   - Hero kicker: agency + traveler name
   - Restaurant: About + Menu pills, expandable menu, nested backup
   - Activities: native <details> accordion with WEAR/EXPECT/ARRIVE
   - Dining tab: per-night rows with backup
   - Flights + Hotel combined tab helpers
   ============================================ */

/* Hero kicker (agency text + traveler name with separator) */
.kicker {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 8px 10px;
}
.kicker-agency,
.kicker-traveler {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 18px rgba(0,0,0,0.6);
}
.kicker-traveler {
  color: var(--gold-soft);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 18px rgba(0,0,0,0.65);
}
.kicker-sep {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245,239,227,0.6);
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}
@media (min-width: 640px) {
  .kicker { gap: 8px 14px; }
}

/* ===== Restaurant card v2: About + Menu pills, nested backup ===== */
.rest-card-wrap {
  background: var(--warm-50);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  padding: 14px 16px;
  margin-top: 6px;
}
.rest-card-line {
  display: flex; flex-direction: column; gap: 2px;
}
.rest-card-wrap .rest-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; color: var(--navy);
  line-height: 1.2;
}
.rest-addr {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--muted);
  margin-top: 2px;
}
.rest-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}

/* Pill buttons (About / Menu) */
.btn-pill {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  color: var(--terra);
  border: 1px solid var(--terra);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-pill:hover { background: var(--terra); color: var(--cream); }
.btn-pill-alt {
  background: var(--gold-tint);
  color: #6e4f10;
  border-color: var(--gold-soft);
}
.btn-pill-alt:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-pill[aria-expanded="true"] {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

/* Expandable menu panel */
.menu-panel {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding: 14px 16px;
  animation: menuFade 0.2s ease-out;
}
.menu-panel[hidden] { display: none; }
@keyframes menuFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-inner {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.menu-title {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 8px;
}
.menu-section {
  margin: 10px 0 6px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 4px;
}
.menu-section:first-child { margin-top: 0; }
.menu-section h5 {
  margin: 0 0 4px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.menu-inner ul {
  list-style: none; margin: 4px 0 8px; padding: 0;
}
.menu-inner ul li {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--navy);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.menu-empty {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--muted);
  margin: 0;
}
.menu-foot {
  font-family: var(--serif); font-style: italic;
  font-size: 12.5px; color: var(--muted);
  margin: 8px 0 0;
  border-top: 1px dashed var(--rule);
  padding-top: 6px;
}

/* Backup / alternate restaurant — nested under primary */
.rest-alt {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-left: 2px dashed var(--gold-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.alt-label {
  display: inline-block;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.alt-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 17px; color: var(--navy);
  line-height: 1.2;
}
.alt-addr {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--muted);
}

/* Condensed view address line */
.muted-line {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.cond-addr {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ===== Dining tab — per-night row with primary + backup ===== */
.dining-row {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.dining-night {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-soft);
}

/* ===== Activities — native <details> accordion ===== */
.act-list-rich {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.act-acc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 0;
  overflow: hidden;
}
.act-acc[open] { border-left-color: var(--terra); }
.act-acc.paid { border-left-color: #2d6b3b; }
.act-acc.paid[open] { border-left-color: #1f5230; }

.act-acc > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  user-select: none;
}
.act-acc > summary::-webkit-details-marker { display: none; }
.act-acc > summary:hover { background: var(--warm-50); }

.act-day-pill {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}
.act-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; color: var(--navy);
  line-height: 1.2;
}
.act-status {
  display: inline-block;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra); border: 1px solid var(--terra);
  background: var(--paper);
  padding: 2px 7px;
  border-radius: 3px;
}
.act-status.paid {
  color: #2d6b3b; border-color: #94c79a;
  background: #e8f3ea;
}
.act-chev {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  transition: transform 0.18s;
}
.act-acc[open] .act-chev { transform: rotate(180deg); color: var(--terra); }

.act-body {
  padding: 4px 16px 16px;
  border-top: 1px dashed var(--rule);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--warm-50);
}
.act-summary {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-soft);
  margin: 8px 0 4px; line-height: 1.55;
}
.act-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.act-row:last-child { border-bottom: none; }
.act-label {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
  padding-top: 2px;
}
.act-backup {
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px; color: var(--muted);
  border-top: 1px dashed var(--rule);
  padding-top: 8px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .act-acc > summary {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }
  .act-status {
    grid-column: 2 / 3; grid-row: 2;
    justify-self: start;
  }
  .act-chev {
    grid-column: 3; grid-row: 1 / span 2;
    align-self: center;
  }
  .act-row {
    grid-template-columns: 78px 1fr;
    gap: 8px;
  }
}

/* Hotel inclusions list (logistics tab) */
.hotel-incl {
  list-style: none;
  margin: 10px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.hotel-incl li {
  font-family: var(--serif);
  font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.hotel-incl li::before {
  content: "·";
  position: absolute; left: 4px; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Safety: never lock body unless modal is open */
body { overflow: visible; }
body.modal-open { overflow: hidden; }

/* ============================================
   ROUND 2 ADDITIONS (May 2026)
   - Condensed flight table (zurich-weekend style)
   - Confirmation code chips
   ============================================ */

.conf-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 6px 0 14px;
}
.conf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 5px 10px;
}
.conf-route {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.conf-code {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 600;
}

.ah-wrap {
  margin: 6px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ah-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.ah-table th,
.ah-table td {
  padding: 8px 6px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid rgba(212, 201, 176, 0.45);
  white-space: nowrap;
}
.ah-table th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(199, 154, 85, 0.25);
  padding-bottom: 6px;
}
.ah-table td:first-child,
.ah-table th:first-child { padding-left: 0; }
.ah-table td:last-child,
.ah-table th:last-child { padding-right: 0; }
.ah-table tbody tr:last-child td { border-bottom: none; }

.ah-table .ah-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.ah-table .ah-route {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ah-table .ah-route .arr {
  color: var(--terra);
  margin: 0 2px;
  font-size: 12px;
}
.ah-table tr.ah-past td { opacity: 0.45; }

.ah-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: capitalize;
  white-space: nowrap;
}
.ah-badge.sched { background: #eff6ff; color: #1e40af; }
.ah-badge.now   { background: #fef3c7; color: #92400e; }
.ah-badge.done,
.ah-badge.arr   { background: #dcfce7; color: #166534; }

.ah-foot {
  font-family: var(--serif); font-style: italic;
  font-size: 12.5px; color: var(--muted);
  margin: 4px 0 18px; line-height: 1.5;
}

@media (max-width: 480px) {
  .ah-table th,
  .ah-table td {
    padding: 6px 4px;
    font-size: 11px;
  }
  .ah-table .ah-mono { font-size: 10.5px; }
  .ah-table .ah-route { font-size: 13px; }
}



/* ===== Add-to-Home-Screen install prompt =====
   Mobile: full-width bottom sheet sliding up.
   Desktop (>=720px): floating card pinned to bottom-right. */
.a2hs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none; /* card itself re-enables */
}
.a2hs[hidden] { display: none; }

.a2hs-card {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--terra);
  border-radius: 18px 18px 0 0;
  padding: 22px 22px 24px;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  box-shadow: 0 -12px 40px rgba(15, 29, 51, 0.18);
  /* Animate up from below */
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.a2hs.a2hs-in .a2hs-card {
  transform: translateY(0);
}

.a2hs-x {
  position: absolute;
  top: 8px; right: 10px;
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft, #5a6478);
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.a2hs-x:hover { background: var(--paper-2); color: var(--ink); }

.a2hs-icon {
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--terra);
  flex-shrink: 0;
}
.a2hs-icon img {
  width: 56px; height: 56px;
  display: block;
  border-radius: 14px;
}

.a2hs-body { min-width: 0; }

.a2hs-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 6px;
}
.a2hs-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
  padding-right: 28px; /* room for close button */
}
.a2hs-msg {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 12px;
}

.a2hs-steps { margin: 0 0 14px; }
.a2hs-list {
  margin: 0;
  padding: 0 0 0 1.2em;
  list-style: none;
  counter-reset: a2hs;
  display: flex; flex-direction: column;
  gap: 6px;
}
.a2hs-list li {
  counter-increment: a2hs;
  position: relative;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  padding-left: 4px;
}
.a2hs-list li::before {
  content: counter(a2hs);
  position: absolute;
  left: -1.2em;
  top: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terra);
  width: 1em;
  text-align: right;
}

.a2hs-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.a2hs-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a6478);
}
.a2hs-link:hover { color: var(--terra); }

/* Desktop / tablet: float in bottom-right, no full-width sheet */
@media (min-width: 720px) {
  .a2hs {
    left: auto;
    right: 24px;
    bottom: 24px;
    justify-content: flex-end;
  }
  .a2hs-card {
    max-width: 380px;
    border-radius: 16px;
    border-top: 3px solid var(--terra);
    box-shadow: 0 18px 50px rgba(15, 29, 51, 0.22);
    transform: translateY(140%);
  }
  .a2hs.a2hs-in .a2hs-card { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .a2hs-card { transition: none; transform: none !important; }
}

/* =====================================================================
   ADDITIONS — v=20260520l
   - History blurb per day
   - Hero countdown / Santa Fe local clock
   - Reservation timeline (Essentials)
   - Packing & altitude brief (Essentials)
   These rules are appended at the END of the stylesheet so they cannot
   collide with scroll-related properties earlier in the file.
   ===================================================================== */

/* ---- History blurb on each day card ---- */
.history-blurb {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra-soft, var(--terra));
  padding: 14px 16px 12px;
  margin: 0 0 22px;
}
.history-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 6px;
}
.history-text {
  font-family: var(--serif);
  font-size: 15.5px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
.history-text em { font-style: italic; color: var(--navy); }

/* ---- Hero countdown / clock strip ---- */
.trip-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
  margin: 0 0 24px;
  /* hidden until JS populates with valid values */
  opacity: 0;
  transition: opacity 0.35s ease;
}
.trip-meter.is-ready { opacity: 1; }
.meter-cell {
  background: rgba(15, 29, 51, 0.32);
  border: 1px solid rgba(245, 239, 227, 0.22);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.meter-num {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.1;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.meter-clock-num {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  letter-spacing: 0.04em;
}
.meter-lbl {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 239, 227, 0.78);
}
.meter-countdown.is-onday .meter-num { color: var(--gold-soft, #f3d27a); }

/* ---- Reservation Timeline ---- */
.timeline-intro {
  font-family: var(--serif);
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.55; margin: 6px 0 16px;
}
.timeline-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  padding: 12px 14px;
}
.timeline-row.tl-urgent { border-left-color: var(--terra); background: #fdf3ee; }
.timeline-row.tl-soon   { border-left-color: var(--gold); }
.timeline-row.tl-flex   { border-left-color: var(--muted); background: var(--paper-2); }
.tl-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: var(--cream); color: var(--navy);
  border: 1px solid var(--rule);
}
.tl-urgent .tl-badge { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.tl-soon .tl-badge   { background: var(--gold);  color: var(--navy-deep, var(--navy)); border-color: var(--gold); }
.tl-flex .tl-badge   { background: var(--paper); color: var(--muted); }
.tl-body { min-width: 0; }
.tl-name {
  font-family: var(--serif); font-size: 17px;
  color: var(--navy); margin: 0 0 2px; line-height: 1.25;
}
.tl-note {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-soft); margin: 0; line-height: 1.55;
}

/* ---- Packing & altitude brief ---- */
.brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 6px 0 28px;
}
.brief-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
}
.brief-card.brief-altitude { border-left-color: var(--terra); }
.brief-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 8px;
}
.brief-text {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink-soft); margin: 0 0 8px; line-height: 1.55;
}
.brief-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.brief-list li {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-soft); line-height: 1.5;
  padding-left: 14px; position: relative;
}
.brief-list li::before {
  content: "•"; position: absolute; left: 0; top: 0;
  color: var(--terra); font-weight: 700;
}
.brief-list strong { color: var(--navy); }

@media (min-width: 720px) {
  .brief-grid { grid-template-columns: 1fr 1fr; }
  .timeline-row {
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 14px;
  }
  .trip-meter { max-width: 460px; }
}

/* ===== PACKING LIST ===== */
.pack-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 22px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.pack-progress {
  color: var(--terra);
  font-weight: 500;
}
.pack-reset {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.pack-reset:hover {
  color: var(--terra);
  border-color: var(--terra);
}

.pack-group { margin: 22px 0 8px; }
.pack-group .grouphead { margin-bottom: 10px; }

.pack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  border-top: 1px solid var(--rule);
}
.pack-list li {
  border-bottom: 1px solid var(--rule);
}
.pack-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy-deep);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pack-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 3px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pack-list input[type="checkbox"]:hover {
  border-color: var(--terra);
}
.pack-list input[type="checkbox"]:checked {
  background: var(--terra);
  border-color: var(--terra);
}
.pack-list input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pack-list li.is-packed span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--gold-soft);
}

@media (max-width: 540px) {
  .pack-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pack-progress { text-align: center; }
  .pack-list label { font-size: 15.5px; }
}
