/* Sunshine Transfers booking site — styles.
   Tokens, buttons and form fields match the main site (sunshinetransfers.pt, assets/css/styles.css). */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --gutter-l: max(24px, env(safe-area-inset-left));
  --gutter-r: max(24px, env(safe-area-inset-right));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ink: #1E2530;
  --ink-deep: #141A22;
  --cream: #FBF8F1;
  --sand: #F3ECDD;
  --sand-line: #E4DBC6;
  --field-line: #CFC7B4;
  --white: #FFFFFF;
  --muted: #4A5361;
  --sun: #F2D21B;
  --amber: #E3A24B;
  --amber-soft: #FFF6D6;
  --link: #8A5A0B;
  --ok: #1E6B3A;
  --ok-soft: #E7F3EA;

  --bar: #1E2530;           /* top bar: navy in both themes */
  --error: #B42318;
  --pay-icons: #6B7280;
  color-scheme: light;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --bar-h: 68px;
}

/* Dark mode: the moon button in the top bar, or the device setting until the visitor chooses.
   --ink is the text colour and the "strong" fill (selected vehicle, dark buttons), so it turns light,
   and --cream/--white, the page and the cards, turn dark. */
:root[data-theme="dark"] {
  --ink: #F3EEE3; --cream: #10151C; --white: #1A212B; --sand: #26303C; --sand-line: #333D4A; --field-line: #4A5361;
  --muted: #B8B2A5; --link: #F2C46B; --amber-soft: #3A2F14; --ok: #86D6A0; --ok-soft: #15301F;
  --bar: #0B0F14; --error: #FF8F80; --pay-icons: #9AA3AE; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3EEE3; --cream: #10151C; --white: #1A212B; --sand: #26303C; --sand-line: #333D4A; --field-line: #4A5361;
    --muted: #B8B2A5; --link: #F2C46B; --amber-soft: #3A2F14; --ok: #86D6A0; --ok-soft: #15301F;
    --bar: #0B0F14; --error: #FF8F80; --pay-icons: #9AA3AE; color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(242, 210, 27, 0.25);
}
a { color: inherit; }
button, input, select { font-family: inherit; }
input, select, textarea { font-size: 16px; } /* iOS zooms in on smaller fields */
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); }
[hidden] { display: none !important; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.lnk { text-decoration: none; color: var(--link); font-weight: 700; }
@media (hover: hover) {
  .lnk:hover { text-decoration: underline; }
  .btn:hover { filter: brightness(0.94); }
  .vo[aria-disabled="false"]:hover { border-color: var(--field-line); }
  .vo-info:hover, .chip:hover { background: var(--sand); }
  .vo[aria-checked="true"]:hover { border-color: var(--ink); }
  .icon-btn:hover { background: var(--sand); }
}
.btn:active { transform: scale(0.985); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; font-weight: 700; text-decoration: none; font-size: 16px;
}
.btn-amber { background: var(--amber); color: #1E2530; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-soft { background: var(--sand); color: var(--ink); }
.btn-pill { min-height: 48px; padding: 0 24px; border-radius: 999px; }
.btn-block { width: 100%; min-height: 56px; border-radius: 14px; font-size: 17px; }
.btn-wide { width: 100%; min-height: 48px; border-radius: 12px; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; padding: 0;
}
.text-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  color: var(--link); font-weight: 700; font-size: 15px;
}
.urgent-wa {
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: #15803D; color: var(--white); max-width: 100%; text-align: center;
}
@media (hover: hover) { .urgent-wa:hover { background: #166534; } }

/* ---------- Top bar: logo, steps, language, help, dark mode, sign in ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--bar-h); padding: 0 var(--gutter-r) 0 var(--gutter-l);
  background: var(--bar); color: #FBF8F1;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 3px;
}
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 28px; align-self: stretch; min-width: 0; }
.steps li {
  display: flex; align-items: center; gap: 8px; font-size: 16px; color: #A9AFB8; white-space: nowrap;
  border-bottom: 2px solid transparent; padding-top: 2px;
}
.steps-n { font-size: 13px; font-weight: 700; color: #7D8591; font-variant-numeric: tabular-nums; }
.steps li[aria-current="step"] { color: #FBF8F1; font-weight: 700; border-bottom-color: var(--sun); }
.steps li[aria-current="step"] .steps-n { color: var(--sun); }
.steps li.is-done { color: #D9D4C6; }
.bar-end, .bar-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { position: relative; display: flex; align-items: center; color: #E9E3D3; }
.lang svg { position: absolute; left: 10px; pointer-events: none; }
.lang-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  height: 44px; padding: 0 12px 0 34px; border: 0; border-radius: 10px;
  background: transparent; color: #E9E3D3; font-size: 16px; font-weight: 700;
}
.bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid #4A5361; background: transparent; color: #FBF8F1;
  font-size: 15px; font-weight: 700; text-decoration: none; list-style: none;
}
.bar-btn::-webkit-details-marker { display: none; }
.bar-icon { padding: 0; }
.bar-icon .i-sun, [data-theme-dark] .bar-icon .i-moon { display: none; }
[data-theme-dark] .bar-icon .i-sun { display: block; }
@media (hover: hover) {
  .bar-btn:hover, .lang-select:hover { background: #2A3340; }
  .help-item:hover { background: var(--sand); }
}
.help { position: relative; }
.help-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(300px, calc(100vw - 32px));
  padding: 12px; border-radius: 14px; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--sand-line); box-shadow: 0 16px 36px rgba(20, 26, 34, 0.25);
}
.help-menu p { margin: 4px 6px 8px; font-size: 14px; color: var(--muted); }
.help-item { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Layout: map | choice | your booking ---------- */
.book {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "map" "main" "side";
  padding: 0 var(--gutter-r) 48px var(--gutter-l);
}
.map-pane { grid-area: map; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); }
.main-pane { grid-area: main; min-width: 0; }
.side-pane { grid-area: side; min-width: 0; }
.map { height: 200px; background: #E8E4DA; }

/* Tablets and laptops: choice on the left, map and your booking on the right */
@media (min-width: 861px) {
  .book {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    grid-template-areas: "main map" "main side";
    grid-template-rows: auto 1fr;
    column-gap: 32px; row-gap: 16px; padding-top: 32px;
  }
  .map-pane { margin: 0; }
  .map { height: 220px; border-radius: 16px; overflow: hidden; }
  .side-pane { align-self: start; position: sticky; top: calc(var(--bar-h) + 16px); }
}
/* Large screens: the map fills the left side, as tall as the screen */
@media (min-width: 1240px) {
  .book {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 600px) 360px;
    grid-template-areas: "map main side";
    grid-template-rows: auto;
    padding-left: 0;
  }
  .map-pane { align-self: start; position: sticky; top: var(--bar-h); margin-top: -32px; }
  .map { height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h)); border-radius: 0; }
  .book.no-map { grid-template-columns: minmax(0, 1fr) minmax(0, 640px) 360px minmax(0, 1fr); grid-template-areas: ". main side ."; padding-left: var(--gutter-l); }
}
@media (min-width: 861px) and (max-width: 1239px) {
  .book.no-map { grid-template-areas: "main side"; grid-template-rows: auto; }
}

