/* ═══════════════════════════════════════════════════════════
   Ashley's CE Trips — Humlicek Dental
   1. Tokens + reset      8. Flight + car cards
   2. App shell           9. Day accordion
   3. Hero               10. Event rows
   4. Live chip strip    11. Brief card
   5. Layout + sections  12. Reservations + notes
   6. Trip list cards    13. Callouts + footer
   7. Entity blocks      14. Responsive + motion
   ═══════════════════════════════════════════════════════════ */

/* ── 1. TOKENS + RESET ───────────────────────────────────── */
:root {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --ink: #141D1D;
  --ink-muted: #4E5A5A;
  --ink-faint: #96A3A3;

  --hero: #0F2524;
  --glow-a: rgba(58, 161, 156, .45);
  --glow-b: rgba(127, 203, 198, .25);

  --brand: #3AA19C;
  --brand-light: #D6EFED;
  --brand-deep: #236C69;
  --brand-pale: #EEF8F7;
  --brand-on-dark: #7FCBC6;

  --personal: #B07D3A;
  --personal-light: #F3E7D3;

  --success: #2A6B3C;
  --success-light: #D6F0DF;
  --warn: #8B3A1A;
  --warn-light: #FDF0E8;

  --border: rgba(20, 29, 29, .12);
  --border-strong: rgba(20, 29, 29, .22);

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .25s;
  --t-mid: .3s;
  --t-slow: .35s;

  --entity: var(--brand);
  --entity-light: var(--brand-light);
  --entity-deep: var(--brand-deep);
  --entity-pale: var(--brand-pale);

  --pad-l: max(1.25rem, env(safe-area-inset-left));
  --pad-r: max(1.25rem, env(safe-area-inset-right));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sync-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6px var(--pad-r) 6px var(--pad-l);
  background: #0A1D1C;
  color: rgba(255,255,255,.72);
  font-size: 11.5px;
  letter-spacing: .02em;
}
.sync-bar .action-button { color: #fff; background: transparent; border-color: rgba(255,255,255,.24); padding: 5px 10px; }
#toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2.5rem);
  min-height: 0;
  padding: 0;
  border-radius: 20px;
  background: #0A1D1C;
  color: #fff;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
#toast:not(:empty) { padding: 8px 14px; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.live-bar :focus-visible { outline-color: var(--brand-on-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* entity scopes */
.entity-ce {
  --entity: var(--brand);
  --entity-light: var(--brand-light);
  --entity-deep: var(--brand-deep);
  --entity-pale: var(--brand-pale);
}
.entity-personal {
  --entity: var(--personal);
  --entity-light: var(--personal-light);
  --entity-deep: #8A5F26;
  --entity-pale: #FAF3E8;
}

/* ── 2. APP SHELL ────────────────────────────────────────── */
.app { display: block; }

.boot {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-text { color: var(--ink-faint); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.error-state {
  max-width: 560px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}
.error-state h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.6rem; margin-bottom: .5rem; }
.error-state p { color: var(--ink-muted); font-size: 14px; }

/* ── 3. HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--hero);
  color: #fff;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(2.5rem + env(safe-area-inset-top)) var(--pad-r) 0 var(--pad-l);
  overflow: hidden;
}
.hero--trip { min-height: 300px; padding-top: calc(1.5rem + env(safe-area-inset-top)); }

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 45%, var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse at 82% 55%, var(--glow-b) 0%, transparent 62%),
    linear-gradient(160deg, #0F2524 0%, #123331 100%);
}
.hero-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  opacity: .13;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 860px; }

.hero-mark { width: 56px; height: auto; display: block; margin: 0 auto .9rem; }
.hero--trip .hero-mark { width: 40px; margin-bottom: .7rem; }

.hero-eyebrow {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  margin-bottom: .7rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.hero--trip h1 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); }
.hero h1 em { font-style: italic; color: var(--brand-light); }

.hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  margin-top: .7rem;
  font-weight: 300;
}
.hero-status { margin-top: .9rem; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }

.hero-back {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .5rem;
  padding: 6px 14px 6px 11px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.hero-back:active { background: rgba(255, 255, 255, .18); }

/* countdown */
.countdown {
  margin-top: 1.6rem;
}
.countdown-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .5rem;
}
.countdown-row { display: flex; gap: 1.35rem; justify-content: center; }
.countdown-block { text-align: center; min-width: 46px; }
.countdown-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-top: 4px;
}
.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: rgba(255, 255, 255, .2);
  align-self: flex-start;
  padding-top: 2px;
}
.countdown-flat {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
}

