/*
 * Banana Island boats: one stylesheet for the customer and staff pages.
 * The palette follows the resort's own identity: the warm taupe of its logo,
 * deep sea blues, sand and a muted gold used only for fine details.
 */

:root {
  --sea-950: #08262d;
  --sea-900: #0d3640;
  --sea-800: #134652;
  --sea-700: #1d5d6a;
  --sea-500: #4b8e97;
  --sea-200: #bfd9da;
  --sea-100: #e2efee;
  --sea-50:  #f0f6f5;

  --sand-50:  #fbf8f3;
  --sand-100: #f5efe6;
  --sand-200: #ebe2d4;
  --sand-300: #ddd0bd;

  --taupe-600: #8a837e;   /* the logo */
  --taupe-700: #6c655f;
  --gold-500:  #b39563;   /* hairlines and small marks only, never body text */
  --gold-100:  #f3ead9;

  --ink-900: #1d2326;
  --ink-700: #3f4649;
  --ink-500: #6b6763;
  --line: #e6ddd0;
  --white: #ffffff;

  --ok-700: #276b4d;  --ok-100: #e3f2e9;
  --warn-700: #8a5a12; --warn-100: #fbf0db;
  --bad-700: #9b2c2c; --bad-100: #fbe6e6;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 54, 64, .05);
  --shadow: 0 1px 2px rgba(13, 54, 64, .04), 0 8px 28px rgba(13, 54, 64, .07);
  --shadow-lg: 0 2px 6px rgba(13, 54, 64, .06), 0 24px 60px rgba(13, 54, 64, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-ar: "Noto Naskh Arabic", "Geeza Pro", "Arabic Typesetting", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
figure { margin: 0; }
a { color: var(--sea-700); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; color: var(--ink-900); }
h1 { font: 600 2.1rem/1.08 var(--font-display); letter-spacing: -.005em; }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-700); }

/* Arabic alongside English */
[lang="ar"] { font-family: var(--font-ar); }
.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; color: var(--taupe-700); font-weight: 500; }
.ar-block { display: block; font-family: var(--font-ar); direction: rtl; text-align: right; color: var(--taupe-700); font-size: 1.02em; }

/* ---------- Buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--sea-900); color: var(--sand-50);
  font: 600 .86rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--sea-800); box-shadow: 0 6px 18px rgba(13, 54, 64, .22); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(179, 149, 99, .55); outline-offset: 2px;
}
.btn-block { width: 100%; }
.btn-secondary { background: transparent; color: var(--sea-900); border-color: var(--sand-300); }
.btn-secondary:hover { background: var(--white); box-shadow: none; }
.btn-sea { background: var(--sea-900); }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-700); margin-bottom: .4rem; }
.field > span .ar { text-transform: none; letter-spacing: 0; font-size: 1.05em; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink-900); font: 500 1rem var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover { border-color: var(--sand-300); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(179, 149, 99, .16); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236c655f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center;
}
.field select option { color: var(--ink-900); }
.field select option:disabled { color: #b7b0a5; }
.field [aria-invalid="true"] { border-color: var(--bad-700); }
.field-error { display: block; color: var(--bad-700); font-size: .84rem; margin-top: .35rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.alert { padding: .9rem 1.05rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; }
.alert-error { background: var(--bad-100); color: var(--bad-700); }
.alert-info { background: var(--sea-100); color: var(--sea-900); }
.alert-ok { background: var(--ok-100); color: var(--ok-700); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
@media (max-width: 520px) { .card { padding: 1.15rem; } }

/* ---------- Customer site: header ---------- */
.site-header { background: rgba(251, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header-inner { max-width: 1120px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.wordmark { display: flex; align-items: center; gap: .8rem; color: var(--taupe-700); text-decoration: none; margin-right: auto; }
.wordmark img { height: 34px; width: auto; display: block; }
.wordmark .words { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark strong { font: 600 1.12rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-700); }
.wordmark span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe-600); margin-top: .18rem; }
.site-header a.header-link { color: var(--taupe-700); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .55rem .9rem; border: 1px solid var(--sand-300); border-radius: 999px; transition: background .15s; white-space: nowrap; }
.site-header a.header-link:hover { background: var(--white); }
@media (max-width: 420px) { .wordmark span { display: none; } .wordmark strong { font-size: .95rem; letter-spacing: .08em; white-space: nowrap; } .wordmark img { height: 28px; } }

/* ---------- Home: hero and booking card ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%); overflow: hidden; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1rem 1.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 2.75rem 1rem 2.5rem; } }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.02; margin: .6rem 0 .5rem; color: var(--sea-900); }
.hero-copy h1 em { font-style: italic; color: var(--taupe-700); }
.hero-copy .ar-block { text-align: left; font-size: 1.25rem; color: var(--taupe-700); margin-bottom: 1rem; }
.hero-copy p.lead { font-size: 1.06rem; color: var(--ink-700); max-width: 46ch; }
.rule { width: 56px; height: 1px; background: var(--gold-500); border: 0; margin: 1.1rem 0; }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-700); }
.trust svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 350px); margin: 0 18px 18px 0; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-500); border-radius: 220px 220px 20px 20px; }
.hero-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 18px 18px; box-shadow: var(--shadow-lg); }
.hero-photo figcaption { position: relative; margin-top: 1.6rem; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-600); }
/* On phones the island photo becomes a band at the top, where it stays sharp. */
@media (max-width: 959px) {
  .hero-inner { padding-top: 0; gap: 1.25rem; }
  .hero-photo { order: -1; width: calc(100% + 2rem); margin: 0 -1rem; justify-self: stretch; }
  .hero-photo::before, .hero-photo figcaption { display: none; }
  .hero-photo img { aspect-ratio: auto; height: 260px; border-radius: 0 0 28px 28px; box-shadow: none; object-position: center 35%; }
  .hero-copy { text-align: left; }
}

.booking-section { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }
.booking-card { position: relative; border-top: 3px solid var(--sea-900); }
.booking-card .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.booking-card .card-head h2 { font: 600 1.6rem var(--font-display); margin: 0; color: var(--sea-900); }
.booking-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .booking-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; } }
.booking-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.booking-foot .fares { font-size: .9rem; color: var(--ink-500); }
.booking-foot .fares strong { color: var(--ink-900); }
@media (max-width: 899px) { .booking-foot .btn { width: 100%; } }

