/* tasks/067 + tasks/070 — the no-login public speedboat-booking surface.
   A full-page booking-engine site (Escape structure, HotelOS light+teal skin) built
   ONLY on os-ds tokens (no raw hex) + os-* component classes. Every class here is
   hos-pb-* scoped: the tasks/070 rebuild replaced the shared-class overloading that
   leaked the landing's layout into the wizard pages. Search-widget field sizing lives
   under .hos-pb-searchw; form fields (.hos-pb-field) are plain stacked labels that never grow. */

/* ---- full-page site shell ---- */
/* Display-type sizes for the consumer hero + section headers. The os-ds UI scale
   tops out at --text-3xl (28px); a booking-engine hero is deliberately larger, so
   these fluid display steps are declared as local tokens (referenced via var, kept
   off the UI type scale on purpose — tasks/070). */
.hos-pb-body {
  background: var(--canvas);
  --pb-display-hero: clamp(34px, 5vw, 54px);
  --pb-display-lead: clamp(16px, 2vw, 20px);
  --pb-display-xl: clamp(26px, 3.4vw, 32px);
}
.hos-pb-site { min-height: 100vh; display: flex; flex-direction: column; }
.hos-pb-main { flex: 1 0 auto; }
.hos-pb-container { width: min(1080px, 100%); margin-inline: auto; padding-inline: var(--space-6); }
.hos-pb-container--narrow { max-width: 760px; }
.hos-pb-page { padding-block: var(--space-8); }
.hos-pb-flash-slot { padding-top: var(--space-5); }

.hos-pb-topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.hos-pb-topbar-inner {
  width: min(1080px, 100%); margin-inline: auto; padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.hos-pb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hos-pb-brand-icon { color: var(--accent); }
.hos-pb-brand-lockup { display: flex; flex-direction: column; line-height: 1.1; }
.hos-pb-brand-name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.hos-pb-brand-sub { font-family: var(--font-mono); color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; }
.hos-pb-nav { display: flex; gap: var(--space-5); }
.hos-pb-nav-link { font-size: var(--text-sm); color: var(--muted); text-decoration: none; }
.hos-pb-nav-link:hover { color: var(--accent); }

.hos-pb-footer { flex-shrink: 0; margin-top: var(--space-12); border-top: 1px solid var(--hairline); background: var(--surface); }
.hos-pb-footer-inner { width: min(1080px, 100%); margin-inline: auto; padding: var(--space-8) var(--space-6);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.hos-pb-footer-brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.hos-pb-footer-name { font-family: var(--font-display); font-size: var(--text-base); color: var(--ink); }
.hos-pb-footer-place { font-size: var(--text-xs); color: var(--muted); }
.hos-pb-footer-trust { flex: 1 1 240px; font-size: var(--text-xs); color: var(--text-muted); margin: 0; text-align: center; }
.hos-pb-footer-links { display: flex; gap: var(--space-4); }
.hos-pb-footer-link { font-size: var(--text-sm); color: var(--muted); text-decoration: none; }
.hos-pb-footer-link:hover { color: var(--accent); }
.hos-pb-footer-legal { font-size: var(--text-2xs); color: var(--muted); }

/* ---- flash ---- */
.hos-pb-flash { margin-bottom: 14px; padding: 9px 12px; border-radius: var(--radius-md); font-size: var(--text-sm); }
.hos-pb-flash--ok  { background: var(--green-50); color: var(--green-600); border: 1px solid var(--green-100); }
.hos-pb-flash--err { background: var(--red-50);   color: var(--red-600);   border: 1px solid var(--red-100); }

/* ---- landing hero (Escape composition, light + teal) ---- */
.hos-pb-hero { position: relative; overflow: hidden; text-align: center; padding: 40px 0 4px;
  background: radial-gradient(120% 100% at 50% -10%, var(--teal-50), var(--canvas) 60%); }
.hos-pb-hero-inner { width: min(880px, 100%); margin-inline: auto; padding-inline: var(--space-6); }
.hos-pb-hero-title { font-family: var(--font-display); font-size: var(--pb-display-hero); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 800; color: var(--ink); margin: 0 0 14px; text-wrap: balance; }
.hos-pb-hero-title .hos-pb-ac { color: var(--accent); }
/* .hos-pb-hero prefix beats the DS's `.arena-ds p { margin:0 }` (0,1,1), which was
   zeroing margin-inline:auto and leaving the lead left-aligned instead of centered. */
.hos-pb-hero .hos-pb-hero-lead { font-size: var(--pb-display-lead); line-height: 1.5; color: var(--muted); max-width: 34ch; margin-inline: auto; }

/* ---- Escape-style search widget ---- */
.hos-pb-searchw { position: relative; z-index: 2; margin: 36px auto 0; width: min(1000px, 100%);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-float); }
.hos-pb-searchw-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.hos-pb-fromto { display: flex; align-items: flex-end; gap: 8px; flex: 2 1 340px; }
.hos-pb-fromto .hos-pb-field { flex: 1; min-width: 0; }
.hos-pb-swap { flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius-md); border: 1px solid var(--hairline);
  background: var(--surface); color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hos-pb-swap:hover { background: var(--accent-softer); border-color: var(--accent-border); }
.hos-pb-searchw .hos-pb-field--date { flex: 1 1 150px; }
/* Every search control is pinned to one height so the swap box + stepper + button
   line up with the selects/date (the gem's os-input rendered ~41px, they were 46px). */
.hos-pb-searchw .os-input { height: 42px; }
.hos-pb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; height: 42px; }
.hos-pb-stepper button { width: 42px; height: 100%; border: 0; background: var(--surface); color: var(--ink); font-size: var(--text-xl); cursor: pointer; }
.hos-pb-stepper button:hover { background: var(--slate-50); color: var(--accent); }
.hos-pb-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.hos-pb-stepper-n { min-width: 38px; text-align: center; font-size: var(--text-base); font-variant-numeric: tabular-nums; }
.hos-pb-searchw-go { min-height: 42px; height: 42px; flex: 0 0 auto; min-width: 132px; }