/* ---------- Map labels (pickup and drop-off) ---------- */
.pin {
  position: absolute; transform: translate(-50%, calc(-100% - 14px));
  display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(20, 26, 34, 0.22); font-family: var(--font-body); pointer-events: none;
}
.pin-place { display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; background: #FFFFFF; color: #1E2530; max-width: 180px; }
.pin-place small { font-size: 12px; color: #4A5361; }
.pin-place strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.pin-time { display: flex; align-items: center; padding: 0 10px; font-weight: 700; font-size: 15px; }
.pin-from .pin-time { background: #1E2530; color: #FBF8F1; }
.pin-to .pin-time { background: var(--amber); color: #1E2530; }
.pin::after {
  content: ''; position: absolute; left: 50%; bottom: -14px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 3px; border: 2px solid var(--white); transform: translateY(0);
}
.pin-from::after { background: #1E2530; }
.pin-to::after { background: var(--amber); }
@media (max-width: 600px) {
  .pin-place { max-width: 120px; }
  .pin-place small { display: none; }
}

/* ---------- Steps ---------- */
.step h1, .notice h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.step h1:focus, .notice h1:focus { outline: none; }
.step-sub { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.step-note { margin: 16px 0 0; }
.loading { margin: 24px 0; color: var(--muted); }
.notice { padding: 24px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--sand-line); }
.notice p { margin: 0 0 16px; color: var(--muted); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Vehicle options */
.vehicle-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vo {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 4px; align-items: center;
  width: 100%; padding: 18px 20px; text-align: left; cursor: pointer; color: var(--ink); font-size: 16px;
  background: transparent; border: 2px solid transparent; border-radius: 16px;
}
.vo[aria-checked="true"] { background: var(--white); border-color: var(--ink); box-shadow: 0 6px 20px rgba(20, 26, 34, 0.08); }
.vo[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.vo:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.vo-img { grid-row: 1 / span 3; width: 128px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.vo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
/* "?": models and luggage, without choosing the vehicle */
.vo-info {
  width: 40px; height: 40px; margin: -8px 0 -8px -6px; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); cursor: pointer;
}
.vo-info[aria-expanded="true"] { color: var(--ink); background: var(--sand); }
.vo-more { grid-column: 2; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--sand); font-size: 14px; color: var(--ink); }
.vo-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.vo-badge { padding: 3px 9px; border-radius: 6px; background: var(--sand); font-size: 13px; font-weight: 700; white-space: nowrap; }
.vo-badge.is-best { background: var(--amber-soft); color: var(--link); }
.vo-models { grid-column: 2; color: var(--muted); font-size: 15px; }
.vo-cap { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--muted); }
.vo-cap span { display: inline-flex; align-items: center; gap: 5px; }
.vo-price { grid-column: 3; grid-row: 1 / span 3; text-align: right; white-space: nowrap; }
.vo-price strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.vo-price small { display: block; font-size: 13px; color: var(--muted); }
.vo-price.is-request { font-weight: 700; color: var(--muted); }
@media (max-width: 520px) {
  .vo { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .vo-img { width: 84px; height: 52px; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .vo-name { font-size: 20px; }
  .vo-models { display: none; }
  .vo-more { grid-column: 1 / -1; }
  .vo-cap { grid-column: 2; grid-row: 2; }
  .vo-price { grid-column: 1 / -1; grid-row: auto; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .vo-price strong { font-size: 24px; }
  .vo-price small { display: inline; }
}
.rating { margin: 24px 0 16px; text-align: center; font-size: 15px; color: var(--muted); }
.rating strong { color: var(--ink); }

/* ---------- Your booking ---------- */
.yb { padding: 20px; border: 1.5px solid var(--sand-line); border-radius: 16px; background: var(--white); }
.yb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 0 0; }
.yb-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.yb-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 16px; font-size: 14px; color: var(--muted); }
.yb-pax { display: inline-flex; align-items: center; gap: 5px; }
.yb-route { list-style: none; margin: 0 0 16px; padding: 0; position: relative; }
.yb-stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding-left: 20px; }
.yb-stop::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); }
.yb-stop.is-to::before { background: var(--amber); }
.yb-stop strong { font-size: 16px; overflow-wrap: anywhere; }
.yb-stop .yb-time { max-width: 10em; font-size: 14px; color: var(--muted); text-align: right; }
.yb-stop .yb-sub { grid-column: 1; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.yb-leg { position: relative; margin: 6px 0 6px 4px; padding: 4px 0 4px 16px; border-left: 1.5px solid var(--field-line); font-size: 14px; color: var(--muted); }
.yb-return { margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--sand-line); }
.yb-return-title { display: flex; align-items: center; justify-content: space-between; margin: -10px 0 4px; font-weight: 700; font-size: 15px; }
.yb-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sand-line); }
.yb-total span { font-weight: 700; font-size: 17px; }
.yb-total strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-align: right; }
.yb-small { margin: 2px 0 4px; font-size: 14px; color: var(--muted); }
.yb-details summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  list-style: none; cursor: pointer; font-size: 15px; color: var(--muted);
}
.yb-details summary::-webkit-details-marker { display: none; }
.yb-details[open] summary svg { transform: rotate(180deg); }
.yb-details dl { margin: 0 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.yb-details dt { color: var(--muted); }
.yb-details dd { margin: 0; text-align: right; font-weight: 700; white-space: nowrap; }
.yb-details dd.is-off { color: var(--ok); }
.yb-cancel { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 15px; }
.yb-cancel svg { flex: none; }
.yb-perks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 14px; color: var(--muted); }
.yb-perks li { display: flex; align-items: center; gap: 6px; }
.yb-perks li::before { content: ''; flex: none; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.yb-pay { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--sand-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: var(--pay-icons); }
.yb-pay li { display: flex; }
.yb-pay svg { display: block; }
/* Phones: the trip line at the top of each step stands in for the card; the card (with the price
   details) comes back under the review on the last step */
@media (max-width: 860px) {
  body:not([data-step="pay"]) .side-pane { display: none; }
  .side-pane .yb-perks { display: none; }
}
.yb-vehicle { margin-bottom: 4px; padding-top: 12px; border-top: 1px solid var(--sand-line); }
.yb-vehicle-head { display: flex; align-items: center; justify-content: space-between; margin: -10px 0 0; font-size: 14px; color: var(--muted); }
.yb-vehicle-row { display: flex; align-items: center; gap: 12px; }
.yb-vehicle-row img { width: 84px; height: 52px; object-fit: contain; mix-blend-mode: multiply; flex: none; }
.yb-vehicle-row span { display: flex; flex-direction: column; min-width: 0; }
.yb-vehicle-row small { font-size: 14px; color: var(--muted); }
[data-theme-dark] .yb-vehicle-row img { mix-blend-mode: normal; background: #EDE8DD; border-radius: 8px; }

/* ---------- Passenger details ---------- */
.step-h2 { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--sand-line); font-size: 19px; font-weight: 800; }
.step-sub + .step-h2 { margin-top: 8px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.field .input-icon input { padding-left: 44px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; max-width: 100%;
  border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: left;
}
.chip svg { flex: none; }
.chip[aria-expanded="true"] { border-color: var(--ink); background: var(--amber-soft); }
.chip[aria-expanded="true"] svg { transform: rotate(45deg); }
.extra-box { margin: 12px 0 0; padding: 14px; border: 1.5px solid var(--sand-line); border-radius: 14px; background: var(--white); min-width: 0; }
.extra-box legend { padding: 0 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.seat-row > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.seat-row small { font-size: 14px; color: var(--muted); }
.extra-box .field-hint { margin: 6px 0 0; }
.field textarea {
  width: 100%; min-width: 0; padding: 12px 16px; border: 1.5px solid var(--field-line); border-radius: 12px;
  background: var(--white); color: var(--ink); font-family: inherit; line-height: 1.4; resize: vertical;
}
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; width: auto; max-width: 42%; }
.phone-row input { flex: 1 1 auto; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  height: 52px; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 0 16px;
  font-size: 16px; color: var(--ink); background: var(--white); width: 100%; min-width: 0;
}
.field select, .field input[type="datetime-local"] { padding: 0 12px; }
.field input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-height: 52px; line-height: 52px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C2410C; }
.field-hint { font-size: 14px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; margin: 0; }
.invoice-box { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1.5px solid var(--sand-line); border-radius: 14px; background: var(--white); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 8px; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--field-line); border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--amber-soft); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.coupon-row .btn { flex: 0 0 auto; height: 52px; padding: 0 20px; border-radius: 12px; }
.coupon-field .field-hint.is-ok { color: var(--ok); font-weight: 700; }
.coupon-field .field-hint.is-error { color: var(--error); font-weight: 700; }
.field-error { margin: 12px 0 0; font-size: 14px; color: var(--error); font-weight: 700; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 14px; }
.step-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
form.step > .btn-go { margin-top: 24px; }
.pay-note { margin: 0; text-align: center; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--ok-soft); display: flex; flex-direction: column; gap: 12px; }
.sent h2 { margin: 0; font-size: 22px; color: var(--ok); }
.sent p { margin: 0; overflow-wrap: anywhere; }
.sent .btn-block { padding: 10px 18px; text-align: center; line-height: 1.25; }
.sent .text-btn { align-self: center; }
#step-pay.is-sent > .step-sub:not(.urgent-note), #step-pay.is-sent > .review, #step-pay.is-sent > .review-total,
#step-pay.is-sent > .field-error, #step-pay.is-sent > .step-actions { display: none; }
/* Review before paying */
.review { display: flex; flex-direction: column; gap: 12px; }
.review-part { padding: 14px 16px; border: 1.5px solid var(--sand-line); border-radius: 14px; background: var(--white); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -8px 0 4px; }
.review-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.review-head .text-btn { min-width: 44px; justify-content: flex-end; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 6px 12px; font-size: 15px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.review-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 0 4px; }
.review-total span { font-weight: 700; font-size: 18px; }
.review-total strong { font-family: var(--font-display); font-weight: 800; font-size: 30px; }
@media (max-width: 400px) { .review dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .review dd { margin-bottom: 6px; } }
.urgent-note { margin-top: 16px; }
.urgent-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Sticky bar (phones) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter-r) calc(10px + var(--safe-b)) var(--gutter-l);
  background: var(--white); border-top: 1px solid var(--sand-line); box-shadow: 0 -8px 24px rgba(20, 26, 34, 0.08);
}
.sticky-total { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sticky-total span { font-size: 13px; color: var(--muted); }
.sticky-total strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; white-space: nowrap; }
.sticky-bar .btn { min-height: 52px; padding: 0 22px; border-radius: 14px; flex: none; }
@media (min-width: 861px) { .sticky-bar { display: none !important; } }
@media (max-width: 860px) {
  body.has-sticky { padding-bottom: calc(80px + var(--safe-b)); }
  #step-vehicles .btn-go { display: none; }
}