/* city pills */
.hero-pills {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-pill {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 40px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  font-weight: 300;
}

/* ── 4. LIVE CHIP STRIP ──────────────────────────────────── */
.live-bar {
  width: 100%;
  margin-top: 1.7rem;
  background: var(--hero);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: .8rem 0 1.2rem;
  position: relative;
  z-index: 3;
}
.hero--trip .live-bar { margin-top: 1.25rem; }

.live-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-r) 0 var(--pad-l);
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.live-bar-inner::-webkit-scrollbar { display: none; }

.live-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .55rem .85rem;
  min-width: 136px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.chip-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.chip-main { display: flex; align-items: baseline; gap: 5px; }
.chip-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.chip-ampm { font-size: 11px; color: rgba(255, 255, 255, .5); }
.chip-strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.2;
}
.chip-accent {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--brand-on-dark);
  line-height: 1.15;
}
.chip-sub { font-size: 10px; color: rgba(255, 255, 255, .42); margin-top: 1px; }
.chip-weather { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.chip-wx-icon { font-size: 13px; }
.chip-wx-temp { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.chip-wx-desc { font-size: 10px; color: rgba(255, 255, 255, .42); }

/* ── 5. LAYOUT + SECTIONS ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-r) 0 var(--pad-l);
}
.section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: .4rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.section-note { font-size: 13px; color: var(--ink-muted); margin: -.9rem 0 1.4rem; }

/* ── badges + tags (shared) ──────────────────────────────── */
.badge {
  display: inline-block;
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-conf { background: var(--success-light); color: var(--success); letter-spacing: .06em; }
.badge-warn { background: var(--warn-light); color: var(--warn); }
.badge-info { background: var(--entity-light); color: var(--entity-deep); }
.badge-neutral { background: var(--bg); border: 1px solid var(--border); color: var(--ink-muted); }
.badge-ce { background: var(--brand-pale); color: var(--brand-deep); border: 1px solid var(--brand-light); }

.badge-on-dark {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88);
}
.badge-on-dark.is-live { background: rgba(58, 161, 156, .35); border-color: rgba(127, 203, 198, .45); color: #EAF7F6; }
.badge-on-dark.is-sample { background: rgba(139, 58, 26, .35); border-color: rgba(255, 180, 150, .35); color: #FFE3D6; }

.tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag-travel { background: #ECEFEF; color: #4E5A5A; }
.tag-course { background: var(--brand-pale); color: var(--brand-deep); }
.tag-booked { background: var(--success-light); color: var(--success); }
.tag-pending { background: var(--warn-light); color: var(--warn); }
.tag-free { background: var(--brand-light); color: var(--brand-deep); }
.tag-personal { background: var(--personal-light); color: #8A5F26; }

/* ── 6. TRIP LIST CARDS (home) ───────────────────────────── */
.trip-list { display: flex; flex-direction: column; gap: 8px; }

.trip-card {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--entity);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.trip-card:active { transform: scale(.99); background: var(--entity-pale); }

.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--entity-light);
  flex-shrink: 0;
}
.date-badge .month {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.date-badge .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--entity-deep);
}
.date-badge .tbd {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--entity-deep);
  line-height: 1.2;
  text-align: center;
}

.trip-card-body, .day-body { display: block; min-width: 0; }
.trip-card-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 2px;
}
.trip-card-meta {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.trip-card-pills { display: flex; flex-wrap: wrap; gap: 5px; }

.chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.chevron-right { transform: rotate(-90deg); }

.empty-note { font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* ── 7. ENTITY BLOCKS (venue / hotel) ────────────────────── */
.overview-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: stretch;
}
.overview-row.is-single { grid-template-columns: 1fr; }

.entity-block {
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--entity-deep);
  color: #fff;
  min-width: 0;
}
.entity-block-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: .25rem;
}
.entity-block-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .15rem;
  overflow-wrap: anywhere;
}
.entity-block-meta { font-size: 12px; opacity: .8; font-weight: 300; }
.entity-block-detail {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 12px;
  opacity: .9;
}
.map-link {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .95);
  font-size: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  padding: 7px 10px;
  line-height: 1.4;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  overflow-wrap: anywhere;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 500 12px/1.25 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.action-button:active { transform: scale(.98); background: var(--entity-pale); }
