/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Full-page auth layout (allauth entrance) */



/* Ops Console shell */
.ops-shell { margin: 0; }

/* Alpine: hide until initialised */
[x-cloak] { 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; }
.mobile-logout-form { margin: 0; }
.mobile-logout-form button { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 12px 0; cursor: pointer; }
.mobile-logout-form button:hover { color: var(--coral); }
.account-actions form { margin: 0; }
.trip-drawer-overlay { position: fixed; inset: 0; z-index: 1550; background: rgba(8, 32, 40, .45); opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility .16s ease; }
.trip-drawer-overlay.open { opacity: 1; visibility: visible; }

/* Native <select> and inputs inside .ui.form follow the design system */
.ui.form select { min-height: 50px; border-radius: 12px; border: 1px solid rgba(8, 47, 48, .15); padding: 0 .9em; background: #fff; }
.ui.form select:focus { border-color: var(--sea); }
.field-error { color: #9d3f31; font-size: .8rem; margin-top: 6px; font-weight: 700; }
dialog.help-dialog { border: 0; border-radius: 22px; padding: 26px; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog.help-dialog::backdrop { background: rgba(8, 32, 40, .5); }

/* Ride options are radio inputs styled as cards */
.ride-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ride-option { position: relative; }
.ride-option:has(input:checked) { border-color: var(--deep); box-shadow: 0 0 0 1px var(--deep) inset; background: #fcfdfb; }
.ride-option.disabled { opacity: .5; cursor: not-allowed; }
.empty-note { color: var(--muted); padding: 14px 0; }

/* Ops nav renders links, not buttons */
.ops-nav a { width: 100%; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.68); padding: 11px 12px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: .16s ease; }
.ops-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.ops-nav a.active { background: var(--coral); color: var(--deep); }
.ops-shell-wrap { min-height: 100vh; }
.fare-cell input { width: 92px; min-height: 34px !important; padding: 4px 8px !important; border-radius: 8px !important; }
.fare-cell small { display: block; color: var(--muted2); font-size: .62rem; margin-top: 2px; }
.fare-cell .saved { color: var(--green); font-size: .68rem; font-weight: 800; }
.board-empty { color: var(--muted2); font-size: .74rem; padding: 10px 4px; }

/* Static spacing helpers extracted from templates */
.route-dot.dark { background: var(--deep); }
.route-copy.second { margin-top: 24px; }
.fine-print { font-size: .73rem; color: var(--muted); line-height: 1.45; margin: 12px 0 0; }
.ticket-issue { color: #9d3f31; font-weight: 800; }
.ops-nav-label.spaced { margin-top: 14px; }
.ops-grid-2.spaced { margin-top: 14px; }
.table-scroll { overflow-x: auto; }
.drawer-form { margin-top: 12px; }
.summary-row.spaced { margin-top: 12px; }
.help-choice { margin-bottom: 8px !important; text-align: left !important; }
.destination-card { text-decoration: none; }

.economics-card { margin-bottom: 0; }
.economics-grid { grid-template-columns: repeat(3, 1fr); }
.fare-cell.seat-rate { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 200px; }
.fare-cell.seat-rate input { width: 100%; }
.fare-cell.seat-rate small, .fare-cell.seat-rate .field-error { grid-column: 1 / -1; }

/* Partner onboarding */
.spaced-card { margin-top: 14px; }
.decision-card { margin-bottom: 14px; }
.inline-decision { display: flex; gap: 12px; align-items: flex-end; }
.inline-decision .field { flex: 1; margin-bottom: 0; }
.sub-block { padding: 14px 0; border-top: 1px solid var(--line); }
.sub-block:first-of-type { border-top: 0; }
.sub-block h4 { margin: 0 0 4px; color: var(--deep); }
.sub-meta { color: var(--muted); font-size: .8rem; margin: 0 0 6px; }
.problem-list-plain { color: #9d3f31; font-size: .78rem; margin: 6px 0 10px 18px; }
.doc-row { font-size: .78rem; margin-bottom: 4px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.inline-form input { min-height: 30px !important; padding: 2px 8px !important; width: 140px; }
.upload-form, .add-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }

/* Onboarding pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; overflow-x: auto; align-items: start; }
.app-ticket { display: block; text-decoration: none; color: inherit; }
.decision-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.decision-row .inline-decision { margin: 0; }
.edit-details { margin-top: 14px; }
.edit-details summary { cursor: pointer; font-weight: 800; color: var(--sea); font-size: .78rem; }

/* Drag-and-drop board */
.dispatch-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 240px; min-width: 0; }
.lane-cards { min-height: 60px; }
.trip-ticket { cursor: grab; }
.ticket-ghost { opacity: .35; background: var(--sea-soft); }
.ticket-chosen { box-shadow: var(--shadow); cursor: grabbing; }
.dispatch-column.sortable-drag-over { outline: 2px dashed var(--coral); }
#toast-area { position: fixed; right: 18px; bottom: 18px; z-index: 2500; display: grid; gap: 8px; }
.toast { background: var(--deep); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); max-width: 360px; }
.toast.error { background: #9d3f31; }
.toast.success { background: #2f9b78; }
.failure-section { background: #fff7ef; border-radius: 12px; padding: 14px !important; }
.audit-filters { margin-bottom: 14px; }
.audit-table td span { color: var(--muted); font-size: .7rem; }
.audit-pager { display: flex; gap: 8px; margin-top: 12px; }
.audit-diff { display: block; font-size: .68rem; color: var(--muted2); }

.upgrade-note { color: var(--muted); font-size: .72rem; margin: 3px 0 0 !important; }
.region-note { margin-top: 8px; font-size: .78rem; }
.arrival-toggle { border: 0; padding: 0; }
.choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.choice:focus-within { outline: 2px solid var(--sea); outline-offset: 2px; }

/* My trips */
.trips-heading { color: var(--deep); margin: 22px 0 10px; }
.trip-link { display: block; text-decoration: none; color: inherit; }
.trip-link:hover { border-color: rgba(8, 32, 40, .3); }
.trip-link-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.trip-link-top .tiny { color: var(--muted2); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.trip-link-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: .82rem; }
.account-cta { background: var(--sea-soft); border-radius: 16px; padding: 16px; margin: 18px auto; max-width: 560px; text-align: left; }
.account-cta strong { color: var(--deep); display: block; margin-bottom: 4px; }
.account-cta p { margin: 0 0 10px; color: var(--muted); font-size: .84rem; }

/* Payment */
.pay-card { border-color: rgba(239, 122, 101, .4); background: #fff7ef !important; }
.pay-card .ui.button { width: 100%; margin-top: 14px; }
.pay-check { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.pay-note { color: var(--muted); font-size: .8rem; margin: 10px auto 14px; max-width: 420px; }
.whatsapp-share { margin-top: 10px; }

/* ---- Landing page and flow review fixes ---- */

/* Basic buttons keep a visible outline on light backgrounds (the design system
   removes Fomantic's shadow, which is what drew the border). */
.ui.basic.button { box-shadow: 0 0 0 1px var(--line-strong) inset !important; background: transparent !important; color: var(--deep) !important; }
.ui.basic.button:hover { background: rgba(8, 47, 48, .05) !important; }
/* On the transparent header over the hero photo they must read as light. */
.topbar:not(.solid):not(.scrolled) .ui.basic.button { color: #fff !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset !important; }
.topbar:not(.solid):not(.scrolled) .ui.basic.button:hover { background: rgba(255, 255, 255, .14) !important; }

/* An empty required field is not an error until the visitor has tried to submit. */
.ui.form .field:not(.error) input:required:invalid,
.ui.form .field:not(.error) select:required:invalid { background: #fff; border-color: rgba(8, 47, 48, .15); color: var(--ink); box-shadow: none; }

.lead-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 4px 0 14px; }
.lead-note [data-lucide], .lead-note .lucide { flex: 0 0 auto; margin-top: 1px; }
.sub-heading { color: var(--deep); font-weight: 800; font-size: .95rem; margin: 22px 0 10px; }
.ride-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--sea-soft); color: var(--deep); font-size: .68rem; font-weight: 800; vertical-align: middle; }
.destination-copy p strong { color: #fff; }

/* ---- Account shell: one home for trips, details, email, password, security ---- */
.account-shell { width: min(calc(100% - 32px), 980px); margin: 0 auto; }
.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.account-avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--coral)); display: grid; place-items: center; font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--deep); flex: 0 0 auto; }
.account-id h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--deep); line-height: 1.15; }
.account-id p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.account-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.ui.tabular.menu.account-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line-strong); margin: 0; scrollbar-width: thin; }
.account-tabs .item { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 700; color: var(--muted); white-space: nowrap; border-radius: 14px 14px 0 0 !important; }
.account-tabs .item:hover { color: var(--deep); background: rgba(8, 47, 48, .04); }
.ui.tabular.menu.account-tabs .active.item { background: #fffdf7; color: var(--deep); border-color: var(--line-strong); box-shadow: inset 0 3px 0 var(--coral); }
.account-tabs .item:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.ui.bottom.attached.segment.account-panel { background: #fffdf7; border-color: var(--line-strong); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }

.account-panel h1 { font-size: 1.5rem; margin: 0 0 .5em; color: var(--deep); }
.account-panel h2.ui.header, .account-panel h3.ui.header { color: var(--deep); }
.panel-intro { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.account-panel .trip-card { margin-bottom: 12px; }
.account-panel .ui.form { max-width: 520px; }
.account-panel .ui.segment { box-shadow: none; border-radius: 14px; border: 1px solid var(--line); }
.account-panel .ui.basic.segment.sign-in-details { border: 0; padding: 0; }
.account-panel .ui.button { margin: 6px 8px 0 0; }
.account-panel .inline.field { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.account-panel .inline.field .ui.label { margin-left: 6px; }

.details-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.detail-list { margin: 0; }
.detail-list dt { color: var(--muted2); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 16px; }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 4px 0 0; color: var(--deep); font-weight: 600; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 28px; text-align: center; }
.empty-state h3 { margin: 0 0 6px; color: var(--deep); }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 16px; }

@media (max-width: 780px) {
  .details-grid { grid-template-columns: 1fr; gap: 24px; }
  .ui.bottom.attached.segment.account-panel { padding: 20px 16px; }
  .account-actions { margin-left: 0; width: 100%; }
  .account-tabs .item { padding: 12px 14px; }
}

.payments-alert { margin-bottom: 16px !important; }
.payments-alert p { margin: 4px 0 0; }
.payments-alert-reason { font-size: .78rem; opacity: .8; }

.dropoff-card { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.dropoff-qr svg { width: 100%; max-width: 220px; height: auto; }


.topbar:not(.solid):not(.scrolled) { color:var(--deep); }
.topbar:not(.solid):not(.scrolled) .ui.basic.button { color:var(--deep)!important; box-shadow:0 0 0 1px rgba(8,47,48,.2) inset!important; background:rgba(255,253,247,.5)!important; }

/* Shared tactile treatment for the booking, confirmation and live-trip journey. */
.internal-view { background:radial-gradient(circle at 12% 8%,rgba(255,255,255,.8),transparent 28rem),#eee9dc; }
.internal-view:before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.11; background-image:repeating-linear-gradient(0deg,rgba(8,32,40,.025) 0,rgba(8,32,40,.025) 1px,transparent 1px,transparent 4px); }
.flow-card,.summary-card,.trip-card,.confirmation { background:#fffdf7!important; border-color:rgba(8,47,48,.13)!important; box-shadow:0 10px 32px rgba(8,32,40,.055)!important; }
.flow-card,.summary-card,.trip-card { border-radius:12px!important; }
.flow-progress { border-bottom-color:rgba(8,47,48,.1)!important; }
.flow-step h2,.confirmation h2 { letter-spacing:-.035em; }
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}


/* ==== Public site (2026-10): coastline map, route pages, SEO-led layout ======
   Palette comes from the logo. Coral is only for the primary action, and carries
   dark ink text: white on coral is 2.8:1, below WCAG AA; ink on coral is 6:1. */
:root {
  --teal-ink: #073f43;
  --sea-line: #55aaa7;   /* decorative only: 2.6:1 on paper, never body text */
  --sea-text: #2e7f7c;   /* sea for text and icons: 4.5:1 on surface */
  --sand-brand: #f5ebd9;
  --surface: #fcfaf5;
  --muted-text: #5b6b6a; /* 5.4:1 on surface */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.441rem);
  --step-4: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
}
.ui.primary.button, .ui.primary.buttons .button { color: var(--ink) !important; }
.ui.primary.button:focus-visible, .ui.button:focus-visible, a:focus-visible,
summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--sea-text); outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important; 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: 16px; top: -60px; z-index: 2000; padding: 10px 16px;
  background: var(--teal-ink); color: #fff; border-radius: 8px; font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.section-title { margin: 0; font-size: var(--step-4); line-height: 1.05; letter-spacing: -.035em; color: var(--teal-ink); }
.section-lead { margin: 16px 0 0; max-width: 60ch; color: var(--muted-text); font-size: 1.06rem; line-height: 1.65; }
.text-link { color: var(--sea-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--teal-ink); }
.message-close { float: right; border: 0; background: none; cursor: pointer; color: inherit; padding: 0 0 0 12px; }

/* ---- hero: photo, headline, booking panel ---- */
.home-hero { position: relative; isolation: isolate; background: var(--surface); }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; }
.hero-photo:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(252, 250, 245, .97) 0%, rgba(252, 250, 245, .9) 36%, rgba(252, 250, 245, .25) 66%, rgba(252, 250, 245, 0) 100%);
}
.hero-inner { padding: 148px 0 56px; }
.hero-copy { max-width: 600px; }
.home-hero h1 {
  margin: 0; color: var(--teal-ink); font-size: clamp(2.5rem, 1.2rem + 5vw, 5.2rem);
  line-height: .98; letter-spacing: -.045em; text-wrap: balance;
}
.hero-lead { margin: 22px 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: #2c4446; }
.booking-panel {
  margin-top: 48px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(7, 63, 67, .14);
}
.booking-grid { display: grid !important; grid-template-columns: 1.2fr 1.2fr .9fr .65fr auto; gap: 12px; align-items: end; padding: 18px; }
.booking-grid .field { margin: 0 !important; min-width: 0; }
.booking-panel label { font-size: .78rem !important; font-weight: 700 !important; color: var(--teal-ink) !important; letter-spacing: 0 !important; text-transform: none !important; }
.booking-panel input, .booking-panel select { background: #fff !important; min-height: 48px !important; border-radius: 10px !important; }
.booking-submit { min-height: 48px !important; border-radius: 10px !important; white-space: nowrap; margin: 0 !important; padding: 0 26px !important; }
.booking-notes {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 12px 18px 14px;
  list-style: none; border-top: 1px solid var(--line); color: var(--muted-text); font-size: .84rem;
}
.booking-notes li { display: inline-flex; align-items: center; gap: 7px; }
.booking-notes .lucide, .booking-note .lucide { width: 16px; height: 16px; color: var(--sea-text); flex: 0 0 auto; }

/* ---- the coastline: the coast as a north-south transit line ---- */
.coast-section { padding: 96px 0; background: var(--sand-brand); }
.coast-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.coast-intro { position: sticky; top: 104px; }
.coast-legend { display: grid; gap: 10px; margin: 28px 0; }
.coast-legend div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.coast-legend dt { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--teal-ink); }
.coast-legend dd { grid-column: 2; margin: 0; padding-left: 28px; color: var(--muted-text); font-size: .9rem; }
.legend-mark { width: 16px; height: 16px; flex: 0 0 auto; }
.legend-stop { border-radius: 50%; background: var(--surface); border: 3px solid var(--teal-ink); }
.legend-station { border-radius: 5px; background: var(--teal-ink); }
.coastline { --mark: 44px; position: relative; margin: 0; padding: 0; list-style: none; }
.coastline:before {
  content: ""; position: absolute; top: 22px; bottom: 22px; left: calc(var(--mark) / 2 - 3px);
  width: 6px; border-radius: 3px; background: var(--sea-line);
}
.coastline li { position: relative; }
.coast-stop-link {
  display: grid; grid-template-columns: var(--mark) minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 18px; align-items: center; padding: 12px 14px 12px 0; border-radius: 12px;
  color: var(--teal-ink); text-decoration: none;
}
.coast-stop-link:hover { background: rgba(252, 250, 245, .7); }
.coast-mark { grid-row: 1 / 3; justify-self: center; display: grid; place-items: center; }
.coast-stop .coast-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--teal-ink); }
.coast-stop-link:hover .coast-mark { background: var(--coral); }
.coast-station .coast-mark { width: var(--mark); height: var(--mark); border-radius: 12px; background: var(--teal-ink); color: #fff; }
.coast-station .coast-mark .lucide { width: 22px; height: 22px; }
.coast-name { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: var(--step-2); letter-spacing: -.03em; line-height: 1.1; }
.coast-station .coast-name { font-size: var(--step-1); }
.coast-meta { grid-column: 2; color: var(--muted-text); font-size: .86rem; }
.coast-price { grid-row: 1 / 3; grid-column: 3; text-align: right; color: var(--muted-text); font-size: .86rem; font-variant-numeric: tabular-nums; }
.coast-price strong { display: block; color: var(--teal-ink); font-size: 1.1rem; }
.coast-price span { display: block; }

/* ---- how booking works: a real four-step sequence ---- */
.steps-section { padding: 96px 0; background: var(--surface); }
.steps {
  counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li:before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--teal-ink); color: #fff;
  font-family: "Manrope", sans-serif; font-weight: 800; font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child):after {
  content: ""; position: absolute; top: 19px; left: 52px; right: -20px; height: 2px; background: var(--sea-line);
}
.steps h3 { margin: 0 0 8px; font-size: var(--step-1); color: var(--teal-ink); }
.steps p { margin: 0; color: var(--muted-text); line-height: 1.6; }