/* ---------- Trip dialog ---------- */
.trip-dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: var(--cream); color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 26, 34, 0.3); overflow-y: auto; overscroll-behavior: contain;
}
.trip-dialog::backdrop { background: rgba(20, 26, 34, 0.55); }
.trip-dialog form { padding: 20px 24px 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -10px 12px 0; }
.dialog-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.seg { display: flex; gap: 4px; background: var(--sand); border-radius: 14px; padding: 4px; }
.seg button {
  flex: 1 1 0; min-height: 44px; border: 0; border-radius: 11px; font-size: 16px; font-weight: 700;
  cursor: pointer; padding: 0 12px; background: transparent; color: var(--ink); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.ac-field { position: relative; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper output { min-width: 32px; text-align: center; font-size: 18px; font-weight: 700; }
.stepper-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #B9B3A8; background: var(--white);
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.stepper-btn:disabled { opacity: 0.35; cursor: default; }
.trip-dialog .btn-block { margin-top: 20px; }
@media (max-width: 600px) {
  .trip-dialog { width: 100%; max-width: none; max-height: none; height: 100%; margin: 0; border-radius: 0; }
  .trip-dialog form { padding: 16px var(--gutter-r) calc(24px + var(--safe-b)) var(--gutter-l); }
}

/* "Almost booked" dialog */
.stay-dialog {
  width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 28px 24px 16px; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); text-align: center;
  box-shadow: 0 24px 60px rgba(20, 26, 34, 0.3);
}
.stay-dialog::backdrop { background: rgba(20, 26, 34, 0.55); }
.stay-dialog h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.stay-sub { margin: 0 0 16px; color: var(--muted); }
.stay-perks { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--sand-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px 16px; text-align: left; font-size: 15px; }
.stay-perks li { display: flex; gap: 10px; }
.stay-perks li::before { content: ''; flex: none; width: 10px; height: 5px; margin: 6px 3px 0; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.stay-note { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.stay-dialog .btn-block + .btn-block { margin-top: 10px; }
.stay-leave { margin-top: 6px; color: var(--muted); font-weight: 600; }

/* Address suggestions (places.js) */
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25;
  margin: 0; padding: 6px; list-style: none; background: var(--white); color: var(--ink);
  border: 1.5px solid #E2DED5; border-radius: 14px; box-shadow: 0 16px 36px rgba(20, 26, 34, 0.18);
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
}
.ac-list [role="option"] { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.ac-list [role="option"][aria-selected="true"] { background: var(--sand); }
@media (hover: hover) { .ac-list [role="option"]:hover { background: var(--sand); } }
.ac-main { font-weight: 600; font-size: 16px; }
.ac-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-by { padding: 6px 12px 2px; text-align: right; font-size: 12px; color: #77716A; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .steps { gap: 20px; }
  .bar-btn-t { display: none; }
  .bar-btn { padding: 0; }
}
/* Tablets and phones: the steps get their own row under the logo, the bar scrolls away, and
   language, help and sign in move into the menu */
@media (min-width: 861px) { .menu-btn, .bar-menu { display: none !important; } }
@media (max-width: 860px) {
  .bar { position: relative; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .steps { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 8px; border-top: 1px solid #2A3340; min-height: 48px; }
  .bar-tools, .bar-signin { display: none; }
  .book { padding-top: 0; gap: 20px; }
}
@media (max-width: 480px) {
  .steps li:not([aria-current]) .steps-t { display: none; }
}
.bar-menu {
  position: absolute; z-index: 30; top: 60px; right: var(--gutter-r); width: min(320px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--sand-line); box-shadow: 0 16px 36px rgba(20, 26, 34, 0.3);
  max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
}
.bar-menu .lang-select { width: 100%; padding: 0 12px; border: 1.5px solid var(--field-line); background: var(--white); color: var(--ink); }
.menu-lang { margin-bottom: 8px; }
.menu-note { margin: 4px 10px; font-size: 14px; color: var(--muted); }

/* Trip line (phones) */
.trip-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  margin-bottom: 16px; padding: 10px 6px 10px 14px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--sand-line);
}
.trip-line-text { display: flex; flex-direction: column; min-width: 0; }
.trip-line-text strong { font-size: 16px; overflow-wrap: anywhere; }
.trip-line-text span { font-size: 14px; color: var(--muted); }
.trip-line-return { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 861px) { .trip-line { display: none !important; } }
/* Phones: the map only on the vehicle step, with the vehicles in a sheet over its bottom edge */
@media (max-width: 860px) {
  body:not([data-step="vehicles"]) .map-pane { display: none; }
  body[data-step="vehicles"] .map-pane:not([hidden]) + .main-pane {
    position: relative; z-index: 1; margin: -40px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l));
    padding: 22px var(--gutter-r) 0 var(--gutter-l); border-radius: 22px 22px 0 0; background: var(--cream);
    box-shadow: 0 -6px 20px rgba(20, 26, 34, 0.12);
  }
  body[data-step="vehicles"] .map-pane:not([hidden]) + .main-pane::before {
    content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--field-line);
  }
  .map { height: 240px; }
}
.sheet-handle { display: none; }

