/* Visa Benefits Companion: showcase v3
   Palette: night navy, Visa blue, gold, ivory. Type: system serif for display, system sans for text.
   No remote fonts or scripts. */

:root {
  --night: #0B1033;
  --navy: #141A4D;
  --blue: #1A1F71;
  --gold: #F2B22E;
  --gold-deep: #9C6F0E;
  --gold-soft: #F7DFA6;
  --ivory: #F6F1E8;
  --paper: #FCFAF6;
  --sand: #ECE4D4;
  --sand-deep: #D9CDB6;
  --ink: #141A4D;
  --muted: #5A5F80;
  --line: rgba(20, 26, 77, 0.12);
  --line-strong: rgba(20, 26, 77, 0.22);
  --green: #2F7A5B;
  --rust: #A4552E;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --hdr: 64px;
  --pad: clamp(20px, 6vw, 96px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 0 rgba(20, 26, 77, 0.06), 0 18px 40px -24px rgba(11, 16, 51, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }

.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons and small controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: none;
  font-weight: 600; font-size: 15px; letter-spacing: 0.005em; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #F6C04F; }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--blue); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { color: var(--ink); padding: 0 10px; }
.btn--ghost:hover { background: rgba(20, 26, 77, 0.06); }
.btn--added { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn--added svg { color: var(--gold); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(20, 26, 77, 0.08); }

.linklike {
  background: none; border: 0; padding: 0; color: inherit; text-align: inherit; font: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.linklike:hover { text-decoration-color: var(--gold); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; color: var(--ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.pill--light { color: var(--ivory); border-color: rgba(246, 241, 232, 0.35); background: rgba(11, 16, 51, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--light:hover { border-color: var(--ivory); background: rgba(11, 16, 51, 0.45); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  color: var(--ivory); background: var(--night);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
body[data-view="home"] .site-header:not(.is-solid) { background: transparent; }
body[data-view="home"] .site-header:not(.is-solid)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 16, 51, 0.55), rgba(11, 16, 51, 0));
}
.site-header.is-solid { box-shadow: 0 1px 0 rgba(246, 241, 232, 0.08); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { font-family: var(--sans); font-weight: 800; font-style: italic; font-size: 22px; letter-spacing: 0.02em; color: var(--ivory); }
.brand__rule { width: 1px; height: 20px; background: rgba(246, 241, 232, 0.35); }
.brand__name { font-family: var(--serif); font-size: 18px; }
.brand__tag {
  font-size: 12.5px; font-weight: 500; color: rgba(246, 241, 232, 0.9); white-space: nowrap;
  border: 1px solid rgba(246, 241, 232, 0.3); border-radius: 999px; padding: 3px 10px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__link {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: rgba(246, 241, 232, 0.88);
}
.nav__link:hover { color: var(--ivory); background: rgba(246, 241, 232, 0.08); }
.nav__link[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.account { position: relative; margin-left: 6px; }
.account__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 6px;
  border-radius: 999px; border: 1px solid rgba(246, 241, 232, 0.28); background: rgba(246, 241, 232, 0.06); color: var(--ivory);
  font-size: 14px; font-weight: 600;
}
.account__btn--guest { padding: 0 18px; background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.account__btn:hover { border-color: var(--ivory); }
.account__chip { width: 34px; height: 22px; border-radius: 4px; flex: none; }
.account__who { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.account__who small { font-weight: 400; font-size: 12px; opacity: 0.75; }
.account__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 8px;
  box-shadow: 0 24px 60px -20px rgba(11, 16, 51, 0.55), 0 0 0 1px var(--line);
  animation: pop 0.18s var(--ease);
}
.account__menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 14px; }
.account__menu-head strong { display: block; font-size: 15px; }
.account__menu-head span { color: var(--muted); }
.account__menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 12px; border-radius: 8px; font-size: 15px;
}
.account__menu button:hover, .account__menu button:focus-visible { background: var(--sand); outline: none; }

/* Card art (sample cards) */
.cardart { position: relative; overflow: hidden; color: #fff; }
.cardart--signature { background: linear-gradient(135deg, #2B3A8C 0%, #1A1F71 55%, #10154F 100%); }
.cardart--infinite { background: linear-gradient(135deg, #1C2150 0%, #0B1033 60%, #05081F 100%); }
.cardart--infinite-privilege { background: linear-gradient(135deg, #3C3424 0%, #1E1A12 55%, #0E0C08 100%); }
.cardart--guest { background: linear-gradient(135deg, #DCD2BF, #BFB197); }
.cardart::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(242, 178, 46, 0.28), transparent 60%);
}
.cardart--signature::after { background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%); }

/* ---------- Views ---------- */
.view { min-height: 100vh; }
.view--trip { min-height: 0; }
body:not([data-view="home"]) main { padding-top: var(--hdr); }
.view.is-entering { animation: viewIn 0.45s var(--ease); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; min-height: 640px; height: 100svh; max-height: 960px;
  display: flex; align-items: flex-end; overflow: hidden; color: var(--ivory); background: var(--night);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__media img.is-on { opacity: 1; animation: drift 12s ease-out both; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 16, 51, 0.92) 0%, rgba(11, 16, 51, 0.55) 38%, rgba(11, 16, 51, 0.05) 70%),
    linear-gradient(to right, rgba(11, 16, 51, 0.55), rgba(11, 16, 51, 0) 60%);
}
.hero__content {
  position: relative; z-index: 1; width: 100%; max-width: 820px;
  padding: 0 var(--pad) clamp(48px, 11vh, 110px);
  animation: rise 0.9s var(--ease) both;
}
.hero__eyebrow { font-size: 14px; color: var(--gold-soft); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.03; letter-spacing: -0.012em; max-width: 14ch;
}
.hero__lede { margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; color: rgba(246, 241, 232, 0.86); }

.ask {
  margin-top: 32px; display: flex; align-items: center; gap: 8px;
  background: rgba(252, 250, 246, 0.97); color: var(--ink); border-radius: 22px; padding: 8px 8px 8px 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); max-width: 680px;
  transition: box-shadow 0.25s var(--ease);
}
.ask:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.ask__input {
  flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none;
  font-size: 17px; line-height: 1.45; padding: 12px 0; max-height: 160px;
}
.ask__input::placeholder { color: #7A7E98; }
.ask__btn { min-height: 48px; flex: none; }

.hero__examples { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero__examples-label { font-size: 13px; color: rgba(246, 241, 232, 0.7); margin-right: 4px; }
.hero__resume {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  text-decoration: none; color: var(--ivory); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.hero__caption {
  position: absolute; right: var(--pad); bottom: 36px; z-index: 1;
  background: none; border: 0; color: rgba(246, 241, 232, 0.82); font-size: 13px; text-align: right;
  max-width: 280px; padding: 6px 0; transition: opacity 0.6s ease;
}
.hero__caption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ivory); }
.hero__caption:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.hero__caption.is-fading { opacity: 0; }

/* ---------- Home: featured ---------- */
.featured { padding: clamp(56px, 9vw, 112px) var(--pad) clamp(48px, 7vw, 96px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; }
.section-sub { margin-top: 8px; color: var(--muted); }
.featured__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.feature { position: relative; border-radius: 16px; overflow: hidden; background: var(--sand); animation: rise 0.7s var(--ease) both; }
.feature:nth-child(2) { animation-delay: 0.08s; }
.feature:nth-child(3) { animation-delay: 0.16s; }
.feature:nth-child(4) { animation-delay: 0.24s; }
.feature__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--ivory); position: relative; aspect-ratio: 4 / 5; }
.feature__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__btn:hover img, .feature__btn:focus-visible img { transform: scale(1.045); }
.feature__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 16, 51, 0.9) 0%, rgba(11, 16, 51, 0.35) 45%, rgba(11, 16, 51, 0) 70%); }
.feature__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.feature__place { font-size: 13px; color: var(--gold-soft); }
.feature__title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.feature__value { font-size: 14px; color: rgba(246, 241, 232, 0.88); margin-top: 2px; }
.feature .elig { margin-top: 8px; }

/* ---------- Home: coverage ---------- */
.coverage { background: var(--night); color: var(--ivory); padding: clamp(56px, 8vw, 96px) var(--pad); }
.coverage__inner { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 40px; align-items: start; }
.coverage__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; max-width: 12ch; }
.coverage__regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 32px; }
.region h3 { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(246, 241, 232, 0.15); }
.region ul { list-style: none; display: grid; gap: 6px; }
.region a { text-decoration: none; color: rgba(246, 241, 232, 0.86); font-size: 15px; }
.region a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- Eligibility marker ---------- */
.elig { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.elig .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px solid currentColor; }
.elig--ok { color: var(--green); }
.elig--ok .dot { background: currentColor; }
.elig--no { color: var(--rust); }
.elig--no .dot { background: transparent; }
.elig--unk .dot { border-style: dashed; }
.elig--light.elig--ok { color: #9FDCC0; }
.elig--light.elig--no { color: #F0B79A; }
.elig--light.elig--unk { color: rgba(246, 241, 232, 0.75); }
.elig__hint { color: var(--muted); font-weight: 400; }
.elig--light .elig__hint { color: rgba(246, 241, 232, 0.72); }

/* Caption for stock photography that does not show the partner or place */
.credit {
  position: absolute; z-index: 2; pointer-events: none;
  font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: 0.02em; line-height: 1;
  color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.credit--corner { right: 10px; bottom: 8px; }
.credit--top { right: 12px; top: 10px; }
.hero__credit { display: block; margin-top: 4px; font-size: 11px; opacity: 0.7; }

/* ---------- Benefit card ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  animation: rise 0.55s var(--ease) both;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card.is-linked, .card.is-flash { box-shadow: 0 0 0 2px var(--gold), var(--shadow); transform: translateY(-3px); }
.card.is-flash { animation: flash 1.4s var(--ease); }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sand); aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__media:hover img, .card__media:focus-visible img { transform: scale(1.05); }
.card__cat {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; color: var(--night);
  background: rgba(252, 250, 246, 0.92);
}
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 16px; flex: 1; }
.card__place { font-size: 13px; color: var(--muted); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.2; margin-top: 2px; }
.card__title .linklike { text-decoration: none; }
.card__title .linklike:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card__partner { font-size: 14px; color: var(--muted); }
.card__value { font-size: 15px; font-weight: 600; margin-top: 8px; }
.card .elig { margin-top: 6px; }
.card__more { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 10px; animation: rise 0.3s var(--ease); }
.card__more ul { list-style: none; display: grid; gap: 4px; }
.card__more li { padding-left: 16px; position: relative; }
.card__more li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: var(--gold-deep); }
.card__more dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.card__more dt { color: var(--muted); }
.card__more dd { margin: 0; }
.card__more-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.card__actions .btn--ghost svg { transition: transform 0.25s var(--ease); }
.card__actions .btn--ghost[aria-expanded="true"] svg { transform: rotate(180deg); }
.card--muted .card__media img { filter: saturate(0.85); }
.card .fit { margin-top: 2px; }
.card__fitnote { color: var(--blue); }

/* Fit with the trip, as judged by the server */
.fit { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--blue); }
.fit::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); border: 1.5px solid currentColor; }
.fit--yes::before { background: var(--gold); border-color: var(--gold-deep); }
.fit--maybe { color: var(--muted); }

/* Compact card (inline in mobile conversation and in plan strip) */
.mini {
  flex: none; width: 210px; display: flex; flex-direction: column; text-align: left; padding: 0;
  border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.mini span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.mini strong { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; line-height: 1.2; }
.mini small { font-size: 13px; color: var(--muted); }

/* Skeleton (transient loading only) */
.skel { border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.skel__img { aspect-ratio: 3 / 2; background: var(--sand); position: relative; overflow: hidden; }
.skel__img::after, .skel__line::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.4s infinite;
}
.skel__body { padding: 18px 20px 22px; display: grid; gap: 10px; }
.skel__line { position: relative; overflow: hidden; height: 12px; border-radius: 6px; background: var(--sand); }
.skel__line--lg { height: 18px; width: 75%; }
.skel__line--sm { width: 45%; }

/* ---------- Explore ---------- */
.explore-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(40px, 6vw, 72px) var(--pad) 24px;
}
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; }
.page-sub { margin-top: 10px; color: var(--muted); }
.filters {
  position: sticky; top: var(--hdr); z-index: 20; padding: 14px var(--pad) 12px;
  background: rgba(246, 241, 232, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters__row { display: flex; gap: 12px; flex-wrap: wrap; }
.search {
  flex: 1 1 340px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted);
}
.search:focus-within, .select:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 178, 46, 0.5); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.select { position: relative; flex: 0 1 260px; display: flex; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 46px; padding: 0 44px 0 18px; border: 0; background: transparent; outline: none; font-size: 16px; border-radius: 999px; }
.filters__cats { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters__cats::-webkit-scrollbar { display: none; }
.filters__cats .pill { flex: none; }
.explore-body { padding: 24px var(--pad) 96px; }
.explore-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; min-height: 21px; }
.explore-foot { display: grid; justify-items: center; gap: 12px; margin-top: 40px; }
.explore-sentinel { height: 1px; width: 100%; }
.explore-status { color: var(--muted); font-size: 14px; text-align: center; }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Trip ---------- */
body[data-view="trip"] .site-footer { display: none; }
.trip { display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); align-items: start; }

.chat {
  position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr));
  display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line);
}
.chat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.chat__title { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.chat__note { font-size: 12px; color: var(--muted); }
.chat__log { flex: 1; overflow-y: auto; padding: 22px 24px 12px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; scroll-behavior: smooth; }

.msg { max-width: 100%; }
.msg.is-new { animation: rise 0.4s var(--ease) both; }
.msg--user { align-self: flex-end; max-width: 88%; padding: 2px 0 2px 14px; border-left: 2px solid var(--sand-deep); color: var(--muted); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--user .about { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold-deep); font-weight: 600; margin-bottom: 4px; }
.msg--user.is-failed { border-left-color: var(--rust); }
.msg--assistant { display: grid; gap: 12px; overflow-wrap: break-word; }
.msg__text { font-family: var(--sans); font-size: 15px; line-height: 1.62; color: var(--ink); display: grid; gap: 10px; max-width: 62ch; }
.msg__text p { margin: 0; }
.msg__text ul { list-style: none; display: grid; gap: 10px; margin: 2px 0; padding: 0; }
.msg__text li { position: relative; padding-left: 16px; }
.msg__text li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 7px; height: 1.5px; background: var(--gold-deep); }
.msg__text li strong { display: block; font-weight: 600; }
.msg__text li span { color: #3B406A; }
.mention {
  display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.mention:hover { background: rgba(242, 178, 46, 0.16); }
.msg__link {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.msg__link::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
.msg__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.msg__cards { display: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -2px; }
.msg__notice { font-size: 13px; color: var(--muted); padding: 8px 12px; background: var(--sand); border-radius: 8px; }
.msg__foot { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.msg__foot button { border: 0; background: none; padding: 4px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.msg__foot button:hover { background: var(--sand); color: var(--ink); }
.msg--pending { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.msg--pending .stage { transition: opacity 0.3s ease; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.msg--error { font-size: 15px; display: grid; gap: 8px; justify-items: start; }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; animation: rise 0.4s var(--ease) 0.15s both; }
.suggest__label { width: 100%; font-size: 12px; color: var(--muted); }
.suggest .pill { font-size: 14px; background: var(--paper); text-align: left; min-height: 36px; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }

.trip-bar { display: none; }

.composer { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.composer__context {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px;
  padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--sand); color: var(--ink);
}
.composer__context span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__context strong { font-weight: 600; }
.composer__context .icon-btn { width: 28px; height: 28px; }
.composer__box {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong); border-radius: 18px; background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.composer__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 178, 46, 0.45); }
.composer__input { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent; font-size: 16px; line-height: 1.45; padding: 9px 0; max-height: 140px; }
.composer__send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); transition: background-color 0.2s var(--ease), opacity 0.2s;
}
.composer__send:hover { background: var(--blue); }
.composer__send:disabled { opacity: 0.4; cursor: not-allowed; }
.composer__note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Workspace */
.workspace { padding: 28px clamp(20px, 3.4vw, 56px) 96px; min-width: 0; display: flex; flex-direction: column; }
.workspace > * { flex-shrink: 0; }
.sheet-head, .sheet-backdrop { display: none; }
.trip-head {
  position: relative; height: clamp(200px, 30vh, 300px); border-radius: 18px; overflow: hidden;
  background: var(--night); color: var(--ivory); display: flex; align-items: flex-end;
}
.trip-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-head__img.is-changing { animation: imgIn 0.9s var(--ease); }
.trip-head__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 16, 51, 0.88), rgba(11, 16, 51, 0.15) 70%); }
.trip-head__text { position: relative; padding: 24px 28px; }
.trip-head__eyebrow { font-size: 13px; color: var(--gold-soft); margin-bottom: 6px; }
.trip-head__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; }
.trip-head__title.is-changing { animation: rise 0.5s var(--ease); }
.trip-head__goal { margin-top: 10px; max-width: 56ch; font-size: 16px; line-height: 1.45; color: var(--ivory); padding-left: 12px; border-left: 2px solid var(--gold); animation: rise 0.5s var(--ease) both; }
.trip-head__sub { margin-top: 8px; font-size: 15px; color: rgba(246, 241, 232, 0.86); }