/* ---- shared or private: vehicle classes from the database ---- */
.rides-section { padding: 96px 0; background: var(--sand-brand); }
.rides-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ride-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.ride-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.ride-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--teal-ink); }
.ride-icon .lucide { width: 24px; height: 24px; }
.ride-list h3 { margin: 0; font-size: var(--step-1); color: var(--teal-ink); }
.ride-list p { margin: 2px 0 0; color: var(--muted-text); }
.ride-capacity { color: var(--teal-ink); font-weight: 600; font-size: .9rem; text-align: right; max-width: 15ch; }

/* ---- FAQ (native details: works without JavaScript) ---- */
.faq-section { padding: 96px 0; background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--teal-ink); list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sea-text); }
.faq-list details[open] summary:after { content: "\2212"; }
.faq-list details p { margin: 0 0 20px; max-width: 62ch; color: #2c4446; line-height: 1.65; }

/* ---- route pages and the all-routes index ---- */
.route-page { padding: 104px 0 88px; background: var(--surface); min-height: 70vh; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted-text); }
.breadcrumbs li:not(:last-child):after { content: "/"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: var(--sea-text); }
.route-head { max-width: 760px; margin: 28px 0 40px; }
.route-head h1 { margin: 0; font-size: var(--step-4); line-height: 1.04; letter-spacing: -.04em; color: var(--teal-ink); text-wrap: balance; }
.route-lead { margin: 18px 0 0; font-size: 1.12rem; line-height: 1.6; color: #2c4446; max-width: 60ch; }
.route-lead strong { color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.route-line { display: flex; align-items: center; width: min(320px, 100%); margin-bottom: 22px; }
.route-line-end { flex: 0 0 auto; display: grid; place-items: center; }
.route-line-station { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-ink); color: #fff; }
.route-line-station .lucide { width: 20px; height: 20px; }
.route-line-track { flex: 1; height: 6px; background: var(--sea-line); }
.route-line-stop { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--teal-ink); }
.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.route-body section + section { margin-top: 56px; }
.route-body h2, .related-routes h2, .route-group h2 { margin: 0 0 18px; font-size: var(--step-3); letter-spacing: -.03em; color: var(--teal-ink); }
.route-body > section > p { max-width: 62ch; line-height: 1.65; color: #2c4446; }
.route-aside { position: sticky; top: 96px; }
.booking-panel-stacked { margin-top: 0; padding: 22px; }
.booking-panel-stacked h2 { margin: 0 0 16px; font-size: var(--step-1); color: var(--teal-ink); }
.booking-panel-stacked .field { margin-bottom: 14px !important; }
.booking-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--muted-text); font-size: .84rem; }
.fare-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fare-table th, .fare-table td { padding: 16px 12px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-strong); }
.fare-table thead th { padding-top: 0; font-size: .8rem; font-weight: 700; color: var(--muted-text); }
.fare-table tbody th { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--teal-ink); }
.fare-table td { color: #2c4446; }
.fare-table .num { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 700; color: var(--teal-ink); }
.fare-table small { display: block; margin-top: 3px; font-family: "DM Sans", sans-serif; font-weight: 400; font-size: .82rem; color: var(--muted-text); white-space: normal; }
.fare-table tbody th a { color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--sea-line); text-underline-offset: 4px; }
.fare-table .muted { color: var(--muted-text); font-weight: 400; }
.pickup-card { margin-top: 18px; padding: 22px; border-radius: 14px; background: var(--sand-brand); }
.pickup-card h3 { margin: 0; font-size: var(--step-1); color: var(--teal-ink); }
.pickup-landmark { margin: 4px 0 0; color: var(--muted-text); }
.pickup-steps { margin: 14px 0 0; padding-left: 20px; line-height: 1.6; color: #2c4446; }
.related-routes { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.related-grid h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--teal-ink); }
.route-links { margin: 0; padding: 0; list-style: none; }
.route-links li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.route-links a { color: var(--teal-ink); font-weight: 600; }
.route-links span { color: var(--muted-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.route-group { margin-top: 48px; scroll-margin-top: 96px; }
.route-group h2 { display: flex; align-items: center; gap: 12px; }
.route-group-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-ink); color: #fff; }
.route-group-icon .lucide { width: 20px; height: 20px; }

/* ---- footer ---- */
.site-footer h2.footer-title { font-size: .95rem; letter-spacing: 0; margin: 0 0 12px; }
.site-footer .footer-links { margin: 0; padding: 0; list-style: none; }
.site-footer .footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.footer-contact a { color: #fff; text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .booking-submit { grid-column: 1 / -1; }
  .coast-layout, .rides-layout, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .coast-intro { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2):after { display: none; }
  .route-layout { grid-template-columns: 1fr; gap: 40px; }
  .route-aside { position: static; order: -1; }  /* book first on small screens */
}
@media (max-width: 720px) {
  .home-hero { display: flex; flex-direction: column; }
  .hero-photo { position: relative; inset: auto; height: 260px; order: -1; }
  .hero-photo:after { background: linear-gradient(180deg, rgba(252, 250, 245, 0) 55%, var(--surface) 100%); }
  .hero-inner { padding: 8px 0 40px; }
  .booking-panel { margin-top: 28px; }
  .booking-grid { grid-template-columns: 1fr; }
  .coast-section, .steps-section, .rides-section, .faq-section { padding: 64px 0; }
  .coastline { --mark: 38px; }
  .coast-stop-link { grid-template-columns: var(--mark) minmax(0, 1fr); padding-right: 0; }
  .coast-price { grid-row: auto; grid-column: 2; text-align: left; }
  .coast-price strong, .coast-price span { display: inline; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 58px; }
  .steps li:after { display: none; }
  .ride-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .ride-capacity { grid-column: 2; text-align: left; max-width: none; }
  .related-grid { grid-template-columns: 1fr; gap: 28px; }
  .fare-table thead { display: none; }
  .fare-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line-strong); padding: 14px 0; }
  .fare-table th, .fare-table td { border: 0; padding: 0; }
  .fare-table td:not(.num) { grid-column: 1; grid-row: 2; font-size: .9rem; color: var(--muted-text); }
  .fare-table .num { grid-row: 1 / 3; grid-column: 2; align-self: center; padding-left: 12px; }
  .fare-table .num small { max-width: 17ch; margin-left: auto; }
  .route-table tr { grid-template-columns: 1fr; gap: 4px; }
  .route-table .num { grid-row: auto; grid-column: 1; text-align: left; }
  .route-page { padding-top: 84px; }
}

