/* ==========================================================================
   Nautika Marine — UI design system (HTML prototype)
   Tokens are taken from the Nautika poster set: Kapal navy, Suria yellow,
   Lagoon teal, Shallows aqua, cool Foam white, and life-jacket red for
   safety notices only.
   Type: Archivo (variable width: condensed for display + prices, normal
   for UI) and Caveat Brush for marker captions on photos only.
   ========================================================================== */

:root {
  /* Colour */
  --navy: #16285b;
  --navy-800: #1d3570;
  --navy-600: #2e58a8;
  --ink: #0e1a3a;
  --sun: #f7b500;
  --sun-600: #dc9f00;
  --sun-100: #fff3cf;
  --lagoon: #0e8c9b;
  --lagoon-700: #0a6f7b;
  --shallows: #bfe8ea;
  --shallows-50: #e7f6f7;
  --foam: #f2f7f9;
  --white: #ffffff;
  --vest: #e0362c;
  --vest-50: #fdecea;
  --kelp: #2f7d5b;
  --kelp-50: #e5f3ec;
  --sand: #f2e3bf;
  --line: #d6e2e9;
  --line-strong: #b8c9d4;
  --muted: #56667f;
  --whatsapp: #1fa855;

  /* Type */
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-marker: "Caveat Brush", "Segoe Print", cursive;
  --font-logo: "Cinzel", "Times New Roman", serif;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-base: 1rem;    /* 16 */
  --fs-md: 1.125rem;  /* 18 */
  --fs-lg: 1.3125rem; /* 21 */
  --fs-xl: 1.5rem;    /* 24 */
  --fs-2xl: 2.25rem;  /* 36 */
  --fs-3xl: 3rem;     /* 48 */
  --fs-4xl: 3.75rem;  /* 60 */
  --fs-5xl: 4.5rem;   /* 72 */

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Radius: hierarchy, not one radius for everything */
  --r-xs: 4px;    /* chips, table tags */
  --r-sm: 8px;    /* inputs */
  --r-md: 14px;   /* panels */
  --r-lg: 24px;   /* hero media, sheets */
  --r-pill: 999px;/* buttons, status pills */

  --shadow-photo: 0 1px 2px rgba(14, 26, 58, .18), 0 10px 24px -8px rgba(14, 26, 58, .35);
  --shadow-float: 0 18px 40px -18px rgba(14, 26, 58, .45);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--navy-600);

  --wrap: 1200px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--foam);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy); font-weight: 750; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
[hidden] { display: none !important; }
.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-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--sun); color: var(--navy); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); font-weight: 700; }
.skip-link:focus { top: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Type helpers ---------- */
.display {
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  line-height: .92;
  letter-spacing: -.005em;
  color: var(--navy);
}
.condensed { font-variation-settings: "wdth" 75; font-stretch: 75%; }
.marker { font-family: var(--font-marker); font-weight: 400; letter-spacing: .01em; }
.lede { font-size: var(--fs-md); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.price {
  font-variation-settings: "wdth" 70;
  font-stretch: 70%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  line-height: 1;
}
.price .cur { font-size: .55em; margin-right: .08em; vertical-align: .38em; font-weight: 700; }
.price .cents { font-size: .5em; vertical-align: .62em; margin-left: .04em; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s-20); }
.section--tight { padding-block: var(--s-12); }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-8); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding-block: var(--s-12); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--fs-base); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { color: var(--btn-fg); border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--navy); --btn-bd: var(--sun); }
.btn--sun:hover { --btn-bg: var(--sun-600); border-color: var(--sun-600); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--shallows-50); border-color: transparent; }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: var(--white); --btn-bd: var(--whatsapp); }
.btn--whatsapp:hover { --btn-bg: #188f48; border-color: #188f48; }
.btn--danger { --btn-bg: var(--white); --btn-fg: var(--vest); --btn-bd: #f1b3ae; }
.btn--sm { min-height: 34px; padding: 0 var(--s-3); font-size: var(--fs-sm); }
.btn--lg { min-height: 54px; padding: 0 var(--s-8); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--navy); }
.icon-btn:hover { background: var(--shallows-50); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Icons (inline SVG sprite usage: <svg class="i"><use href="#i-x"/></svg>) ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }

/* ---------- Brand lockup ---------- */
/* The official logo: emblem (sail, circle, waves) beside the NAUTIKA / MARINE SDN. BHD. wordmark. */
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--navy); flex: none; }
.brand__emblem { height: 46px; width: auto; }
.brand__wordmark { height: 32px; width: auto; }
.brand--light { color: var(--white); }
.app-side .brand__emblem { height: 38px; }
.app-side .brand__wordmark { height: 26px; }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 72px; }
.site-nav { display: flex; gap: var(--s-1); }
.site-nav a { padding: var(--s-2) 10px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.site-nav a:hover { background: var(--shallows-50); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--shallows-50); }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.menu-btn { display: none; }
/* The six menu items need about 1050px of bar (plus 32px page gutter); collapse to the menu button before they would squeeze. */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: grid; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); padding: var(--s-3) var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); margin: 0; box-shadow: var(--shadow-float); }
  .site-nav.is-open a { padding: var(--s-3); font-size: var(--fs-base); }
  .menu-btn { display: inline-grid; }
  .hide-md { display: none !important; }
}
@media (max-width: 520px) {
  .hide-sm { display: none !important; }
  .site-header .brand__emblem { height: 38px; }
  .site-header .brand__wordmark { height: 24px; }
}
/* Small phones (360px): logo, "Book a trip" and the menu button must fit on one line without sideways scroll. */
@media (max-width: 400px) {
  .site-header__bar { gap: var(--s-2); }
  .site-header .brand { gap: 6px; }
  .site-header .brand__emblem { height: 32px; }
  .site-header .brand__wordmark { height: 19px; }
  .site-header__end { gap: var(--s-1); }
}

