/*
 * Aboard — guest portal stylesheet.
 * Brand: City & Sea family tokens (portal design.css + get-app precedent +
 * flagship site). Light theme only, deliberately: the house has one warm
 * light look and the page paints its own ground. Warm brown shadows, three
 * golds with strict roles, serif display over sans body, navy hero veils.
 */

:root {
  --navy: #1B2A4A;
  --navy-dark: #0F1A30;
  --navy-deep: #0F2A5C;
  --gold: #C8902E;
  --gold-bright: #E0A847;
  --gold-soft: #F5E9D3;
  --teal: #275F72;
  --paper: #FFFFFF;
  --cream: #FAF7F2;
  --cream-deep: #F0EBE0;
  --ink: #1A1614;
  --text: #2A2622;
  --text-soft: #6B6358;
  --text-faint: #9C9388;
  --line: #E5DFD3;
  --line-strong: #C9C0AE;
  --ok: #2E7D32;
  --ok-soft: #E8F5E9;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 17, 0.06);
  --shadow-md: 0 2px 8px rgba(43, 33, 17, 0.08), 0 1px 2px rgba(43, 33, 17, 0.04);
  --shadow-lg: 0 8px 24px rgba(43, 33, 17, 0.10), 0 2px 4px rgba(43, 33, 17, 0.04);
  --shadow-xl: 0 24px 64px rgba(43, 33, 17, 0.16), 0 4px 8px rgba(43, 33, 17, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--paper) 340px);
  background-color: var(--cream-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
::selection { background: var(--gold-soft); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--gold); }

.wrap { max-width: 700px; margin: 0 auto; padding: 0 18px; }

/* ---- Eyebrow ritual ---- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #F7F3E8;
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('/img/ship.webp') center 62% / cover no-repeat;
  transform: scale(1.06);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(9, 22, 48, 0.84) 0%,
    rgba(12, 30, 66, 0.58) 36%,
    rgba(15, 42, 92, 0.56) 64%,
    rgba(11, 25, 54, 0.92) 100%);
}
.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 144, 46, 0.34), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 20px 18px 26px;
  max-width: 700px;
  margin: 0 auto;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brandchip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  box-shadow: 0 4px 14px rgba(9, 22, 48, 0.35);
}
.brandchip img { width: 30px; height: 30px; display: block; }
.brandchip span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.brandchip span em { color: var(--gold); font-style: italic; font-weight: 400; }
.lang-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #F7F3E8;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.hero-eyebrow {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 144, 46, 0.16);
  border: 1px solid rgba(224, 168, 71, 0.35);
  color: #F0D9AC;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59E6A0;
  box-shadow: 0 0 0 0 rgba(89, 230, 160, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(89, 230, 160, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(89, 230, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(89, 230, 160, 0); }
}
.hero h1 {
  color: #FDFBF6;
  font-size: clamp(30px, 7.4vw, 44px);
  font-weight: 600;
  margin-top: 12px;
}
.hero .date-line {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(247, 243, 232, 0.85);
}
.hero .date-line strong { color: #F0D9AC; font-weight: 600; }

/* ---- Now / Next card ---- */
.nownext {
  position: relative;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.nn-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-l);
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.nn-card .nn-label {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F0D9AC;
  width: 92px;
}
.nn-card .nn-time {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FDFBF6;
}
.nn-card .nn-title { color: rgba(255, 255, 255, 0.94); font-weight: 500; }