/* ---- fields (plain stacked labels — never flex-grow; reused on every form) ---- */
.hos-pb-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hos-pb-field-label { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- sections ---- */
.hos-pb-section { margin-top: var(--space-10); }
.hos-pb-sec-head { margin-bottom: var(--space-5); }
.hos-pb-sec-head--center { text-align: center; }
.hos-pb-sec-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--ink); margin: 0; }
.hos-pb-sec-title--xl { font-size: var(--pb-display-xl); font-weight: 800; letter-spacing: -0.02em; }
.hos-pb-sec-sub { font-size: var(--text-sm); color: var(--text-muted); margin: 6px 0 0; }

/* ---- departures grid + run cards (results, inline under the search) ---- */
.hos-pb-results { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .hos-pb-results { grid-template-columns: 1fr 1fr; } }
.hos-pb-run { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.hos-pb-run:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); transform: translateY(-1px); }
.hos-pb-run-time { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hos-pb-run-main { flex: 1; min-width: 0; }
.hos-pb-run-title { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.hos-pb-run-meta { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.hos-pb-run-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hos-pb-run-seats { font-size: var(--text-2xs); font-weight: 600; color: var(--accent-strong); background: var(--accent-softer); padding: 2px 8px; border-radius: var(--radius-pill); }
.hos-pb-run-seats--low { color: var(--red-600); background: var(--red-50); }
.hos-pb-run-seats--full { color: var(--muted); background: var(--slate-50); }
.hos-pb-run--full { opacity: 0.6; }
.hos-pb-run--full:hover { box-shadow: var(--shadow-xs); border-color: var(--hairline); transform: none; }

.hos-pb-empty { grid-column: 1 / -1; padding: var(--space-10); text-align: center;
  background: var(--surface); border: 1px dashed var(--hairline); border-radius: var(--radius-lg); }
.hos-pb-empty-icon { color: var(--muted); }
.hos-pb-empty-text { font-size: var(--text-sm); color: var(--text-muted); margin: var(--space-2) 0 0; }

/* ---- how it works ---- */
.hos-pb-how { margin-top: var(--space-12); margin-bottom: var(--space-12); }
.hos-pb-how-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 640px) { .hos-pb-how-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .hos-pb-how-list { grid-template-columns: repeat(4, 1fr); } }
.hos-pb-how-step { display: flex; flex-direction: column; gap: 4px; }
.hos-pb-how-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: var(--space-2);
  border-radius: var(--radius-pill); font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); color: var(--accent-strong); background: var(--accent-softer); }