/* ---- error pages ---- */
.error-page { max-width: 560px; padding: 48px 0; }
.error-code { margin: 0 0 8px; color: var(--sea-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.error-page h1 { margin: 0; font-size: var(--step-4); line-height: 1.05; letter-spacing: -.04em; color: var(--teal-ink); }
.error-page > p:not(.error-code) { margin: 16px 0 0; color: #2c4446; line-height: 1.6; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---- sign in / sign up (allauth entrance layout) ---- */
.auth-page { min-height: 80vh; padding: 120px 16px 72px; background: var(--sand-brand); }
.auth-card {
  width: min(100%, 440px); margin: 0 auto; padding: 32px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 50px rgba(7, 63, 67, .1);
}
.auth-logo { margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 8px; font-size: var(--step-3); letter-spacing: -.03em; color: var(--teal-ink); }
.auth-card p { color: #2c4446; line-height: 1.55; }
.auth-card a { color: var(--sea-text); }
.auth-card .ui.form .field { margin-bottom: 16px; }
.auth-card .ui.primary.button { width: 100%; margin-top: 8px; }
.auth-aside { width: min(100%, 440px); margin: 18px auto 0; text-align: center; color: var(--muted-text); }
.auth-aside a { color: var(--sea-text); font-weight: 700; }

/* Form labels: sentence case everywhere (the design system shouted them). */
.ui.form .field > label { text-transform: none !important; letter-spacing: 0 !important; font-size: .82rem !important; font-weight: 700 !important; color: var(--teal-ink) !important; }

/* Booking confirmation: the heading is the page's h1; unpaid shows a clock, not a tick. */
.confirmation h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; color: var(--teal-ink); }
.confirm-icon-pending { background: var(--sand-brand) !important; color: var(--teal-ink) !important; }
.flow-title { margin: 0 0 12px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.035em; color: var(--teal-ink); }

/* Route page header with the destination photo beside the heading. */
.route-head-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
.route-head-text { min-width: 0; }
.route-photo { margin: 0; }
.route-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--sand-brand); }
@media (max-width: 1040px) {
  .route-head-photo { grid-template-columns: 1fr; gap: 28px; }
  .route-photo { max-width: 640px; }
}
@media (max-width: 720px) {
  .route-photo img { aspect-ratio: 16 / 9; }  /* keep the booking card near the top */
}

/* ==== Ops Console fixes (2026-10) ========================================== */
/* A closed drawer sat off-screen with its 70px shadow bleeding into the page
   and its controls still reachable by keyboard: hide it properly. */
.trip-drawer:not(.open) { visibility: hidden; box-shadow: none; transition: transform .25s ease, visibility 0s linear .25s; }
.trip-drawer.open { visibility: visible; transition: transform .25s ease; }

/* Drawer actions: one action per row, full width, so a form (field + button)
   never shares a grid cell and buttons never stretch into tall boxes. */
.drawer-actions { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; }
.drawer-actions > .ui.button, .drawer-actions > a.ui.button { width: 100%; justify-content: center; margin: 0 !important; }
.drawer-actions .drawer-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.drawer-actions .drawer-form .field { margin: 0 !important; }
.drawer-actions .drawer-form .ui.button { width: 100%; margin: 0; justify-content: center; }
.ui.button > .lucide, .ui.button > [data-lucide] { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* Field + button on one line: the field's design-system margin pushed the
   button 14px low, and small buttons (33px) were shorter than inputs (50px). */
.inline-decision { align-items: flex-end !important; }
.inline-decision .field { margin: 0 !important; }
.inline-decision > .ui.button { min-height: 50px; margin: 0 !important; white-space: nowrap; }

/* text-button: links stay links; a <button> that changes state looks like one. */
button.text-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--teal-ink);
  font-size: .8rem; font-weight: 700; line-height: 1.2; cursor: pointer;
  width: auto; flex: 0 0 auto; justify-self: start; align-self: center;
}
button.text-button:hover { background: var(--sand-brand); border-color: var(--teal-ink); }
a.text-button { color: var(--sea-text); text-decoration: underline; text-underline-offset: 3px; }