.ws-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.known { margin-top: 24px; }
.known__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink); text-align: left;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip__k { color: var(--muted); }
.chip__note { font-size: 12px; color: var(--rust); }
.chip svg { color: var(--gold-deep); flex: none; }
.chip__v { overflow-wrap: anywhere; }
.chip--goal { background: var(--navy); border-color: var(--navy); color: var(--ivory); max-width: 100%; border-radius: 14px; padding: 6px 14px; line-height: 1.35; }
.chip--goal .chip__k { color: var(--gold-soft); }
.chip--goal:hover { border-color: var(--gold); }
.chip--interest { background: rgba(242, 178, 46, 0.12); border-color: rgba(156, 111, 14, 0.3); }
.chip--todo { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--muted); }
.chip--todo:hover { color: var(--ink); }
.chip.is-new { animation: chipIn 0.6s var(--ease) both; }
.known__empty { font-size: 14px; color: var(--muted); }

/* Secondary trip facts behind one disclosure, so ideas are reached quickly */
.known__more { margin-top: 10px; }
.known__more > summary {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 0 12px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 14px; color: var(--ink);
  cursor: pointer; list-style: none; transition: border-color 0.2s var(--ease);
}
.known__more > summary::-webkit-details-marker { display: none; }
.known__more > summary:hover { border-color: var(--ink); }
.known__more-k { font-weight: 600; flex: none; }
.known__count { flex: none; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--sand); }
.known__peek { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.known__more > summary svg { flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.known__more[open] > summary svg { transform: rotate(180deg); }
.known__more[open] .known__peek { display: none; }
.known__chips--more { margin-top: 10px; animation: settle 0.25s var(--ease); }

/* Jump to the latest question or the whole trip, with counts */
.ws-jump { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.jump {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); text-align: left;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.jump:hover { border-color: var(--ink); }
.jump:active { transform: translateY(1px); }
.jump__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jump__k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.jump__v { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump svg { flex: none; }
.jump--trip { background: var(--navy); border-color: var(--navy); color: var(--ivory); box-shadow: var(--shadow); }
.jump--trip .jump__k { color: var(--gold-soft); }
.jump--trip svg { color: var(--gold); }
.jump--trip:hover { background: var(--blue); border-color: var(--gold); }
.recs__title:focus { outline: none; }
.recs__title:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.plan { margin-top: 28px; }
.plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.plan__head .ws-label { margin: 0; }
.plan__note { font-size: 13px; color: var(--muted); }
.plan__list { list-style: none; display: grid; gap: 10px; }
.plan__item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow);
  animation: rise 0.4s var(--ease) both;
}
.plan__item img { width: 72px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.plan__item-text { min-width: 0; }
.plan__item-text strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan__item-text small { color: var(--muted); font-size: 13px; }
.plan__item-actions { display: flex; gap: 4px; }
.plan__empty { font-size: 14px; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; }

.recs { margin-top: 36px; }
.recs.is-updating .grid { opacity: 0.45; transition: opacity 0.3s ease; }
.recs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.recs__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; }
.recs__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.recs__group + .recs__group { margin-top: 36px; }
.recs__city { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 14px; }
.recs__city small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.ws-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }

/* Latest question: full cards. Whole trip: compact ideas grouped by theme, separated by a rule. */
.focus { margin-top: 32px; }
.opts { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.focus[hidden] + .opts { margin-top: 32px; }
.recs.is-updating .opts__list { opacity: 0.45; transition: opacity 0.3s ease; }
.opts__removed { display: inline-block; margin-bottom: 18px; padding: 8px 12px; border-radius: 8px; background: var(--sand); font-size: 13.5px; color: var(--ink); animation: rise 0.4s var(--ease) both; }
.opts__empty { font-size: 14px; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.opts__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 24px; align-items: start; }
.opts__theme { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.opts__theme small { font-size: 13px; font-weight: 400; color: var(--muted); }
.opts__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.opts__more { margin-top: 18px; }
.opts__more svg { transition: transform 0.25s var(--ease); }

.opt {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 10px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.opt:nth-child(2) { animation-delay: 0.05s; }
.opt:nth-child(3) { animation-delay: 0.1s; }
.opt:nth-child(4) { animation-delay: 0.15s; }
.opt.is-linked, .opt.is-flash { box-shadow: 0 0 0 2px var(--gold), var(--shadow); transform: translateY(-2px); }
.opt.is-flash { animation: flash 1.4s var(--ease); }
.opt__media { display: block; width: 92px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--sand); }
.opt__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.opt__media:hover img { transform: scale(1.06); }
.opt__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt__place { font-size: 12.5px; color: var(--muted); }
.opt__title { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.2; }
.opt__title .linklike { text-decoration: none; }
.opt__title .linklike:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.opt__value { font-size: 14px; font-weight: 600; }
.opt__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.opt__meta .fit, .opt__meta .elig { font-size: 12.5px; }
.opt__actions { margin-top: 8px; }

/* Optional discovery themes from the server */
.themes { margin-top: 28px; }
.themes__label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.themes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.theme { background: var(--paper); }
.theme:hover { background: #fff; }
.theme:disabled { opacity: 0.5; cursor: not-allowed; }
.theme__n { font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 7px; border-radius: 999px; background: var(--sand); }

.plan.is-empty { order: 1; margin-top: 40px; }
.inspo-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--sand); }

/* ---------- Dialogs ---------- */
.modal {
  padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.modal[open] { animation: modalIn 0.35s var(--ease); }
.modal::backdrop { background: rgba(11, 16, 51, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__inner { position: relative; padding: 32px; overflow-y: auto; max-height: calc(100dvh - 48px); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__eyebrow { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; padding-right: 32px; }
.modal__text { margin-top: 10px; color: var(--muted); }

.modal--signin { width: min(760px, calc(100vw - 32px)); }
.profiles { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile {
  display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; border-radius: 16px; text-align: left;
  border: 1px solid var(--line); background: #fff; transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.profile:hover, .profile:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.profile.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.profile__card { aspect-ratio: 1.586; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.7); }
.profile__card-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 11px; position: relative; z-index: 1; }
.profile__bank { font-family: var(--serif); font-size: 13px; }
.profile__sample { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; padding: 2px 6px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; }
.profile__chip { width: 28px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #E9CF8A, #B38A35); position: relative; z-index: 1; }
.profile__card-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.profile__tier { font-size: 11px; opacity: 0.9; }
.profile__visa { font-weight: 800; font-style: italic; font-size: 16px; }
.profile__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.profile__meta { font-size: 13px; color: var(--muted); }
.profile__state { font-size: 12px; color: var(--gold-deep); font-weight: 600; }
.consent { margin-top: 20px; font-size: 13px; color: var(--muted); max-width: 64ch; }
.signin-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.fine { font-size: 12px; color: var(--muted); }

.modal--detail { width: min(1040px, calc(100vw - 32px)); }
.modal--detail .modal__inner { padding: 0; display: grid; grid-template-columns: 5fr 6fr; max-height: calc(100dvh - 48px); overflow: hidden; }
.detail__media { position: relative; margin: 0; min-height: 100%; background: var(--sand); }
.detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__media figcaption {
  position: absolute; left: 18px; bottom: 18px; font-size: 13px; color: var(--ivory); padding: 5px 12px; border-radius: 999px;
  background: rgba(11, 16, 51, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.detail__body { padding: 36px 36px 28px; overflow-y: auto; max-height: calc(100dvh - 48px); }
.detail__place { font-size: 14px; color: var(--muted); }
.detail__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin-top: 6px; padding-right: 36px; }
.detail__partner { margin-top: 6px; color: var(--muted); }
.detail__value { margin-top: 18px; font-size: 1.15rem; font-weight: 600; padding-left: 14px; border-left: 3px solid var(--gold); }
.detail__elig { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--ivory); font-size: 14px; display: grid; gap: 4px; }
.detail__elig .elig { font-weight: 600; font-size: 14px; }
.detail__summary { margin-top: 18px; }
.detail__features { list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.detail__features li { padding-left: 22px; position: relative; }
.detail__features li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); padding-right: 16px; }
.facts dd { margin: 0; }
.fitbox { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; display: grid; gap: 6px; }
.fitbox .fit { font-weight: 600; font-size: 14px; }
.fitbox ul { list-style: none; display: grid; gap: 4px; color: #3B406A; }
.fitbox li { position: relative; padding-left: 16px; }
.fitbox li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 1.5px; background: var(--gold-deep); }
.conds-wrap { margin-top: 22px; }
.conds-wrap h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.conds { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cond dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.cond dd { margin: 0; font-size: 15px; line-height: 1.45; }
.terms { margin-top: 22px; }
.terms h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.terms p { font-size: 14px; line-height: 1.6; white-space: pre-line; }
.terms .fine { margin-top: 8px; }
.detail__actions { position: sticky; bottom: -28px; margin: 24px -36px -28px; padding: 16px 36px 20px; background: linear-gradient(to top, var(--paper) 75%, rgba(252, 250, 246, 0)); display: flex; flex-wrap: wrap; gap: 8px; }
/* Base light text for everything in the navy Next steps panel; the specific rules below refine it. */
.handoff :where(h3, h4, p, ol, li, dl, dt, dd, strong, span, label) { color: var(--ivory); }
.handoff { margin-top: 22px; padding: 20px; border-radius: 14px; background: var(--night); color: var(--ivory); animation: settle 0.4s var(--ease); }
.handoff h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 6px; }
.handoff__note { font-size: 14px; color: var(--gold-soft); margin-bottom: 14px; }
.handoff__msg { font-size: 15px; line-height: 1.55; color: var(--ivory); margin-bottom: 14px; max-width: 52ch; }
.handoff__note--after { margin: 12px 0 0; font-size: 13px; color: rgba(246, 241, 232, 0.72); }
.handoff ol { padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.handoff__ref { margin-top: 14px; font-size: 13px; color: rgba(246, 241, 232, 0.75); }
.handoff__ref strong { color: var(--ivory); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }

/* Demo request inside Next steps: a practice draft, never a booking.
   Everything inside the navy panel sets its own light colour, so nothing inherits the dark
   page ink. The form and result animate by movement only, never by fading the text. */
.request { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(246, 241, 232, 0.28); color: var(--ivory); }
.request__lead { font-size: 14px; color: rgba(246, 241, 232, 0.9); margin-bottom: 12px; max-width: 52ch; }
.request__title { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 2px; color: var(--ivory); }
.request__title svg { color: var(--gold); }
.request__form { display: grid; gap: 12px; animation: settle 0.3s var(--ease); }
.request__form .request__lead { margin-bottom: 0; }
.request__fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.request .field { display: grid; gap: 4px; }
.request .field__label { font-size: 13px; font-weight: 600; color: var(--ivory); }
.request .field__opt { font-weight: 400; color: rgba(246, 241, 232, 0.8); }
.request .field input, .request .field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(246, 241, 232, 0.55); background: rgba(246, 241, 232, 0.1); color: var(--ivory);
  color-scheme: dark;
}
.request .field textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.request .field input::placeholder, .request .field textarea::placeholder { color: rgba(246, 241, 232, 0.7); }
.request .field input:focus-visible, .request .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.request .field input[aria-invalid="true"] { border-color: #F0A27A; border-width: 2px; }
.request__error { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: rgba(164, 85, 46, 0.4); border: 1px solid #F0A27A; color: var(--ivory); }
.request__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request__cancel { color: var(--ivory); border-color: rgba(246, 241, 232, 0.55); }
.request__cancel:hover { border-color: var(--ivory); background: rgba(246, 241, 232, 0.08); }
.request__done {
  display: grid; gap: 12px; padding: 16px; border-radius: 12px; color: var(--ivory);
  background: rgba(246, 241, 232, 0.07); border: 1px solid rgba(246, 241, 232, 0.3);
  animation: settle 0.3s var(--ease);
}
.request__done:focus { outline: none; }
.request__done:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.request__badge {
  justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--night);
}
.request__for { font-size: 15px; color: var(--ivory); }
.request__ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--gold); background: rgba(11, 16, 51, 0.5); }
.request__ref span { font-size: 13px; color: var(--gold-soft); }
.request__ref strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px; letter-spacing: 0.05em; font-weight: 700; color: var(--ivory); overflow-wrap: anywhere; }
.request__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.request__facts dt { font-size: 12.5px; color: rgba(246, 241, 232, 0.82); }
.request__facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ivory); }
.request__notes { grid-column: 1 / -1; }
.request__notes dd { font-weight: 400; white-space: pre-line; overflow-wrap: anywhere; }
.request__notice {
  font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ivory);
  padding: 10px 12px; border-radius: 10px; background: rgba(242, 178, 46, 0.16); border: 1px solid rgba(242, 178, 46, 0.6);
}
@media (max-width: 520px) {
  .request__fields, .request__facts { grid-template-columns: 1fr; }
}

/* ---------- Footer and toast ---------- */
.site-footer { padding: 28px var(--pad) 36px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translateX(-50%);
  background: var(--night); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); animation: toastIn 0.3s var(--ease); max-width: calc(100vw - 32px);
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(8px); } to { transform: none; } }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes chipIn { 0% { opacity: 0; transform: scale(0.9); background: var(--gold-soft); } 60% { opacity: 1; transform: scale(1.02); background: var(--gold-soft); } 100% { transform: none; } }
@keyframes imgIn { from { opacity: 0.2; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 2px var(--gold), var(--shadow); } 40% { box-shadow: 0 0 0 6px rgba(242, 178, 46, 0.4), var(--shadow); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage__inner { grid-template-columns: 1fr; }
}
@media (min-width: 1480px) {
  .workspace .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1479px) {
  .workspace .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) and (max-width: 1479px) {
  .trip { grid-template-columns: 380px minmax(0, 1fr); }
  .workspace .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .workspace .card__body { padding: 16px 16px 14px; }
  .workspace .card__title { font-size: 1.2rem; }
}

@media (max-width: 899px) {
  :root { --hdr: 58px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 16px; }
  .brand__rule { height: 16px; }
  .nav__link { padding: 8px 10px; }
  .account__who { display: none; }
  .account__btn { padding: 0 6px; }
  .account__btn--guest { padding: 0 14px; }

  .hero { min-height: 600px; }
  .hero__content { padding-bottom: 40px; }
  .hero__caption { display: none; }
  .ask { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 20px; }
  .ask__input { flex: none; padding: 10px 12px; }
  .ask__btn { width: 100%; }

  .featured__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none;
  }
  .featured__grid::-webkit-scrollbar { display: none; }
  .feature { flex: none; width: 76vw; max-width: 320px; scroll-snap-align: start; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .grid { grid-template-columns: 1fr; gap: 18px; }
  .filters { padding-top: 10px; }
  .select { flex: 1 1 100%; }

  /* Trip: one stream, sheet for the workspace */
  .trip { display: block; }
  .chat { position: relative; top: 0; height: calc(100dvh - var(--hdr)); border-right: 0; }
  .chat__head { padding: 12px 18px 10px; }
  .chat__log { padding: 18px 18px 10px; }
  .msg__cards { display: flex; }
  .msg__link { display: none; }
  .trip-bar {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border: 0; border-top: 1px solid var(--line);
    background: var(--ivory); text-align: left; font-size: 14px;
  }
  .trip-bar__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trip-bar__text strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-right: 6px; }
  .trip-bar__count { flex: none; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--ivory); font-size: 13px; }
  .composer { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }

  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(11, 16, 51, 0.5); animation: viewIn 0.25s ease; }
  .workspace {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--ivory); border-radius: 20px 20px 0 0; padding: 0 18px calc(40px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5);
  }
  .workspace.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5;
    margin: 0 -18px 12px; padding: 18px 12px 10px 18px; background: var(--ivory);
  }
  .sheet-grip { position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; border-radius: 2px; background: var(--sand-deep); transform: translateX(-50%); }
  .sheet-title { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
  .trip-head { height: auto; min-height: 170px; }
  .trip-head__text { padding: 40px 18px 18px; }
  .trip-head__goal { font-size: 15px; margin-top: 8px; }
  .trip-head__sub { font-size: 14px; margin-top: 6px; }
  .known { margin-top: 18px; }
  .known .ws-label { margin-bottom: 10px; }
  .ws-jump { margin-top: 16px; grid-template-columns: 1fr; gap: 8px; }
  .jump { min-height: 52px; padding: 8px 14px; }
  /* Room for the sticky sheet heading when jumping to a section */
  .workspace .recs { scroll-margin-top: 72px; }

  .modal { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal__inner { padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 94dvh; }
  .modal--detail .modal__inner { display: block; overflow-y: auto; max-height: 94dvh; padding: 0; }
  .detail__media { min-height: 0; aspect-ratio: 16 / 10; }
  .detail__body { max-height: none; overflow: visible; padding: 22px 20px 20px; }
  .detail__actions { margin: 20px -20px -20px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); bottom: 0; }
  .modal--detail .modal__close { background: rgba(252, 250, 246, 0.92); }
  .profiles { grid-template-columns: 1fr; }
  .profile { flex-direction: row; align-items: center; }
  .profile__card { width: 120px; flex: none; padding: 8px 10px; }
  .profile__bank { font-size: 10px; }
  .profile__sample { font-size: 8px; }
  .profile__chip { width: 20px; height: 14px; }
  .profile__visa { font-size: 13px; }
  .profile__tier { font-size: 9px; }
}

@media (max-width: 520px) {
  .brand__rule, .brand__name { display: none; }
  .hero__title { font-size: 2.35rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .conds { grid-template-columns: 1fr; gap: 12px; }
  .opt { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .opt__media { width: 72px; }
}

.msg__references { margin: 12px 0; font-size: 13px; color: var(--ink); }
.msg__references summary { cursor: pointer; color: var(--muted); padding: 5px 0; }
.msg__reference { display: block; max-width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 9px 11px; margin: 7px 0; font: inherit; line-height: 1.4; cursor: pointer; }
.msg__reference:hover, .msg__reference:focus-visible { border-color: var(--gold); text-decoration: underline; }