/* ---------- Sea status strip ---------- */
.sea-status { background: var(--navy); color: var(--white); font-size: var(--fs-sm); }
.sea-status .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 40px; flex-wrap: wrap; padding-block: 6px; }
.sea-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 4px rgba(95, 224, 160, .2); flex: none; }
.sea-status a { color: var(--sun); font-weight: 600; margin-left: auto; }
.sea-status--alert { background: var(--vest); }
.sea-status .wrap > * { transition: opacity .2s ease; }
/* Phones: the report reads as one compact paragraph (dot, text, link inline) so it doesn't take a fifth of the screen. */
@media (max-width: 600px) {
  .sea-status { font-size: var(--fs-xs); line-height: 1.45; }
  .sea-status .wrap { display: block; min-height: 0; padding-block: var(--s-2); }
  .sea-status__dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(95, 224, 160, .2); }
  .sea-status a { margin-left: 6px; white-space: nowrap; }
}
.sea-status.is-loading .wrap > * { opacity: 0; }
.sea-status--alert .sea-status__dot { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.sea-status--alert a { color: var(--white); }

/* ---------- Panels ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--sunk { background: var(--shallows-50); border-color: transparent; }
.panel--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.panel--navy h2, .panel--navy h3 { color: var(--white); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel__head h2, .panel__head h3 { font-size: var(--fs-md); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-5) 0; }

/* ---------- Polaroid (photos, after the poster collages) ---------- */
.polaroid {
  --tilt: 0deg;
  margin: 0; background: var(--white); padding: 8px 8px 0; border-radius: 3px;
  box-shadow: var(--shadow-photo); transform: rotate(var(--tilt)); position: relative;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1px; }
.polaroid figcaption { font-family: var(--font-marker); color: var(--navy); font-size: var(--fs-lg); text-align: center; padding: 4px 4px 8px; line-height: 1.1; }
.polaroid--plain { padding-bottom: 8px; }
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 78px; height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(242, 227, 191, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}

/* ---------- Brush label (package names on photos, like the poster banners) ---------- */
.brush-label { position: relative; display: inline-block; padding: 6px 22px 7px 16px; color: var(--white); font-weight: 800; font-style: italic; font-variation-settings: "wdth" 72; font-stretch: 72%; font-size: var(--fs-lg); line-height: 1.1; isolation: isolate; }
.brush-label::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); -webkit-mask: url("../img/brush.svg") center / 100% 100% no-repeat; mask: url("../img/brush.svg") center / 100% 100% no-repeat; }
.brush-label--sun { color: var(--navy); }
.brush-label--sun::before { background: var(--sun); }
.brush-label--lagoon::before { background: var(--lagoon-700); }