.action-button:disabled { opacity: .5; cursor: wait; }
.entity-block .action-button, .flight-meta .action-button {
  margin-top: 8px;
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}
.quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: .8rem;
  padding-bottom: .8rem;
  -webkit-overflow-scrolling: touch;
}
.quick-actions::-webkit-scrollbar { display: none; }
.quick-actions .action-button { white-space: nowrap; }
.readiness { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.hotel-booking-note { margin-top: .65rem; line-height: 1.5; }

.attention-list { display: flex; flex-direction: column; gap: 8px; }
.attention-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  background: var(--surface);
}
.attention-title { font: 400 1.05rem/1.3 'Playfair Display', serif; }
.attention-meta { margin: 2px 0 5px; font-size: 11px; color: var(--warn); text-transform: uppercase; letter-spacing: .06em; }
.attention-row p:last-child { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.check-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
}
.check-control input { width: 18px; height: 18px; accent-color: var(--brand-deep); }
.check-control input:disabled + span { opacity: .45; }
.handled-list { margin-top: 1rem; font-size: 13px; color: var(--ink-muted); }
.handled-list summary, .virtual-card summary { cursor: pointer; padding: .6rem 0; font-weight: 500; }
.handled-list .attention-row { margin-top: 8px; opacity: .68; border-left-color: var(--success); }

.today-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--hero), #17403D);
}
.today-card h3, .virtual-card h3 { font: 400 1.3rem/1.3 'Playfair Display', serif; margin: .2rem 0 .45rem; }
.today-event { padding-top: .5rem; margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.today-card .action-button { margin: .75rem .4rem 0 0; background: rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.25); }
.departure-card { margin-top: 8px; }