/* A date and a time for each direction */
.trip-leg { border: 0; padding: 0; margin: 0; min-width: 0; }
.trip-leg legend { padding: 0; margin-bottom: .75rem; font: 600 1.25rem var(--font-display); color: var(--sea-900); }
.trip-leg legend .ar { font-size: .85em; }
.trip-leg .leg-route { display: block; font: 500 .8rem var(--font); color: var(--ink-500); margin-top: .1rem; }
.trip-leg .form-grid.two { grid-template-columns: 1.25fr 1fr; }

/* Party counters */
.party-box h3 { font: 600 1.25rem var(--font-display); color: var(--sea-900); margin-bottom: .55rem; }
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.counter-row:last-of-type { border-bottom: 0; }
.counter-row .who strong { display: block; font-weight: 600; }
.counter-row .who span { font-size: .82rem; }
.counter { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.counter button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.3rem; color: var(--sea-900); cursor: pointer; border-radius: 999px; transition: background .15s; }
.counter button:hover { background: var(--sea-50); }
.counter button:disabled { color: var(--sand-300); cursor: default; background: none; }
.counter input { width: 2.4rem; border: 0; text-align: center; font: 600 1.05rem var(--font); background: none; color: var(--ink-900); -moz-appearance: textfield; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Teaser: what you can add */
.teaser { max-width: 1120px; margin: 0 auto; padding: 1rem 1rem 3.5rem; }
.section-head { text-align: center; margin-bottom: 1.75rem; }
.section-head h2 { font: 600 clamp(1.8rem, 3.6vw, 2.4rem) var(--font-display); color: var(--sea-900); margin: .4rem 0 .2rem; }
.section-head p { color: var(--ink-500); margin: 0 auto; max-width: 52ch; }
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.photo-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-200); box-shadow: var(--shadow-sm); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .cap { position: absolute; inset: auto 0 0 0; padding: 2.6rem .95rem .9rem; color: var(--white); background: linear-gradient(180deg, rgba(8, 38, 45, 0) 0%, rgba(8, 38, 45, .82) 100%); }
.photo-card .cap strong { display: block; font: 600 1.25rem/1.1 var(--font-display); }
.photo-card .cap span { font-size: .8rem; opacity: .85; }