/* Return calendar */
.ret-trip { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.ret-stop { position: relative; margin: 0; padding-left: 18px; font-weight: 700; overflow-wrap: anywhere; }
.ret-stop::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.ret-stop.is-to::before { background: var(--amber); }
.ret-pax { margin: 4px 0 0 18px; font-size: 14px; color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; }
.cal-head strong { font-size: 17px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-wd { padding: 6px 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.dp-day {
  min-height: 40px; min-width: 32px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer;
}
.dp-day:disabled { color: var(--field-line); cursor: default; }
.dp-day[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .dp-day:not(:disabled):not([aria-pressed="true"]):hover { background: var(--sand); } }
.ret-time { margin-top: 16px; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 600px) {
  .brand-name { display: none; }
  .bar-end { gap: 6px; }
}
@media (max-width: 340px) {
  :root { --gutter-l: max(16px, env(safe-area-inset-left)); --gutter-r: max(16px, env(safe-area-inset-right)); }
  .bar-end { gap: 4px; }
  .lang svg { display: none; }
  .lang-select { padding: 0 6px; }
  .steps li { font-size: 15px; gap: 5px; }
  .steps li:not([aria-current]) .steps-t { display: none; }
  .yb { padding: 16px; }
  .vo { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active, .vo:active { transform: none; }
}

/* Dark mode: vehicle photos have white backgrounds, so they sit on a light plate */
[data-theme-dark] .vo-img { mix-blend-mode: normal; background: #EDE8DD; border-radius: 10px; }