.ce-totals {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.ce-totals > div {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ce-totals strong { font: 700 1.6rem/1 'Playfair Display', serif; color: var(--brand-deep); }
.ce-totals span { margin-top: 5px; font-size: 11px; color: var(--ink-muted); }
.tracking-controls { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; margin-top:.7rem; padding-top:.7rem; border-top:1px solid var(--border); }
.virtual-card { margin-top: 1rem; }
.virtual-card > p { margin-top: .45rem; color: var(--ink-muted); font-size: 13px; }
.session-row {
  display: grid;
  grid-template-columns: minmax(95px,1fr) auto auto;
  gap: .75rem;
  align-items:center;
  padding:.45rem 0;
  border-top:1px solid var(--border);
  font-size:12px;
}
.map-link:active { background: rgba(255, 255, 255, .2); transform: scale(.99); }
.map-link-sub { display: block; font-size: 10px; opacity: .7; margin-top: 1px; }
.entity-conf { display: inline-block; margin-top: 8px; }

.overview-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 .25rem;
}
.connector-line { flex: 1; width: 1px; background: var(--border-strong); min-height: 12px; }
.connector-icon {
  background: var(--entity);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.connector-text {
  font-size: 10px;
  text-align: center;
  color: var(--ink-faint);
  letter-spacing: .05em;
  line-height: 1.4;
}

/* ── 8. FLIGHT + CAR CARDS ───────────────────────────────── */
.flight-group-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .6rem;
}
.flight-group-label + .flight-group-label { margin-top: .9rem; }

.flight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.flight-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}
.flight-time small { font-size: .85rem; }
.flight-airport { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.flight-date { font-size: 11px; color: var(--ink-faint); }
.flight-middle { text-align: center; min-width: 92px; }
.flight-airline { font-size: 12px; color: var(--ink-muted); font-weight: 500; letter-spacing: .05em; }
.flight-number { font-size: 11px; color: var(--ink-faint); }
.flight-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 15px;
  margin: 5px 0;
}
.flight-arrow-line { flex: 1; height: 1px; background: var(--border-strong); min-width: 14px; }
.flight-duration { font-size: 11px; color: var(--brand-deep); font-weight: 500; }
.flight-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.flight-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: .6rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.info-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.info-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem 1.25rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.info-key {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info-val { font-size: 13.5px; color: var(--ink); }

/* ── 9. DAY ACCORDION ────────────────────────────────────── */
.itinerary { display: flex; flex-direction: column; }
.day-item { margin-bottom: 8px; }

.day-row {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              border-radius var(--t-fast) var(--ease);
}
.day-row:active { transform: scale(.995); }
.day-item.open .day-row {
  border-color: var(--border-strong);
  border-top-color: var(--entity);
  border-radius: var(--radius) var(--radius) 0 0;
}
.day-item.open .chevron {
  transform: rotate(180deg);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.day-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 5px;
}
.day-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.day-panel {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--surface);
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: grid-template-rows var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.day-item.open .day-panel {
  grid-template-rows: 1fr;
  border-color: var(--border-strong);
}
.panel-clip { overflow: hidden; min-height: 0; }
.panel-body { padding: .25rem 1.1rem 1rem; }

/* ── 10. EVENT ROWS ──────────────────────────────────────── */
.event-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.event-row:last-child { border-bottom: none; }
.event-time {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  color: var(--ink-muted);
  padding-top: 2px;
  line-height: 1.3;
}
.event-body { min-width: 0; }
.event-title { font-size: 14px; font-weight: 500; margin-bottom: 3px; line-height: 1.35; }
.event-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.event-note {
  font-size: 12px;
  color: var(--brand-deep);
  margin-top: 5px;
  font-style: italic;
  line-height: 1.5;
}
.event-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* inline mini flight card */
.inline-flight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
}
.if-code { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.if-city { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.if-time { font-size: 12px; color: var(--ink-muted); font-weight: 500; margin-top: 4px; }
.if-mid { text-align: center; }
.if-carrier { font-size: 11px; font-weight: 500; color: var(--ink-muted); letter-spacing: .05em; }
.if-num { font-size: 11px; color: var(--ink-faint); margin-bottom: 3px; }
.if-arrow { font-size: 14px; color: var(--ink-faint); }
.if-dur { font-size: 11px; color: var(--brand-deep); font-weight: 500; margin-top: 3px; }
.if-end { text-align: right; }

/* ── 11. BRIEF CARD (one reusable component) ─────────────── */
.brief-card {
  background: linear-gradient(135deg, #102B2A 0%, #17403D 100%);
  border-radius: 12px;
  margin-top: 10px;
  overflow: hidden;
}
.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .75rem 1rem;
  transition: background var(--t-fast) var(--ease);
}
.brief-head:active { background: rgba(255, 255, 255, .06); }
.brief-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.brief-badge {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.brief-title { font-size: 13px; font-weight: 500; color: #fff; }
.brief-chevron {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.brief-card.open .brief-chevron { transform: rotate(180deg); }

.brief-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease);
}
.brief-card.open .brief-body { grid-template-rows: 1fr; }
.brief-body-inner { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; }

.brief-stats {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: .6rem .5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.brief-stat { text-align: center; min-width: 62px; }
.brief-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.brief-stat-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.brief-steps { display: flex; flex-direction: column; }
.brief-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brief-step:last-child { border-bottom: none; }
.brief-step-icon { font-size: 14px; line-height: 1.4; }
.brief-step-text { font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.55; }
.brief-step-text strong { color: #fff; font-weight: 600; }

.brief-tip {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .5);
  font-style: italic;
  line-height: 1.55;
  background: rgba(127, 203, 198, .1);
  border: 1px solid rgba(127, 203, 198, .2);
  border-radius: 10px;
  padding: .6rem .8rem;
}

/* ── 12. RESERVATIONS + NOTES ────────────────────────────── */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
}
.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.res-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.res-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--entity); flex-shrink: 0; }
.res-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin: .45rem 0 .2rem;
  line-height: 1.3;
}
.res-meta { font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin-bottom: .8rem; }
.res-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.res-time { font-weight: 500; }
.res-who { font-size: 11px; color: var(--ink-faint); margin-top: 6px; }

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.note-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .5rem;
}
.note-list { list-style: none; }
.note-list li {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.note-list li:last-child { border-bottom: none; }
.note-list li::before { content: '→ '; color: var(--entity); }

/* ── 13. CALLOUTS + FOOTER ───────────────────────────────── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--entity);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.callout-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--entity-deep);
  margin-bottom: .5rem;
}
.callout-text { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }
.callout.is-warn { border-left-color: var(--warn); }
.callout.is-warn .callout-label { color: var(--warn); }

.site-footer {
  background: var(--hero);
  color: rgba(255, 255, 255, .45);
  text-align: center;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  font-size: 12px;
}
.footer-main { color: var(--brand-on-dark); font-weight: 400; letter-spacing: .04em; }
.footer-sub { margin-top: 6px; }

/* ── 14. RESPONSIVE + MOTION ─────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: 410px; }
  .hero--trip { min-height: 300px; }
  .hero-content { padding-top: 2.5rem; padding-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .live-chip { min-width: 132px; }
  .live-bar-inner { padding-top: .7rem; padding-bottom: .7rem; }
  .flight-card { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .flight-middle { grid-column: 1 / -1; order: 3; min-width: 0; }
  .flight-meta { order: 4; grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .overview-row, .overview-row.is-single { grid-template-columns: 1fr; }
  .overview-connector { flex-direction: row; padding: .25rem 0; }
  .connector-line { width: auto; height: 1px; flex: 1; min-height: 0; }
  .day-row { grid-template-columns: 48px 1fr 28px; gap: .75rem; padding: .85rem .9rem; }
  .trip-card { grid-template-columns: 48px 1fr 24px; gap: .75rem; padding: .9rem; }
  .date-badge { width: 48px; height: 48px; }
  .date-badge .day { font-size: 1.3rem; }
  .event-row { grid-template-columns: 70px 1fr; }
  .inline-flight { grid-template-columns: 1fr auto 1fr; gap: .5rem; padding: .7rem .75rem; }
  .if-code { font-size: 1.1rem; }
  .panel-body { padding: .25rem .9rem .9rem; }
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.45rem; }
}

@media (max-width: 420px) {
  .sync-bar { justify-content: space-between; }
  .sync-bar span { max-width: 265px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .attention-row { grid-template-columns: 1fr; gap: .4rem; }
  .ce-totals { grid-template-columns: 1fr; }
  .ce-totals > div { flex-direction: row; gap: .75rem; align-items: baseline; }
  .session-row { grid-template-columns: 1fr; gap: .1rem; padding: .65rem 0; }
  .event-row { grid-template-columns: 1fr; gap: .15rem; }
  .event-time { padding-top: 0; font-size: .9rem; }
  .brief-stat { min-width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