.good-to-know { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3.5rem; }
.gtk { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gtk { grid-template-columns: repeat(3, 1fr); } }
.gtk div { padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.gtk svg { width: 26px; height: 26px; color: var(--gold-500); margin-bottom: .55rem; }
.gtk h3 { font: 600 1.2rem var(--font-display); color: var(--sea-900); margin-bottom: .25rem; }
.gtk p { margin: 0; color: var(--ink-700); font-size: .93rem; }

/* ---------- Booking steps ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 1.75rem 1rem 4rem; }
.page-narrow { max-width: 760px; }
.page-title { margin: .25rem 0 1.25rem; }
.page-title h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); color: var(--sea-900); margin-bottom: .1rem; }
.page-title .ar-block { text-align: left; }
.page-title p { margin-top: .5rem; }

.layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* Grid children default to their content's width; the day strip's long row would stretch the page. */
.layout > * { min-width: 0; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } .layout aside { position: sticky; top: 5.5rem; } }

/* Stepper */
.steps-wrap { margin-bottom: 1.5rem; }
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.steps li { flex: 1; min-width: 0; }
.steps .bar { display: block; height: 3px; border-radius: 3px; background: var(--sand-200); transition: background .3s var(--ease); }
.steps li.done .bar { background: var(--sea-500); }
.steps li.current .bar { background: var(--sea-900); }
.steps .label { display: block; margin-top: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.current .label { color: var(--sea-900); }
.steps-caption { display: none; margin: 0 0 .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-900); }
@media (max-width: 560px) { .steps-caption { display: block; } .steps .label { display: none; } }

/* Sailing choice cards */
.leg-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.leg-head:first-of-type { margin-top: .5rem; }
.leg-head h2 { margin: 0; font: 600 1.45rem var(--font-display); color: var(--sea-900); }
.route { color: var(--ink-500); font-size: .88rem; }
.options { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box {
  position: relative; display: block; padding: 1rem 1rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .2s var(--ease), transform .15s var(--ease);
}
.option:hover .box { border-color: var(--sand-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.option .time { display: block; font: 600 1.85rem/1 var(--font-display); color: var(--sea-900); }
.option .boat { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-top: .35rem; }
.option .seats { display: inline-block; margin-top: .65rem; font-size: .76rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px; background: var(--sea-50); color: var(--sea-700); }
.option .seats.few { background: var(--warn-100); color: var(--warn-700); }
.option .seats.none { background: var(--sand-100); color: var(--ink-500); }
.option input:checked + .box { border-color: var(--sea-900); background: var(--sea-50); box-shadow: 0 0 0 1px var(--sea-900) inset, var(--shadow); }
.option input:checked + .box::after {
  content: ""; position: absolute; top: .75rem; right: .75rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sea-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fbf8f3' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.option input:focus-visible + .box { outline: 3px solid rgba(179, 149, 99, .55); outline-offset: 2px; }
.option.unavailable { cursor: not-allowed; }
.option.unavailable .box { background: transparent; border-style: dashed; box-shadow: none; transform: none; }
.option.unavailable .time { color: var(--ink-500); opacity: .6; }
.empty { padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-500); }

/* Trip summary aside */
.summary { padding: 0; overflow: hidden; }
.summary-photo { display: block; width: 100%; height: 120px; object-fit: cover; }
.summary-body { padding: 1.15rem 1.25rem 1.25rem; }
.summary h3 { font: 600 1.3rem var(--font-display); color: var(--sea-900); margin-bottom: .8rem; }
.summary .leg { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.summary .leg:first-of-type { border-top: 0; padding-top: 0; }
.summary .tag { grid-row: span 2; align-self: start; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-900); background: var(--sea-100); padding: .25rem .5rem; border-radius: 6px; }
.summary .when { font-weight: 600; }
.summary .where { font-size: .84rem; color: var(--ink-500); }
.summary .party { margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-700); }
.summary .total-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.summary .total-line span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.summary .total-line strong { font: 600 1.5rem var(--font-display); color: var(--sea-900); }

/* Passenger rows */
.section-label { font: 600 1.35rem var(--font-display); color: var(--sea-900); margin: 0 0 .2rem; }
.passenger { padding: 1.1rem 0 .2rem; border-top: 1px solid var(--line); }
.passenger:first-of-type { border-top: 0; padding-top: .3rem; }
.passenger h3 { display: flex; gap: .55rem; align-items: center; font-size: .95rem; }
.passenger h3 .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sea-900); color: var(--sand-50); font-size: .78rem; }
.passenger h3 .kind { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); }