.hos-pb-how-title { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.hos-pb-how-text { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }

/* ---- inner-screen summary band + two-column layout ---- */
.hos-pb-band { background: linear-gradient(155deg, var(--accent), var(--accent-strong)); color: var(--surface); padding: 22px 0; }
.hos-pb-band-inner { width: min(1080px, 100%); margin-inline: auto; padding-inline: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* .hos-pb-band prefix beats the DS's `.arena-ds a` accent link colour (0,1,1) so the
   back link is white on the teal band, not teal-on-teal (invisible). */
.hos-pb-band .hos-pb-band-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--surface); opacity: .85; text-decoration: none; }
.hos-pb-band .hos-pb-band-back:hover { opacity: 1; color: var(--surface); }
/* title is an <h1>, so it MUST set its own color — the base heading layer would
   otherwise paint it --ink (dark) on the teal band. */
.hos-pb-band-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin: 0; letter-spacing: -0.01em; color: var(--surface); }
.hos-pb-band-sub { font-size: var(--text-xs); opacity: .9; font-family: var(--font-mono); color: var(--surface); }
.hos-pb-cols { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-8); align-items: start; }
@media (min-width: 860px) { .hos-pb-cols { grid-template-columns: minmax(0, 1fr) 320px; } }
.hos-pb-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--space-4); }
.hos-pb-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-xs); }
.hos-pb-panel-title { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--space-4); }

/* ---- travellers ---- */
.hos-pb-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.hos-pb-trav-hint { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 12px; }
/* Rows auto-number via a CSS counter, so add/remove re-numbers with no JS. */
.hos-pb-party { display: flex; flex-direction: column; gap: 10px; counter-reset: trav; }
.hos-pb-party-row {
  counter-increment: trav;
  display: grid; align-items: center; gap: 8px 10px;
  grid-template-columns: 28px 1fr 34px;
  grid-template-areas: "num name rm" "num id id" "num type type";
  padding: 12px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface);
}
@media (min-width: 700px) {
  .hos-pb-party-row {
    grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1.1fr) 132px 34px;
    grid-template-areas: "num name id type rm";
    padding: 10px 12px;
  }
}
.hos-pb-trav-num { grid-area: num; align-self: center; justify-self: center;
  width: 24px; height: 24px; border-radius: var(--radius-pill);
  background: var(--accent-softer); color: var(--accent-strong);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.hos-pb-trav-num::before { content: counter(trav); }
.hos-pb-trav-name { grid-area: name; }
.hos-pb-trav-id { grid-area: id; }
.hos-pb-trav-type { grid-area: type; width: 100%; }
.hos-pb-trav-rm { grid-area: rm; justify-self: end; width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--slate-50); color: var(--muted); border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.hos-pb-trav-rm:hover { color: var(--red-600); background: var(--red-50); }
.hos-pb-party-add { align-self: flex-start; margin-top: 12px; }

.hos-pb-fare-line { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); color: var(--text-muted); padding: 5px 0; }
.hos-pb-fare-per { color: var(--ink); }
.hos-pb-fare-note { font-size: var(--text-xs); color: var(--muted); }
.hos-pb-fare-grand { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-lg); font-weight: 700; color: var(--ink);
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.hos-pb-fare-total { font-family: var(--font-mono); }
.hos-pb-rail-hint { font-size: var(--text-xs); color: var(--muted); margin: 6px 0 0; line-height: 1.4; }

/* ---- ticket / boarding pass ---- */
.hos-pb-bpass { display: flex; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-float);
  border-top: 4px solid var(--accent); position: relative; margin: 8px 0; }