/* Brand mark: the real logo, not the CSS-drawn coral circle. */
.ops-logo { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 9px; }
.ops-mobile-title .ops-logo { width: 32px; height: 32px; }

/* Pickups by hour: one colour (bar height is the data); an honest empty state. */
.pulse-bar, .pulse-bar:nth-child(4n+1), .pulse-bar:nth-child(5n) { background: var(--sea-text); opacity: 1; }
.pulse-bar.is-empty { background: var(--line-strong); }
.pulse-empty { display: grid; place-items: center; height: 170px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted-text); font-size: .9rem; text-align: center; padding: 16px; }

/* Checkbox / radio lists (e.g. corridors on a new application). */
.choice-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.choice-list label { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; font-size: .95rem !important; color: var(--ink) !important; margin: 0 !important; cursor: pointer; }
.choice-list input { width: 18px; height: 18px; accent-color: var(--teal-ink); margin: 0; }
.choice-list div { margin: 0; }

/* Routes & fares: every number gets its own visible label. */
.fare-cell { display: grid; grid-template-columns: repeat(2, minmax(72px, 1fr)); gap: 6px 8px; }
.fare-input { display: grid; gap: 2px; margin: 0; }
.fare-input span { font-size: .66rem; font-weight: 700; color: var(--muted-text); white-space: nowrap; }
.fare-cell small { grid-column: 1 / -1; }

/* Filter chips scroll sideways on phones instead of being cut off. */
@media (max-width: 720px) {
  .filter-chips { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; }
  .filter-chips > * { flex: 0 0 auto; }
}
.capacity-form { display: flex; align-items: center; gap: 8px; }
.capacity-form input { width: 80px; }