/* ---------- Chips, pills, tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--shallows-50); color: var(--navy); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.chip .i { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; background: #eef2f6; color: var(--muted); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--paid, .pill--ok { background: var(--kelp-50); color: #1e6a49; }
.pill--deposit, .pill--warn { background: var(--sun-100); color: #8a5a00; }
.pill--unpaid, .pill--danger { background: var(--vest-50); color: #b52219; }
.pill--info { background: var(--shallows-50); color: var(--lagoon-700); }
.pill--navy { background: var(--navy); color: var(--white); }
.tag { display: inline-block; padding: 1px 6px; border-radius: var(--r-xs); background: #eef2f6; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); color: #b52219; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(46, 88, 168, .2); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--vest); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316285b' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }

/* Segmented control */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); }
/* A row of .seg options scrolls sideways when it is wider than the screen. */
.seg-scroll { position: relative; max-width: 100%; overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: none; }
/* One line per option: on a phone the row scrolls sideways (.seg-scroll) instead of squeezing labels into circles. */
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 650; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; flex: none; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* Pax stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; }
.stepper + .stepper { border-top: 1px solid var(--line); }
.stepper__label strong { display: block; color: var(--navy); }
.stepper__label span { font-size: var(--fs-sm); color: var(--muted); }
.stepper__ctrl { display: inline-flex; align-items: center; gap: var(--s-3); }
.stepper__ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.stepper__ctrl button:hover { border-color: var(--navy); }
.stepper__ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.stepper__ctrl output { min-width: 2ch; text-align: center; font-weight: 800; font-size: var(--fs-md); color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- Steps (a real sequence: booking, build stages) ---------- */
.steps { display: flex; gap: var(--s-2); list-style: none; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 800; flex: none; background: var(--white); }
.steps li::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps li:last-child { flex: 0 0 auto; }
.steps li:last-child::after { display: none; }
.steps li.is-done { color: var(--navy); }
.steps li.is-done::before { content: "✓"; background: var(--lagoon); border-color: var(--lagoon); color: var(--white); }
.steps li.is-done::after { background: var(--lagoon); }
.steps li[aria-current="step"] { color: var(--navy); }
.steps li[aria-current="step"]::before { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (max-width: 640px) { .steps li span { display: none; } .steps li[aria-current="step"] span { display: inline; } }

/* ---------- Ticket shape (price stubs, e-ticket) ---------- */
.ticket {
  --notch: 12px; --notch-at: 68%;
  position: relative; background: var(--white); border-radius: var(--r-md);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--notch-at) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--notch-at) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at var(--notch-at) 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle var(--notch) at var(--notch-at) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 650; color: var(--muted); font-size: var(--fs-xs); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7fafc; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #f8fbfc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num, .table .t-right { text-align: right; }
.table a { font-weight: 650; color: var(--navy); text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-sm); background: var(--shallows-50); color: var(--ink); font-size: var(--fs-sm); }
.notice .i { color: var(--lagoon-700); margin-top: 1px; }
.notice--safety { background: var(--vest-50); }
.notice--safety .i { color: var(--vest); }
.notice--sun { background: var(--sun-100); }
.notice--sun .i { color: #8a5a00; }
.notice strong { color: var(--navy); }

/* ---------- Included-items list ---------- */
.incl { list-style: none; display: grid; gap: var(--s-2); }
.incl li { display: flex; gap: var(--s-2); align-items: center; }
.incl li .i { color: var(--lagoon); }
.incl--no li .i { color: var(--vest); }

/* ---------- Route chart (rendered by nautika.js) ---------- */
.chart { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #d7eef3; }
.chart svg { width: 100%; height: auto; }
.chart__route { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-dasharray: 7 7; stroke-linecap: round; }
.chart__route-trace { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; opacity: .55; }
.chart__label { font-family: var(--font-ui); font-size: 13px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: #e9f6f8; stroke-width: 4px; stroke-linejoin: round; }
.chart__label--dim { fill: #6d8aa0; font-weight: 600; font-size: 12px; }
.chart__sounding { font-family: var(--font-ui); font-size: 10px; fill: #7fa6b8; font-style: italic; }
.chart__stop circle { fill: var(--sun); stroke: var(--navy); stroke-width: 2; }
.chart__stop text { font-family: var(--font-ui); font-size: 11px; font-weight: 800; fill: var(--navy); text-anchor: middle; dominant-baseline: central; }
.chart__foot { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: #5f8296; }
.chart.is-drawing .chart__route-trace { animation: chart-draw 1.6s var(--ease-out) forwards; }
@keyframes chart-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

/* ---------- Site footer ---------- */
.site-footer { background: var(--navy); color: #c9d4ea; padding-block: var(--s-16) var(--s-8); font-size: var(--fs-sm); }
.site-footer h3 { color: var(--white); font-size: var(--fs-base); margin-bottom: var(--s-3); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer li a { display: inline-flex; align-items: center; gap: var(--s-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-10); }
.site-footer__base { margin-top: var(--s-12); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); color: #9fb0d1; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Floating WhatsApp (customer pages) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-float); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .wa-float { width: 48px; height: 48px; right: 12px; bottom: 12px; } .wa-float svg { width: 24px; height: 24px; } }

/* ==========================================================================
   Staff app shell (admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: #eef3f6; }
.app-side { background: var(--navy); color: #c9d4ea; padding: var(--s-5) var(--s-3); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-6); }
.app-side .brand { padding: 0 var(--s-2); }
.app-nav { display: grid; gap: 2px; }
.app-nav__group { font-size: var(--fs-xs); color: #8ea0c4; font-weight: 650; padding: var(--s-4) var(--s-3) var(--s-1); }
.app-nav a { display: flex; align-items: center; gap: var(--s-3); padding: 9px var(--s-3); border-radius: var(--r-sm); color: #dbe3f3; text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
.app-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.app-nav a[aria-current="page"] { background: rgba(247, 181, 0, .14); color: var(--sun); font-weight: 700; box-shadow: inset 3px 0 0 var(--sun); }
.app-nav a .count { margin-left: auto; background: var(--vest); color: var(--white); font-size: 11px; font-weight: 800; border-radius: var(--r-pill); padding: 0 7px; line-height: 18px; }
.app-side__foot { margin-top: auto; padding: var(--s-3); border-radius: var(--r-md); background: rgba(255, 255, 255, .06); font-size: var(--fs-xs); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-8); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 64px; }
.app-top__search { flex: 1; max-width: 420px; position: relative; }
.app-top__search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.app-top__search input { width: 100%; min-height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--foam); padding: 0 14px 0 38px; font-size: var(--fs-sm); }
.app-top__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lagoon); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); flex: none; }
.app-content { padding: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-2xl); }
.page-head p { color: var(--muted); }
/* A staff page the user's role doesn't open: only the no-access panel shows (nautika.js showNoAccess). */
.app-content.is-no-access > :not(.no-access) { display: none !important; }
.no-access { padding: var(--s-10) var(--s-6); display: grid; gap: var(--s-3); justify-items: center; text-align: center; }
.no-access h1 { font-size: var(--fs-xl); }
.no-access p { max-width: 52ch; color: var(--muted); }
.no-access__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-100); color: #8a5a00; }
.no-access__links { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.kpi__label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.kpi__value { font-size: var(--fs-2xl); margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 400px) { .kpi { padding: var(--s-3) var(--s-4); } .kpis .kpi__value { font-size: var(--fs-lg); } }
.kpi__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.kpi__meta .up { color: #1e6a49; font-weight: 700; }
.kpi__meta .down { color: #b52219; font-weight: 700; }
.app-menu-btn { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 60; transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--ease-out), visibility 0s linear .25s; }
  .app-side.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(14, 26, 58, .35); transition: transform .25s var(--ease-out), visibility 0s; }
  .app-menu-btn { display: inline-grid; }
  .app-top { padding: var(--s-3) var(--s-4); }
  .app-content { padding: var(--s-4); }
}
@media (max-width: 520px) { .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); } .kpi__value { font-size: var(--fs-xl); } .app-top__search { display: none; } .app-top__new span { display: none; } .app-top__new { padding: 0 10px; } }

/* Drawer (detail side sheet) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 26, 58, .35); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
/* Closed drawers are visibility:hidden (after the slide) so they leave the tab order. */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--white); z-index: 80; transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease-out), visibility 0s linear .28s; display: flex; flex-direction: column; box-shadow: var(--shadow-float); }
.drawer__head { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.drawer__body { padding: var(--s-6); overflow-y: auto; flex: 1; }
.drawer__foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); display: flex; gap: var(--s-3); justify-content: flex-end; flex-wrap: wrap; }
.is-drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.is-drawer-open .drawer { transform: none; visibility: visible; transition: transform .28s var(--ease-out), visibility 0s; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); z-index: 90; transition: transform .3s var(--ease-out); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-float); }
.toast.is-shown { transform: translate(-50%, 0); }
.toast .i { color: #5fe0a0; }

/* Billplz handoff (prototype stand-in for the redirect to the hosted checkout) */
.handoff { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--s-4); background: rgba(14, 26, 58, .62); }
.handoff__card { width: min(360px, 100%); display: grid; justify-items: center; gap: 6px; text-align: center; padding: var(--s-8) var(--s-6); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-float); }
.handoff__lock { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--shallows-50); color: var(--lagoon); margin-bottom: var(--s-2); }
.handoff__lock .i { width: 26px; height: 26px; }
.handoff__card strong { color: var(--navy); font-size: var(--fs-lg); }
.handoff__amount { font-weight: 800; color: var(--navy); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.handoff__via { color: var(--muted); font-size: var(--fs-sm); }
.handoff__card small { color: var(--muted); font-size: var(--fs-xs, .75rem); margin-top: var(--s-3); max-width: 30ch; }
.handoff__dots { display: flex; gap: 6px; margin-top: var(--s-3); }
.handoff__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); opacity: .3; animation: handoff-dot 1s infinite ease-in-out; }
.handoff__dots i:nth-child(2) { animation-delay: .15s; }
.handoff__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes handoff-dot { 40% { opacity: 1; translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .handoff__dots i { animation: none; opacity: .7; } }

/* "You pay on Billplz" note under pay buttons and in payment panels */
.pay-secure { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.pay-secure .i { color: var(--lagoon); flex: none; margin-top: 2px; }
.pay-secure strong { color: var(--navy); }

/* Receipt popup (assets/js/receipt.js): native <dialog> holding a paper-style receipt */
.rcpt-dialog { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--foam); color: var(--ink); box-shadow: var(--shadow-float); overflow: hidden; }
.rcpt-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.rcpt-dialog::backdrop { background: rgba(14, 26, 58, .55); }
html:has(.rcpt-dialog[open]) { overflow: hidden; }
.rcpt-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); background: var(--white); border-bottom: 1px solid var(--line); }
.rcpt-dialog__bar h2 { margin: 0; font-size: var(--fs-md); color: var(--navy); }
.rcpt-dialog__bar h2 span { color: var(--muted); font-weight: 500; }
.rcpt-dialog__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.rcpt-dialog__close:hover { background: var(--shallows-50); }
.rcpt-dialog__scroll { overflow: auto; overscroll-behavior: contain; padding: var(--s-5); }
.rcpt-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-2) var(--s-3); padding: var(--s-4) var(--s-5); background: var(--white); border-top: 1px solid var(--line); }
.rcpt-dialog__status { flex: 1 1 220px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.rcpt-dialog__buttons { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-left: auto; }
.rcpt-dialog__status:empty { display: none; }
.rcpt-dialog__status.is-error { color: var(--vest); font-weight: 600; }

.rcpt { display: grid; gap: var(--s-6); padding: var(--s-8); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.rcpt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4) var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.rcpt__brand { display: flex; align-items: flex-start; gap: var(--s-3); }
.rcpt__brand img { width: auto; height: 46px; flex: none; }
.rcpt__brand strong { display: block; color: var(--navy); font-size: var(--fs-md); }
.rcpt__brand span, .rcpt__doc span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.rcpt__doc { text-align: right; }
.rcpt__doc .rcpt__kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon); }
.rcpt__doc strong { display: block; color: var(--navy); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; line-height: 1.2; }
.rcpt__title { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.rcpt__title h3 { margin: 0; color: var(--navy); font-size: var(--fs-lg); }
.rcpt__stamp { flex: none; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rcpt__stamp--paid { background: var(--kelp-50); color: #1e6a49; }
.rcpt__stamp--refunded { background: var(--shallows-50); color: var(--lagoon-700); }
.rcpt__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); margin: 0; }
.rcpt__meta dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rcpt__meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.rcpt__lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rcpt__lines thead th { padding: var(--s-2) var(--s-3); background: var(--foam); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.rcpt__lines tbody th, .rcpt__lines tbody td { padding: var(--s-3); border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; vertical-align: top; }
.rcpt__lines tfoot th, .rcpt__lines tfoot td { padding: var(--s-3); border-top: 2px solid var(--navy); color: var(--navy); font-size: var(--fs-md); font-weight: 800; text-align: left; }
.rcpt__lines thead th:last-child, .rcpt__lines td { text-align: right !important; white-space: nowrap; }
.rcpt__summary { display: grid; gap: var(--s-2); margin: calc(-1 * var(--s-3)) 0 0; padding: 0 var(--s-3); font-size: var(--fs-sm); }
.rcpt__summary div { display: flex; justify-content: space-between; gap: var(--s-4); }
.rcpt__summary dt { color: var(--muted); }
.rcpt__summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcpt__refund { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--shallows-50); color: var(--lagoon-700); font-weight: 600; font-size: var(--fs-sm); }
.rcpt__refund .i { flex: none; margin-top: 1px; }
.rcpt__note { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.rcpt__foot { margin: 0; padding-top: var(--s-4); border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 560px) {
  .rcpt-dialog__scroll { padding: var(--s-3); }
  .rcpt { padding: var(--s-5) var(--s-4); gap: var(--s-5); }
  .rcpt__doc { text-align: left; }
  .rcpt__meta { grid-template-columns: minmax(0, 1fr); }
  .rcpt__title { flex-direction: column-reverse; gap: var(--s-2); }
  .rcpt-dialog__buttons { flex: 1 1 100%; }
  .rcpt-dialog__buttons .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .rcpt-dialog[open] { animation: rcpt-in .3s var(--ease-out); }
  .rcpt-dialog[open]::backdrop { animation: rcpt-fade .3s ease-out; }
}
@keyframes rcpt-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes rcpt-fade { from { opacity: 0; } }

/* Definition list (detail views) */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Progress bar */
.bar { height: 8px; border-radius: var(--r-pill); background: #e3ebf0; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--lagoon); }
.bar--sun > span { background: var(--sun); }
.bar--vest > span { background: var(--vest); }

/* ==========================================================================
   Motion (customer site)
   - Hidden start states only apply to classes that nautika.js adds, so the
     page stays fully visible if JS doesn't run.
   - prefers-reduced-motion: JS skips reveals, and the base rule above cuts
     every CSS animation and transition to an instant change.
   - Reveals use the individual `translate` / `rotate` / `scale` properties so
     they never fight an element's own `transform`.
   ========================================================================== */

/* Nav: sliding sun underline */
.site-nav a { position: relative; transition: background-color .2s, color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-out); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header { transition: box-shadow .3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 10px 28px -18px rgba(14, 26, 58, .45); }

/* Buttons and cards: lift on hover */
.btn--sun:hover, .btn--navy:hover, .btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(14, 26, 58, .6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.pkg-card { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.pkg-card__photo { overflow: hidden; }
.pkg-card__photo img { transition: transform .7s var(--ease-out); }
.pkg-card:hover .pkg-card__photo img { transform: scale(1.05); }

/* Polaroids straighten and lift when pointed at */
.polaroid { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 0 2px 4px rgba(14, 26, 58, .18), 0 24px 38px -14px rgba(14, 26, 58, .45); z-index: 3; }

/* Scroll and load reveals */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease-out), translate .85s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; translate: none; }
.polaroid.reveal { translate: 0 30px; rotate: -7deg; scale: .94; transition: opacity .6s var(--ease-out), translate 1s cubic-bezier(.2, 1.25, .35, 1), rotate 1s cubic-bezier(.2, 1.25, .35, 1), scale 1s cubic-bezier(.2, 1.25, .35, 1); transition-delay: var(--reveal-delay, 0ms); }
.polaroid.reveal.is-visible { translate: none; rotate: none; scale: none; }
.brush-label.reveal { opacity: 1; translate: none; clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.6, 0, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.brush-label.reveal.is-visible { clip-path: inset(0 0 0 0); }

/* Page title rises in word by word */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.split-word > span { display: inline-block; translate: 0 110%; animation: word-rise .9s var(--ease-out) forwards; animation-delay: calc(var(--w, 0) * 70ms + 60ms); }
@keyframes word-rise { to { translate: 0 0; } }

/* Live dots and the WhatsApp button */
.sea-status__dot { animation: dot-pulse 2.4s ease-out infinite; }
.sea-status--alert .sea-status__dot { animation-name: dot-pulse-light; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 224, 160, 0); } }
@keyframes dot-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.wa-float { animation: float-in .6s cubic-bezier(.2, 1.4, .4, 1) 1.2s backwards; transition: transform .25s var(--ease-out); }
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); opacity: 0; animation: wa-ring 2.6s ease-out 2.2s 3; pointer-events: none; }
@keyframes float-in { from { opacity: 0; transform: translateY(24px) scale(.4); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }

/* Route chart: stops pop in after the route draws, the jetty pulses, the route flows */
.chart__stop { transform-box: fill-box; transform-origin: center; }
.chart--animated:not(.is-drawing) .chart__stop { opacity: 0; }
.chart.is-drawing .chart__stop { animation: stop-pop .45s cubic-bezier(.2, 1.6, .4, 1) backwards; animation-delay: calc(.4s + var(--i, 0) * .14s); }
@keyframes stop-pop { from { opacity: 0; transform: scale(0); } }
.chart__pulse { fill: none; stroke: var(--sun); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: jetty-pulse 2.6s ease-out infinite; }
@keyframes jetty-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.chart__route { animation: route-flow 26s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -280; } }