/* Add-ons as picture cards */
.category-title { display: flex; align-items: baseline; gap: .75rem; margin: 2rem 0 .9rem; font: 600 1.45rem var(--font-display); color: var(--sea-900); }
.category-title:first-child { margin-top: 0; }
.category-title .note { font: 500 .8rem var(--font); color: var(--ink-500); }
.addons-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .addons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addon-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .25s var(--ease); }
.addon-card:hover { box-shadow: var(--shadow); }
.addon-card.selected { border-color: var(--sea-900); box-shadow: 0 0 0 1px var(--sea-900) inset, var(--shadow); }
.addon-card .photo { position: relative; aspect-ratio: 16 / 10; background: var(--sand-200); overflow: hidden; }
.addon-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.addon-card:hover .photo img { transform: scale(1.03); }
.addon-card .badge { position: absolute; top: .7rem; left: .7rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px; background: rgba(251, 248, 243, .94); color: var(--warn-700); }
.addon-card .added { position: absolute; top: .7rem; right: .7rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: var(--sea-900); color: var(--sand-50); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease); }
.addon-card.selected .added { opacity: 1; transform: none; }
.addon-card .body { padding: 1rem 1.1rem .4rem; flex: 1; }
.addon-card .name { font: 600 1.35rem/1.15 var(--font-display); color: var(--sea-900); }
.addon-card .name-ar { font-family: var(--font-ar); color: var(--taupe-700); font-size: .95rem; margin-top: .1rem; }
.addon-card .desc { font-size: .88rem; color: var(--ink-700); margin: .45rem 0 0; }
.addon-card .foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem 1rem; }
.addon-card .price { font-weight: 600; color: var(--ink-900); }
.addon-card .price small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-500); }

/* Price breakdown */
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.lines .detail { display: block; font-size: .82rem; color: var(--ink-500); }
.lines tr.total td { border-bottom: 0; padding-top: 1rem; }
.lines tr.total td:first-child { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); vertical-align: bottom; }
.lines tr.total td:last-child { font: 600 2rem var(--font-display); color: var(--sea-900); }
.check { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0; padding: 1rem; background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--sea-900); flex: none; }

.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.actions .back { color: var(--ink-500); font-size: .9rem; }

/* Sticky total bar on phones */
.sticky-bar { display: none; }
@media (max-width: 959px) {
  .sticky-bar {
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13, 54, 64, .08);
  }
  .sticky-bar .sum { line-height: 1.15; min-width: 0; }
  .sticky-bar .sum span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
  .sticky-bar .sum strong { font: 600 1.45rem var(--font-display); color: var(--sea-900); white-space: nowrap; }
  .sticky-bar .btn { min-height: 46px; padding: .7rem 1.1rem; flex: none; }
  .has-sticky .actions .btn { display: none; }
  .has-sticky main { padding-bottom: 6.5rem; }
  .has-sticky .site-footer { padding-bottom: 7rem; }
}

/* ---------- Confirmation and boarding passes ---------- */
.confirm-head { text-align: center; padding: 1.5rem 1rem 1.75rem; }
.confirm-head .tick { width: 68px; height: 68px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sea-900); color: var(--sand-50); margin-bottom: 1rem; box-shadow: 0 0 0 8px var(--sea-100); animation: pop .5s var(--ease) both; }
.confirm-head .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); color: var(--sea-900); }
.confirm-head .ref-label { margin-top: 1rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.confirm-head .ref { display: inline-block; margin-top: .45rem; font: 600 1.6rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; padding: .7rem 1.1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--sea-900); }
.fade-up { animation: fadeUp .6s var(--ease) both; }
.fade-up.d1 { animation-delay: .1s; } .fade-up.d2 { animation-delay: .2s; } .fade-up.d3 { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.facts { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact .label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.fact .value { font: 600 1.3rem var(--font-display); color: var(--sea-900); }

.pass {
  position: relative; margin: 1.25rem 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(150deg, var(--sea-950) 0%, var(--sea-900) 55%, var(--sea-800) 100%);
  color: var(--sand-50); box-shadow: var(--shadow-lg); break-inside: avoid; page-break-inside: avoid;
}
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pass-top .brand { display: flex; align-items: center; gap: .7rem; }
.pass-top .brand img { height: 26px; width: auto; opacity: .9; }
.pass-top .t { font: 600 .74rem var(--font); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 248, 243, .82); }
.pass-top .ar { color: rgba(251, 248, 243, .7); font-weight: 400; }
.pass-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pass-body { grid-template-columns: 1fr 230px; } }
.pass-info { padding: 1.3rem 1.35rem 1.1rem; }
.pass-info .name { font: 600 1.9rem/1.08 var(--font-display); color: var(--white); }
.pass-info .meta { font-size: .8rem; letter-spacing: .06em; color: rgba(251, 248, 243, .66); margin-top: .3rem; }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: 1.3rem 0 .4rem; }
.pass-route .end .code { font: 600 1.1rem var(--font); letter-spacing: .12em; text-transform: uppercase; }
.pass-route .end .place { font-size: .74rem; color: rgba(251, 248, 243, .6); }
.pass-route .end:last-child { text-align: right; }
.pass-route .line { position: relative; width: 70px; height: 1px; background: rgba(179, 149, 99, .7); }
.pass-route .line::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.pass-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(255, 255, 255, .16); }
.pass-legs .label { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); }
.pass-legs .value { font: 600 1.25rem var(--font-display); color: var(--white); }
.pass-legs .sub { font-size: .78rem; color: rgba(251, 248, 243, .62); }
.pass-qr { position: relative; padding: 1.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pass-qr .qr-box { background: var(--white); padding: 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.pass-qr svg { width: 168px; height: 168px; display: block; }
.pass-qr .hint { font-size: .74rem; color: rgba(251, 248, 243, .7); margin-top: .7rem; max-width: 22ch; }
@media (min-width: 640px) {
  .pass-qr { border-left: 1px dashed rgba(255, 255, 255, .18); }
  .pass-qr::before, .pass-qr::after { content: ""; position: absolute; left: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--sand-50); }
  .pass-qr::before { top: -12px; } .pass-qr::after { bottom: -12px; }
}
@media (max-width: 639px) { .pass-qr { border-top: 1px dashed rgba(255, 255, 255, .18); } }
.pass-foot { grid-column: 1 / -1; padding: .85rem 1.35rem; font-size: .82rem; color: rgba(251, 248, 243, .78); background: rgba(0, 0, 0, .14); }
.pass-foot .ar-block { color: rgba(251, 248, 243, .7); }

.site-footer { border-top: 1px solid var(--line); background: var(--sand-100); }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 2rem 1rem 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--ink-500); }
.site-footer img { height: 54px; width: auto; opacity: .85; }
.site-footer .ar-block { text-align: left; }

