/* Discovery pages (/last-minute/, /solo/) — same design system as the main
   site, translated from web/app.css / web/design-ref/marine.dc.html rather
   than a parallel palette. Token values are copied verbatim from app.css's
   :root (2026-09-05 redesign) so a future site-wide token change should be
   made in both places, not just here — these pages don't load app.css
   directly (kept buildless/standalone per DESIGN_HANDOFF.md scope). */
:root {
  --paper: #eff2f5;
  --ink: #16202b;
  --amber: #f0a93b;
  --amber-dark: #e2991f;
  --link: #1d5f8a;
  --muted: #526577;
  --faint: #5a6f80;
  --ghosttext: #2d4256;
  --slate: #4c6072;
  --line: #e4e9ee;
  --line2: #eaeef2;
  --ctl-border: #dce3e9;
  --hair: #e8edf1;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans);
}
a { color: var(--link); text-underline-offset: 3px; }
button, select { font: inherit; }
button, a, select { touch-action: manipulation; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}
.skip { position: absolute; left: 12px; top: -80px; background: #fff; padding: 12px; border-radius: 9px; z-index: 2; }
.skip:focus { top: 12px; }

/* Exact .wrap value (app.css) — was 1240px/36px, invented; real site is
   1680px/28px. main/footer reuse it directly; header's own real analog
   is .site-head (full-bleed, bordered) wrapping a .wrap.head-inner. */
.wrap { max-width: 1680px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
main, footer { max-width: 1680px; margin: auto; padding: 24px 28px; }

/* ---------- header: exact .site-head/.head-inner/.brand/.navlink/
   .navwrap/.head-right/.head-account structure and values (app.css) —
   not an invented 4-link nav. The real "More" select's own JS
   (MORE_VIEWS in app.js) is what already sends visitors to these two
   pages, so matching its exact item set/order isn't cosmetic. ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 22px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brandmark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brandname { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.005em; }
.brandname em { font-style: italic; font-weight: 400; }
.navwrap { display: flex; min-width: 0; position: relative; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.navlink {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; cursor: pointer; padding: 7px 11px; border-radius: 9px;
  border: 0; background: transparent; appearance: none; -webkit-appearance: none;
}
.navlink:hover { color: var(--ink); background: #e5eaef; }
.navmore-mobile { display: none; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.head-account { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- hero, matching .headline/.subhead/.pitch/.kicker ---------- */
.hero { padding: 36px 0 30px; max-width: 850px; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
}
h1 {
  /* Exact .headline values (app.css) — not an invented larger scale. */
  font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1;
  letter-spacing: -.015em; margin: 14px 0 8px; color: var(--ink);
}
.intro {
  /* Exact .subhead values (app.css) — this line plays the same role a
     subhead does elsewhere on the site, so it gets the same size/color,
     not a bigger invented one. */
  font-size: 14.5px; font-weight: 400; color: var(--muted); padding-top: 5px;
  max-width: 62ch; text-wrap: pretty; margin: 0 0 6px;
}
.basis, .coverage, .checked, .pricebasis { font-size: 12.5px; color: var(--faint); }

/* ---------- filters, matching .shipcontrols/.ctl: a bare row of pill
   selects, no wrapping card and no separate visible label above each one
   (the real site relies on the select's own current-value text) — labels
   stay in the DOM for screen readers only. ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
/* The label WRAPS its select (implicit association, no for/id needed) —
   sr-only has to hide just the text span, not the label itself, or it
   clips the select nested inside it. */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
select {
  min-width: 160px; min-height: 44px;
  font-family: var(--sans); font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--ctl-border); border-radius: 11px;
  padding: 9px 28px 9px 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
  /* 16px, not the site's usual .ctl 14px: verified live (2026-09-05) that
     15px on THESE specific pages triggers iOS Safari's zoom-on-focus.
     A deliberate, documented exception, not an oversight. */
  font-size: 16px;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

/* ---------- result bar / status ---------- */
.resultbar { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
#status { font-size: 14px; font-weight: 500; color: var(--muted); }
.coverage { margin: 6px 0 20px; }

/* ---------- fare cards, matching .sailing / .cell-price ---------- */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fare {
  /* Exact .sailing/.shipcard values (app.css) — the real site's own
     "grid of priced items" card, not an invented variant. */
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(22, 32, 43, .05);
  padding: 18px 19px; display: flex; flex-direction: column; align-items: flex-start;
  transition: box-shadow .16s, border-color .16s, transform .16s;
}
.fare:hover { box-shadow: 0 10px 24px -14px rgba(22, 32, 43, .35); border-color: var(--ctl-border); }
.fare .eyebrow { margin-bottom: 10px; }
.fare h2 { font: 600 20px/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink); }
.fare p { margin: 3px 0; }
.itinerary { font-size: 13.5px; color: var(--muted); }
.fare .price {
  font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05;
  font-variant-numeric: tabular-nums; margin-top: 18px; color: var(--ink);
}
.details { font-size: 13px; color: var(--faint); }
.fare .checked { margin: 10px 0 16px; }
.fare a {
  margin-top: auto; align-self: stretch; text-align: center; text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 650; color: var(--ink);
  background: var(--amber); border-radius: 11px; padding: 10px 16px;
}
.fare a:hover { background: var(--amber-dark); }
button {
  font-family: var(--sans); font-size: 14.5px; font-weight: 650; color: var(--ghosttext);
  background: #fff; border: 1px solid var(--ctl-border); border-radius: 11px;
  padding: 10px 18px; cursor: pointer;
}
button:hover { border-color: var(--muted); }
.more { display: block; margin: 22px auto; }
button[hidden] { display: none; }

/* ---------- guide / long-form copy ---------- */
.guide { max-width: 780px; margin: 56px 0 30px; border-top: 1px solid var(--hair); padding-top: 26px; }
.guide h2 { font: 600 26px/1.25 var(--serif); color: var(--ink); margin: 0 0 12px; }
.guide p { color: var(--slate); margin: 0 0 14px; }

/* ---------- footer, matching .site-foot/.footinner/.footlinks ---------- */
footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); padding-bottom: 40px;
}
footer a { color: var(--faint); text-decoration: none; padding: 4px 8px; border-radius: 9px; }
footer a:hover { color: var(--ink); background: var(--paper); }
footer > a:first-child { font-family: var(--serif); font-weight: 500; color: var(--ink); padding: 0; }

@media (max-width: 720px) {
  main, footer { padding: 18px 20px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  /* Exact .head-inner mobile reflow (app.css): brand stays first, sign-in
     moves up next to it, nav wraps to its own full-width row below — not
     a plain vertical stack of everything. Same 720px breakpoint as the
     real site's own phone treatment (app.css), including hiding the
     wordmark and folding Routes/Ships into the mobile More select —
     verified live (2026-09-06) rather than assumed. */
  .head-inner { gap: 10px 12px; min-width: 0; }
  .brandname { display: none; }
  .head-right { order: 2; margin-left: auto; }
  .navwrap { order: 3; flex: 1 0 100%; min-width: 0; max-width: 100%; }
  .nav { width: 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; justify-content: space-between; overflow: visible; }
  .nav-routes, .nav-ships, .navmore-desktop { display: none; }
  .navmore-mobile { display: inline-flex; }
  .navlink { flex: none; white-space: nowrap; }
  .hero { padding: 20px 0 24px; }
  h1 { font-size: 24px; }
  .filters select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .results { grid-template-columns: 1fr; }
  .fare { padding: 20px; }
  .guide { margin-top: 40px; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