/* ==========================================================================
   Ferry seat map (NM Express): rendered by Nautika.seatMapMarkup()
   ========================================================================== */
.seatmap { --seat: 44px; --seat-aisle: 22px; --seat-row: 26px; display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: flex-start; justify-content: center; }
.deck-block { display: grid; gap: var(--s-3); justify-items: center; }
.deck__head { text-align: center; display: grid; gap: 2px; max-width: 300px; }
.deck__head strong { color: var(--navy); }
.deck__head span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.deck { position: relative; background: var(--white); border: 2px solid var(--navy); border-radius: 50% 50% 26px 26px / 88px 88px 26px 26px; padding: 70px 16px 20px; }
.deck::before { content: "Bow"; position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.deck--sun { border-style: dashed; border-color: var(--lagoon); background: var(--shallows-50); }
.seat-grid { display: grid; gap: 6px; align-items: center; }
.seat-col, .seat-row { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.seat-row--exit { color: var(--vest); }
.seat { display: grid; place-items: center; width: var(--seat); height: calc(var(--seat) + 2px); padding: 0; border-radius: 9px 9px 5px 5px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--white); font-size: 12px; font-weight: 800; position: relative; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--ease-out); }
.seat::before { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--line); }
.seat:hover:not([aria-disabled="true"]) { border-color: var(--navy); transform: translateY(-1px); }
.seat:focus-visible { box-shadow: var(--focus); z-index: 1; border-radius: 9px 9px 5px 5px; }
.seat--extra::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.seat--priority { background: var(--sun-100); }
.seat--family { background: var(--shallows-50); }
.seat--exit { border-top: 3px solid var(--vest); }
.seat--taken { background: #e1e8ed; border-color: #e1e8ed; cursor: not-allowed; }
.seat--taken::before { background: #c6d1d9; }
.seat--blocked { background: repeating-linear-gradient(45deg, #eef2f5 0 4px, #d8e0e6 4px 8px); border-color: #d8e0e6; cursor: not-allowed; }
.seat--selected { background: var(--navy); border-color: var(--navy); color: var(--white); }
.seat--selected::before { background: var(--sun); }
.seat--booked { background: var(--shallows); border-color: #8fcfd5; color: var(--navy); }
.seat--checked { background: var(--kelp); border-color: var(--kelp); color: var(--white); }
.seat--checked::before { background: #8fd3b1; }
.seat--held { background: var(--sun-100); border-color: var(--sun); }
.seat-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.seat-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.seat-legend .seat { --seat: 20px; width: 20px; height: 22px; pointer-events: none; cursor: default; }
@media (max-width: 420px) {
  .seatmap { --seat: 40px; --seat-aisle: 16px; --seat-row: 20px; gap: var(--s-6); }
  .seat-grid { gap: 3px; }
  .deck { padding: 62px 10px 16px; }
}
.seat--just-picked { animation: seat-pop .42s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes seat-pop { 0% { scale: .55; } 60% { scale: 1.16; } 100% { scale: 1; } }

/* Staff sidebar: release version, and the warning when the catalog could not load. */
.app-side__foot { display: grid; gap: var(--s-1); }
.app-side__version { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.catalog-warning { margin: 0; padding: var(--s-2) var(--s-3); background: var(--sun, #f5b700); color: var(--ink, #0b1f33); text-align: center; font-weight: 600; }

/* ---------- Printing ---------- */
/* Pages print as documents: no site chrome, floating buttons or toasts. Pages add their own print rules on top. */
.print-only { display: none; }
@media print {
  .skip-link, .sea-status, .site-header, .site-footer, .wa-float, .toast { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}