/* ---- Sections ---- */
main { display: block; }
section.tabpane { display: none; }
section.tabpane.active { display: block; animation: rise 260ms var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.section-head { margin: 30px 0 14px; }
.section-head h2 { font-size: 27px; margin-top: 4px; }
.section-head .sub { color: var(--text-soft); font-size: 14px; margin-top: 6px; max-width: 46em; }

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.card + .card { margin-top: 12px; }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 13px 0 13px 16px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.timeline li.past { opacity: 0.5; }
.timeline li.current::after { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline li:first-child::before { top: 21px; }
.timeline li:last-child::before { bottom: auto; height: 21px; }
.timeline .t-time {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  padding-top: 1px;
}
.timeline .t-title { font-weight: 600; color: var(--ink); }
.timeline .t-detail { color: var(--text-soft); font-size: 13.5px; margin-top: 2px; max-width: 44em; }
.chips { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: 2px; }
.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--teal);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.opt { background: var(--gold-soft); color: #8A6415; border-color: #EAD9B4; }

/* kind accents */
.timeline li[data-kind="excursion"] .t-time { color: var(--teal); }
.timeline li[data-kind="show"] .t-time { color: var(--gold); }

/* ---- Announcements ---- */
.announce {
  border-inline-start: 3px solid var(--gold);
  background: var(--paper);
  border-radius: var(--r-m);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
.announce + .announce { margin-top: 10px; }
.announce.change { border-inline-start-color: var(--warn); }
.announce .a-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  gap: 10px;
}
.announce.change .a-meta .a-kind { color: var(--warn); }
.announce .a-title { font-weight: 700; color: var(--ink); margin-top: 4px; }
.announce .a-body { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; max-width: 46em; }

/* ---- Dining ---- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.hour-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
  text-align: center;
}
.hour-cell .h-meal { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.hour-cell .h-time { color: var(--text-soft); font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.menu-station { margin-top: 18px; }
.menu-station h3 {
  font-size: 19px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-soft);
}
.dish {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.dish:last-child { border-bottom: none; }
.dish .d-name { color: var(--ink); }
.dish .d-marks { flex: none; display: inline-flex; align-items: baseline; gap: 6px; }
.dish .d-all {
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.leaf {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 16px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.legend b { color: var(--navy); font-weight: 700; margin-right: 4px; }

/* ---- Voyage route ---- */
.route { margin: 6px 0 2px; }
.route svg { width: 100%; height: auto; display: block; }
.stop-list { list-style: none; margin: 14px 0 0; padding: 0; }
.stop-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 9px 0;
  align-items: baseline;
}
.stop-list .s-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  justify-self: center;
  position: relative;
  top: 1px;
}
.stop-list .s-name { font-weight: 700; color: var(--navy); }
.stop-list .s-note { color: var(--text-soft); font-size: 13.5px; }
.prog-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.prog-row:last-child { border-bottom: none; }
.prog-row .p-code {
  flex: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.prog-row .p-name { font-weight: 600; color: var(--ink); }
.prog-row .p-span { color: var(--text-soft); font-size: 13px; }
.dep-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.dep-list li {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  font-size: 13.5px;
  padding: 5px 0;
  break-inside: avoid;
}
.dep-list li strong { color: var(--navy); font-weight: 600; }

/* ---- Ship ---- */
.deck-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.deck-row:last-child { border-bottom: none; }
.deck-row .dk-name { font-weight: 700; color: var(--navy); }
.deck-row .dk-spaces { color: var(--text-soft); font-size: 13.5px; }
.az-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.az-item:last-child { border-bottom: none; }
.az-item .az-term { font-weight: 700; color: var(--navy); }
.az-item .az-body { color: var(--text-soft); font-size: 13.5px; margin-top: 3px; max-width: 46em; }

/* ---- Extras ---- */
.extra {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.extra:last-child { border-bottom: none; }
.extra .x-name { font-weight: 600; color: var(--ink); }
.extra .x-detail { color: var(--text-soft); font-size: 13px; margin-top: 2px; max-width: 40em; }
.extra .x-price {
  flex: none;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prep-list { list-style: none; margin: 0; padding: 0; }
.prep-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-soft);
  font-size: 13.5px;
}
.prep-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
}

/* ---- Contact ---- */
.contact-actions { display: grid; gap: 10px; margin-top: 12px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--r-m);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 120ms var(--ease), transform 120ms var(--ease);
  cursor: pointer;
}
.btn:active { transform: scale(0.985); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #231703;
  box-shadow: 0 10px 26px rgba(200, 144, 46, 0.35);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--cream-deep); }

/* ---- Meta rows / notes ---- */
.note-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text-faint);
  font-size: 12.5px;
  margin-top: 14px;
}
.badge-preview {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---- Footer ---- */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 22px 18px calc(26px + env(safe-area-inset-bottom, 0px));
}
footer .f-inner { max-width: 700px; margin: 0 auto; text-align: center; }
footer img { height: 74px; width: auto; margin-bottom: 8px; }
footer .f-line { color: var(--text-faint); font-size: 12px; max-width: 44em; margin: 0 auto; }

/* ---- Bottom tab bar ---- */
nav.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar-inner {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: var(--nav-h);
}
.tabbar button {
  appearance: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 44px;
  padding: 0;
}
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tabbar button.active { color: var(--navy); }
.tabbar button.active svg { stroke: var(--gold); }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Wider screens ---- */
@media (min-width: 760px) {
  .hero { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .hero-inner { padding: 26px 18px 34px; }
  .dep-list { columns: 3; }
}

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px dashed var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 26px 13px 0;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  min-height: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  transition: transform 160ms var(--ease);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-a {
  color: var(--text-soft);
  font-size: 13.5px;
  padding: 0 0 14px;
  max-width: 46em;
}

/* ---- Group pill + chooser ---- */
.group-pill {
  appearance: none;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(224, 168, 71, 0.5);
  background: rgba(200, 144, 46, 0.16);
  color: #F0D9AC;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.group-pill:hover { background: rgba(200, 144, 46, 0.28); }
.chip.grp { background: var(--gold-soft); color: #6E5316; border-color: #EAD9B4; }
.toggle-groups {
  appearance: none;
  background: none;
  border: none;
  border-top: 1px dashed var(--line);
  width: 100%;
  margin-top: 10px;
  padding: 12px 0 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  min-height: 44px;
}
.chooser-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 26, 48, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: rise 200ms var(--ease);
}
.chooser-card {
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 700px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 9px;
}
.chooser-sub { color: var(--text-soft); font-size: 13.5px; margin-bottom: 6px; }
.chooser-item {
  appearance: none;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 48px;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.chooser-item:hover { border-color: var(--gold); background: var(--cream); }
.chooser-item.active { border-color: var(--gold); background: var(--gold-soft); }
.chooser-item.ghost { color: var(--text-soft); font-weight: 500; }
@media (min-width: 760px) {
  .chooser-backdrop { align-items: center; }
  .chooser-card { border-radius: 18px; }
}