.hos-pb-bpass--awaiting { border-top-color: var(--slate-300); }
.hos-pb-bpass--cancelled { border-top-color: var(--slate-200); opacity: .9; }
.hos-pb-bpass-main { flex: 1; min-width: 0; padding: 28px 30px; }
.hos-pb-bpass-stub { flex: 0 0 210px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; border-left: 2px dashed var(--hairline); position: relative; }
.hos-pb-bpass-stub::before, .hos-pb-bpass-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--canvas); }
.hos-pb-bpass-stub::before { top: -15px; } .hos-pb-bpass-stub::after { bottom: -15px; }
.hos-pb-bp-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hos-pb-bp-ref { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.hos-pb-bp-route { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.hos-pb-bp-node { text-align: center; }
.hos-pb-bp-code { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); letter-spacing: .06em; }
.hos-pb-bp-place { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
.hos-pb-bp-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 11px); position: relative; }
.hos-pb-bp-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--surface); color: var(--accent); padding: 0 8px; display: inline-flex; align-items: center; }
.hos-pb-bp-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 16px 28px; margin-top: 20px; }
.hos-pb-bp-k { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hos-pb-bp-v { font-size: var(--text-base); font-weight: 600; margin-top: 2px; }
.hos-pb-bp-pax { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.hos-pb-bp-paxrow { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); padding: 3px 0; }
.hos-pb-bp-paid { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.hos-pb-bp-amt { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 700; }
.hos-pb-bp-via { font-size: var(--text-xs); color: var(--muted); }
.hos-pb-qr { width: 118px; height: 118px; border-radius: var(--radius-md); border: 1px solid var(--hairline); background-color: var(--surface);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hos-pb-qr svg { width: 100%; height: 100%; display: block; }
.hos-pb-bp-stub-label { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hos-pb-bp-stub-ref { font-family: var(--font-mono); font-size: var(--text-base); font-weight: 700; letter-spacing: .06em; }
.hos-pb-bp-stub-note { font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 640px) {
  .hos-pb-bpass { flex-direction: column; }
  .hos-pb-bpass-stub { flex: 0 0 auto; border-left: 0; border-top: 2px dashed var(--hairline); }
  .hos-pb-bpass-stub::before { top: -11px; left: -15px; }
  .hos-pb-bpass-stub::after { top: -11px; left: auto; right: -15px; bottom: auto; }
  .hos-pb-bp-grid { grid-template-columns: repeat(2, auto); }
}

/* ---- status pills (ticket + traveller types) ---- */
.hos-pb-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); }
.hos-pb-pill--await { background: var(--surface-alt); color: var(--text-secondary); }
.hos-pb-pill--confirm { background: var(--green-50); color: var(--green-600); }
.hos-pb-pill--teal { background: var(--accent-softer); color: var(--accent-strong); }

/* ---- shared text + simple forms (find / trips / unavailable) ---- */
.hos-pb-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.hos-pb-title--sm { font-size: var(--text-lg); }
.hos-pb-lead { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.hos-pb-form { display: flex; flex-direction: column; gap: 14px; }
.hos-pb-actions { display: flex; gap: 10px; align-items: center; }
.hos-pb-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.hos-pb-unavailable-icon { color: var(--muted); margin-bottom: 10px; }
.hos-pb-hidden { display: none !important; }

/* ---- tasks/070 Phase 2: placeholder BML checkout + ticket pay CTA ---- */
.hos-pb-paycard { max-width: 460px; margin: 24px auto; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.hos-pb-pay-flag { font-size: var(--text-xs); color: var(--text-secondary); background: var(--surface-alt);
  border: 1px dashed var(--hairline); border-radius: var(--radius-md); padding: 8px 12px; margin-bottom: 18px; text-align: center; }
.hos-pb-pay-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hos-pb-pay-bank { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--ink); }
.hos-pb-pay-amt { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: 12px 0 18px; }
.hos-pb-pay-amt-k { font-size: var(--text-sm); color: var(--muted); }
.hos-pb-pay-amt-v { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 700; color: var(--ink); }
.hos-pb-pay-lines { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.hos-pb-pay-lines div { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.hos-pb-pay-lines dt { color: var(--muted); margin: 0; }
.hos-pb-pay-lines dd { margin: 0; font-weight: 600; }
.hos-pb-pay-actions { display: flex; flex-direction: column; gap: 10px; }
.hos-pb-pay-actions .os-btn { width: 100%; justify-content: center; }
.hos-pb-pay-note { font-size: var(--text-xs); color: var(--muted); margin: 16px 0 0; text-align: center; }
.hos-pb-bp-cta { display: inline-flex; margin-top: 16px; }