@media print {
  .site-header, .site-footer, .no-print, .steps-wrap, .sticky-bar { display: none !important; }
  body { background: #fff; }
  .pass { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { padding: 0; }
}

/* ---------- Staff area ---------- */
.staff-body { background: #f4f1ec; }
.staff-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .staff-shell { grid-template-columns: 236px minmax(0, 1fr); } }
.side-nav { background: var(--sea-950); color: var(--sand-50); display: flex; flex-direction: column; gap: 1.5rem; padding: 1.1rem 1rem; }
@media (min-width: 1024px) { .side-nav { position: sticky; top: 0; height: 100vh; padding: 1.6rem 1.1rem; } }
.side-nav .brand { display: flex; align-items: center; gap: .7rem; color: var(--sand-50); text-decoration: none; }
.side-nav .brand img { height: 26px; width: auto; flex: none; }
.side-nav .brand strong { display: block; white-space: nowrap; font: 600 .92rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.side-nav .brand span { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 248, 243, .55); margin-top: .15rem; }
.side-nav nav { display: flex; gap: .3rem; flex-wrap: wrap; }
@media (min-width: 1024px) { .side-nav nav { flex-direction: column; } }
.side-nav nav a { display: flex; align-items: center; gap: .65rem; color: rgba(251, 248, 243, .72); text-decoration: none; padding: .6rem .8rem; border-radius: 10px; font-size: .92rem; font-weight: 500; transition: background .15s, color .15s; }
.side-nav nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side-nav nav a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.side-nav nav a[aria-current="page"] { background: rgba(179, 149, 99, .16); color: var(--white); box-shadow: inset 2px 0 0 var(--gold-500); }
.side-nav .who { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(251, 248, 243, .7); }
@media (max-width: 1023px) { .side-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; } .side-nav .brand { margin-right: auto; } .side-nav .who { margin-top: 0; padding-top: 0; border-top: 0; width: auto; } }
.side-nav form { margin: 0; }
.link-btn { background: none; border: 0; color: rgba(251, 248, 243, .85); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.staff-main { max-width: 1320px; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.staff-main h1 { font-size: 2.1rem; color: var(--sea-900); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; background: radial-gradient(1200px 600px at 20% 0%, var(--sea-800), var(--sea-950)); }
.auth-card { width: 100%; max-width: 420px; text-align: left; }
.auth-card .auth-brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.auth-card .auth-brand img { height: 92px; width: auto; }
.auth-card h1 { margin-bottom: .1rem; color: var(--sea-900); text-align: center; }
.auth-card .sub { text-align: center; margin-bottom: 1.25rem; }

/* ---------- Operations dashboard ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.dash-head h1 { margin: .25rem 0 0; }
.dash-head .sub { color: var(--ink-500); font-size: .9rem; margin-top: .25rem; }
.live { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-500); background: var(--white); border: 1px solid var(--line); padding: .4rem .75rem; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-700); animation: pulse 2s infinite; }
.live.paused .live-dot { background: var(--ink-500); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 107, 77, .45); } 70% { box-shadow: 0 0 0 8px rgba(39, 107, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 107, 77, 0); } }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-700); text-decoration: none; font-size: .86rem; font-weight: 500; transition: background .15s; }
.chip:hover { background: var(--sea-50); }
.chip[aria-current="true"] { background: var(--sea-900); border-color: var(--sea-900); color: var(--sand-50); }
.custom-range { display: inline-flex; align-items: center; gap: .4rem; margin-left: .25rem; padding-left: .75rem; border-left: 1px solid var(--line); flex-wrap: wrap; }
.custom-range input { min-height: 36px; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; background: var(--white); }
.custom-range .btn { min-height: 36px; padding: .3rem .85rem; font-size: .72rem; }

#dash { transition: opacity .2s; }
#dash.loading { opacity: .7; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12, .span-8, .span-6, .span-4 { grid-column: span 12; }
@media (min-width: 760px) { .span-6, .span-4 { grid-column: span 6; } }
@media (min-width: 1180px) { .span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } }

.panel { background: var(--white); border: 1px solid #e8e2d8; border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; min-width: 0; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font: 600 1.25rem var(--font-display); color: var(--sea-900); }
.panel-head .note { font-size: .78rem; color: var(--ink-500); }

.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { position: relative; background: var(--white); border: 1px solid #e8e2d8; border-radius: var(--radius); padding: 1rem 1.05rem .9rem; min-width: 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi .label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.kpi .value { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--font-display); margin: .35rem 0 .2rem; color: var(--sea-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums; }
.kpi .change { font-size: .76rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .3rem; }
.kpi .change.up { color: var(--ok-700); }
.kpi .change.down { color: var(--bad-700); }
.kpi .change .flat, .kpi .hint { color: var(--ink-500); font-weight: 400; font-size: .74rem; }
.kpi .value .unit { font: 600 .72rem var(--font); letter-spacing: .12em; color: var(--ink-500); margin-right: .3rem; vertical-align: .55em; }
.kpi.live-kpi .value .unit { color: rgba(251, 248, 243, .7); }
.kpi .spark { display: block; width: 100%; height: 30px; margin-top: .55rem; }
.kpi .spark path.line { fill: none; stroke: var(--sea-500); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kpi .spark path.area { fill: rgba(75, 142, 151, .1); stroke: none; }
.kpi .spark circle { fill: var(--sea-900); stroke: var(--white); stroke-width: 1.5; }
.kpi.live-kpi { background: linear-gradient(150deg, var(--sea-950), var(--sea-800)); border-color: var(--sea-900); }
.kpi.live-kpi .label, .kpi.live-kpi .hint { color: rgba(251, 248, 243, .72); }
.kpi.live-kpi .value { color: var(--white); }
.kpi.live-kpi::after { content: ""; position: absolute; right: 1rem; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: #6fd3a6; animation: pulse 2s infinite; }

/* Sailings for the day */
.sailing-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sailing-cols { grid-template-columns: 1fr 1fr; } }
.sailing-cols h3 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; margin-bottom: .4rem; }
.srow { display: grid; grid-template-columns: 3.1rem 1fr 3.6rem 5.8rem; gap: .65rem; align-items: center; padding: .42rem 0; border-bottom: 1px solid #f0ebe3; font-size: .88rem; }
.srow:last-child { border-bottom: 0; }
.srow .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.srow .boat { display: block; font-size: .66rem; letter-spacing: .08em; color: var(--ink-500); font-weight: 500; }
.srow .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-700); }
.meter { position: relative; height: 10px; border-radius: 4px; background: #efebe4; overflow: hidden; display: flex; gap: 2px; }
.meter span { display: block; height: 100%; transition: width .6s var(--ease); }
.meter .boarded { background: var(--sea-900); }
.meter .booked { background: #8fbcc1; border-radius: 0 4px 4px 0; }
.meter .boarded:only-child, .meter .booked:only-child { border-radius: 0 4px 4px 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.pill.Departed { background: #f0ece5; color: var(--ink-500); }
.pill.Boarding { background: var(--warn-100); color: var(--warn-700); }
.pill.Full { background: var(--bad-100); color: var(--bad-700); }
.pill.Upcoming { background: var(--sea-100); color: var(--sea-900); }
.pill.Suspended { background: #f0ece5; color: var(--ink-700); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--ink-500); margin-top: .7rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 12px; height: 10px; border-radius: 3px; display: inline-block; }

/* Boarding today */
.big { font: 600 3rem/1 var(--font-display); color: var(--sea-900); }
.big-label { font-size: .85rem; color: var(--ink-500); margin-top: .35rem; }
.stack { display: flex; gap: 2px; height: 14px; margin: 1rem 0 .75rem; border-radius: 4px; overflow: hidden; background: #efebe4; }
.stack span { display: block; height: 100%; min-width: 2px; }
.stat-rows { list-style: none; margin: 0; padding: 0; }
.stat-rows li { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid #f0ebe3; font-size: .9rem; }
.stat-rows li:last-child { border-bottom: 0; }
.stat-rows i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stat-rows b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Charts */
.chart-box { position: relative; height: 230px; }
.chart-box canvas { position: absolute; inset: 0; }

/* Activity */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: .7rem; align-items: start; padding: .6rem .2rem; border-bottom: 1px solid #f0ebe3; border-radius: 8px; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .4rem; background: var(--sea-700); }
.feed .dot.scan { background: var(--ok-700); }
.feed .dot.refused { background: var(--bad-700); }
.feed .dot.booking { background: var(--gold-500); }
.feed .title { font-size: .88rem; font-weight: 600; }
.feed .detail { font-size: .8rem; color: var(--ink-500); }
.feed time { font-size: .74rem; color: var(--ink-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed li.fresh { animation: fresh 3s ease-out; }
@keyframes fresh { from { background: var(--gold-100); } to { background: transparent; } }

/* Heatmap */
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .74rem; }
.heat th { font-weight: 500; color: var(--ink-500); text-align: center; padding: 0 0 .2rem; white-space: nowrap; }
.heat th.day { text-align: left; padding-right: .3rem; width: 2.5rem; }
.heat td { height: 32px; border-radius: 5px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-900); cursor: default; }
.heat td.dark { color: var(--white); }
.heat td:hover { outline: 2px solid var(--ink-900); outline-offset: -2px; }
.heat-scale { display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: var(--ink-500); margin-top: .5rem; }
.heat-scale span.sw { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.scroll-x { overflow-x: auto; }
/* Sequential ramp: one hue, light to dark */
.h0 { background: #f4f1ec; } .h1 { background: #d6e9e7; } .h2 { background: #a8d0cd; } .h3 { background: #6eaeae; } .h4 { background: #337f87; } .h5 { background: #0d3640; }

/* Horizontal bars */
.hbars { list-style: none; margin: 0; padding: 0; }
.hbars li { padding: .5rem 0; border-bottom: 1px solid #f0ebe3; }
.hbars li:last-child { border-bottom: 0; }
.hbars .row { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.hbars .row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars .row .muted { font-size: .76rem; }
.hbars .bar { height: 8px; margin-top: .4rem; background: #efebe4; border-radius: 4px; }
.hbars .bar span { display: block; height: 100%; background: var(--sea-700); border-radius: 0 4px 4px 0; min-width: 2px; }
.badge-req { font-size: .66rem; font-weight: 700; color: var(--warn-700); background: var(--warn-100); padding: .08rem .45rem; border-radius: 999px; margin-left: .35rem; }

/* Mix bars: categorical, validated palette (reference slots 1-3) */
.mix { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: .25rem 0 .75rem; }
.mix span { display: block; height: 100%; }
.c1 { background: #2a78d6; } .c2 { background: #eb6834; } .c3 { background: #1baf7a; }
.callout { display: flex; align-items: center; gap: 1rem; }
.callout .big { color: var(--taupe-700); }

/* Tooltip shared by HTML charts */
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--sea-950); color: var(--white); padding: .5rem .65rem; border-radius: 8px; font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow); opacity: 0; transition: opacity .08s; max-width: 260px; }
.tip.on { opacity: 1; }

/* ---------- Staff scan page ---------- */
.scan-wrap { max-width: 560px; margin: 0 auto; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #e9e4dc; border-radius: 14px; margin-bottom: 1rem; }
.segmented button { min-height: 54px; border: 0; border-radius: 10px; background: transparent; font: 600 .95rem var(--font); color: var(--ink-700); cursor: pointer; line-height: 1.2; transition: background .15s; }
.segmented button small { display: block; font-weight: 400; font-size: .74rem; color: var(--ink-500); }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--sea-900); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.reader-box { position: relative; background: radial-gradient(600px 300px at 50% 0%, var(--sea-800), var(--sea-950)); border-radius: 20px; overflow: hidden; min-height: 260px; display: grid; place-items: center; color: rgba(251, 248, 243, .85); }
#reader { width: 100%; }
#reader video { border-radius: 20px; }
.reader-box .placeholder { text-align: center; padding: 1.5rem; }
.reader-box .placeholder .btn { background: var(--gold-500); color: var(--sea-950); }
.manual { display: flex; gap: .5rem; margin-top: .9rem; }
.manual input { flex: 1; min-width: 0; min-height: 50px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--white); }
.result { margin-top: 1rem; border-radius: 18px; padding: 1.2rem 1.3rem; border: 2px solid transparent; background: var(--white); animation: fadeUp .25s var(--ease) both; }
.result[hidden] { display: none; }
.result.ok { border-color: var(--ok-700); background: var(--ok-100); }
.result.bad { border-color: var(--bad-700); background: var(--bad-100); }
.result .verdict { display: flex; align-items: center; gap: .6rem; font: 700 1.6rem/1.1 var(--font); }
.result.ok .verdict { color: var(--ok-700); }
.result.bad .verdict { color: var(--bad-700); }
.result .who { font: 600 1.6rem/1.15 var(--font-display); margin-top: .6rem; color: var(--ink-900); }
.result .meta { font-size: .9rem; color: var(--ink-700); margin-top: .2rem; }
.result .msg { margin-top: .6rem; font-size: .95rem; color: var(--ink-900); }
.result .party { margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.recent { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.recent li { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.recent li .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 700; flex: none; }
.recent li .mark.ok { background: var(--ok-700); }
.recent li .mark.bad { background: var(--bad-700); }
.recent li time { margin-left: auto; color: var(--ink-500); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* Cormorant's default old-style figures make times and prices look uneven. */
.option .time, .fact .value, .pass-legs .value, .summary .total-line strong, .sticky-bar .sum strong,
.lines tr.total td:last-child, .kpi .value, .big, .confirm-head .ref, .addon-card .name, .hero-copy h1 {
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
@media (max-width: 420px) { .pass-legs .value { font-size: 1.08rem; } .pass-info .name { font-size: 1.65rem; } }

/* Day strip: pick the day for each leg without going back a step */
.day-strip {
  display: flex; gap: .55rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: .2rem .1rem .75rem; margin: 0 0 .9rem; scrollbar-width: thin; scrollbar-color: var(--sand-300) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%);
}
.day-strip::-webkit-scrollbar { height: 6px; }
.day-strip::-webkit-scrollbar-thumb { background: var(--sand-300); border-radius: 6px; }
.day {
  flex: 0 0 82px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: .05rem;
  padding: .6rem .35rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  color: var(--ink-900); text-decoration: none; transition: border-color .15s, box-shadow .2s var(--ease), transform .15s var(--ease);
}
.day:first-child { margin-left: 6px; }
.day:hover { border-color: var(--sand-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.day .dow { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.day .dom { font: 600 1.7rem/1.05 var(--font-display); color: var(--sea-900); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.day .mon { font-size: .7rem; color: var(--ink-500); white-space: nowrap; }
.day .avail { margin-top: .3rem; font-size: .66rem; font-weight: 600; padding: .12rem .45rem; border-radius: 999px; background: var(--sea-50); color: var(--sea-700); white-space: nowrap; }
.day.muted-day { background: transparent; border-style: dashed; }
.day.muted-day .dom { color: var(--ink-500); opacity: .7; }
.day.muted-day .avail { background: var(--sand-100); color: var(--ink-500); }
.day[aria-current="date"] { background: var(--sea-900); border-color: var(--sea-900); box-shadow: var(--shadow); }
.day[aria-current="date"] .dow, .day[aria-current="date"] .mon { color: rgba(251, 248, 243, .75); }
.day[aria-current="date"] .dom { color: var(--white); opacity: 1; }
.day[aria-current="date"] .avail { background: rgba(255, 255, 255, .14); color: var(--sand-50); }

/* Error page */
.error-card { text-align: center; padding: 2.5rem 1.5rem; margin-top: 1.5rem; }
.error-card .error-mark { height: 46px; width: auto; margin-bottom: 1rem; }
.error-card h1 { color: var(--sea-900); margin-top: .4rem; }
.error-card .ar-block { text-align: center; margin-bottom: .75rem; }
.error-card p { max-width: 44ch; margin: 0 auto; }
