/* ---------- Booking form (hero widget + /book/ trip step) ---------- */
.bk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 14px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.bk-tz { font-size: 0.8rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.bk-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); border: 0; }
.bk-mode { min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 580; color: var(--ink-2); font-size: 0.95rem; padding: 0 8px; white-space: nowrap; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.bk-mode[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(12, 12, 20, 0.08), 0 4px 12px -6px rgba(12, 12, 20, 0.18); }
.bk-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-field { display: grid; gap: 6px; min-width: 0; position: relative; }
.bk-field--full { grid-column: 1 / -1; }
.bk-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.bk-control { position: relative; display: flex; align-items: center; }
.bk-control > .icon { position: absolute; left: 14px; color: var(--brand); pointer-events: none; }
.bk-input, .bk-select, .bk-trigger {
  width: 100%; min-height: 52px; border-radius: var(--r-ctl); border: 1px solid transparent;
  background: var(--surface-2); padding: 0 14px 0 44px; font-size: 16px; color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.bk-input::placeholder { color: var(--ink-3); opacity: 1; }
.bk-input:hover, .bk-select:hover, .bk-trigger:hover { border-color: var(--line-strong); }
.bk-input:focus, .bk-select:focus, .bk-trigger:focus-visible { outline: none; background: var(--surface); border-color: var(--focus); box-shadow: 0 0 0 4px rgba(10, 102, 255, 0.14); }
.bk-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: none; }
.bk-select + .chev { position: absolute; right: 14px; pointer-events: none; color: var(--ink-3); }
.bk-trigger { text-align: left; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.bk-trigger span { overflow: hidden; text-overflow: ellipsis; }
.bk-trigger .placeholder { color: var(--ink-3); }
.bk-field[data-invalid] .bk-input, .bk-field[data-invalid] .bk-trigger, .bk-field[data-invalid] .bk-select { border-color: var(--err); }
.bk-err { color: var(--err); font-size: 0.85rem; font-weight: 520; display: flex; gap: 6px; align-items: flex-start; }
.bk-err[hidden] { display: none; }
.bk-hint { color: var(--ink-3); font-size: 0.82rem; }
.bk-swap { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: 0 1px 2px rgba(12, 12, 20, 0.08); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.bk-swap:hover { background: var(--surface-2); }
.bk-input.has-swap { padding-right: 56px; }
.bk-row-return[hidden], [data-when][hidden] { display: none !important; }
.bk-actions { display: grid; gap: 10px; }
.bk-alert { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--err-bg); color: var(--err); font-size: 0.92rem; }
.bk-alert[hidden] { display: none; }
.bk-alert--info { background: var(--surface-2); color: var(--ink-2); }
.bk-alert a, .bk-alert button.linklike { color: inherit; font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; }
.bk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  .bk-fields { grid-template-columns: minmax(0, 1fr); }
  .bk-fields .bk-field--half-sm { grid-column: auto; }
  .bk-fields--dt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bk-fields--dt { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; }
.bk-fields--dt .bk-input, .bk-fields--dt .bk-trigger { padding-left: 40px; }
@media (max-width: 359px) { .bk-fields--dt { grid-template-columns: minmax(0, 1fr); } .bk-mode { font-size: 0.86rem; } }

/* Stepper (passengers / luggage) */
.stepper { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border: 1px solid transparent; border-radius: var(--r-ctl); padding: 0 6px 0 14px; background: var(--surface-2); }
.stepper output { font-weight: 600; min-width: 2ch; text-align: center; }
.stepper-btns { display: flex; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: 0 1px 2px rgba(12, 12, 20, 0.08); display: inline-flex; align-items: center; justify-content: center; }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }

/* Address suggestions (combobox listbox) */
.ac-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); max-height: min(320px, 50vh); overflow-y: auto; }
.ac-list[hidden] { display: none; }
.ac-opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 10px; border-radius: 10px; cursor: pointer; min-height: 48px; align-items: center; }
.ac-opt .icon { color: var(--ink-3); width: 18px; height: 18px; }
.ac-opt strong { display: block; font-weight: 600; font-size: 0.95rem; }
.ac-opt span { display: block; font-size: 0.83rem; color: var(--ink-3); }
.ac-opt[aria-selected="true"], .ac-opt:hover { background: var(--surface-2); }
.ac-foot { font-size: 0.72rem; color: var(--ink-3); padding: 6px 10px 2px; text-align: right; }
.ac-status { padding: 10px; font-size: 0.9rem; color: var(--ink-3); }
.ac-head { padding: 8px 10px 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Dialogs: centered on desktop, bottom sheet on phones ---------- */
.dlg-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(8 20 34 / 0.42); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.2s var(--ease); }
.dlg-backdrop[data-open] { opacity: 1; }
.dlg { width: min(720px, 100%); max-height: min(88dvh, 760px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; transform: translateY(8px) scale(0.985); transition: transform 0.24s var(--ease); }
.dlg-backdrop[data-open] .dlg { transform: none; }
.dlg--narrow { width: min(420px, 100%); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h2 { font-size: 1.1rem; }
.dlg-close { width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.dlg-body { padding: 4px 20px 16px; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); position: sticky; bottom: 0; }
.dlg-foot .btn { min-width: 120px; }
.dlg-grabber { display: none; }
@media (max-width: 640px) {
  .dlg-backdrop { place-items: end stretch; padding: 0; }
  .dlg { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .dlg-backdrop[data-open] .dlg { transform: none; }
  .dlg-grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; }
  .dlg-foot .btn { flex: 1; }
}
body.dlg-lock { overflow: hidden; }

/* Calendar */
.cal { display: grid; gap: 24px; grid-template-columns: repeat(var(--months, 2), minmax(0, 1fr)); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav button { width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.cal-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-month h3 { font-size: 1rem; text-align: center; margin-bottom: 10px; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); padding: 4px 0 8px; }
.cal-grid td { padding: 2px; text-align: center; }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 48px; min-height: 40px; border-radius: var(--r-pill); border: 1px solid transparent; background: transparent; font-weight: 540; font-variant-numeric: tabular-nums; position: relative; }
.cal-day:hover:not(:disabled) { background: var(--surface-2); }
.cal-day[aria-current="date"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--focus); }
.cal-day[aria-selected="true"] { background: var(--action); color: var(--action-ink); font-weight: 700; border-color: var(--action); }
.cal-day:disabled { color: var(--line-strong); cursor: not-allowed; text-decoration: line-through; text-decoration-color: transparent; }
.cal-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
@media (max-width: 640px) { .cal { --months: 1 !important; } }

/* Time picker */
.time-groups { display: grid; gap: 16px; }
.time-group h3 { font-size: 0.85rem; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time-opt { min-height: 46px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); font-weight: 560; font-variant-numeric: tabular-nums; }
.time-opt:hover:not(:disabled) { background: var(--surface-3); }
.time-opt[aria-pressed="true"] { background: var(--action); color: var(--action-ink); font-weight: 700; }
.time-opt:disabled { opacity: 0.35; cursor: not-allowed; }
.time-note { font-size: 0.85rem; color: var(--ink-3); margin-top: 12px; }

/* ---------- /book/ application ---------- */
.book-shell { padding: 24px 0 72px; }
.book-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .book-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .book-summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.steps li { flex: 1; min-width: 92px; display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-3); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li[data-state="done"]::before, .steps li[data-state="current"]::before { background: var(--brand); }
.steps li[data-state="current"] { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.panel h2 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.panel[hidden] { display: none; }
.trip-line { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 0.93rem; }
.trip-line span { display: inline-flex; align-items: center; gap: 6px; }
.veh-list { display: grid; gap: 12px; }
.veh { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid transparent; border-radius: var(--r-card); background: var(--surface-2); text-align: left; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.veh:hover:not([aria-disabled="true"]) { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-md); }
.veh[aria-pressed="true"] { background: var(--surface); border-color: var(--focus); box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.18); }
.veh[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.veh-media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-3); }
.veh-media img { width: 100%; height: 100%; object-fit: cover; }
.veh-info { display: grid; gap: 6px; min-width: 0; }
.veh-info h3 { font-size: 1.05rem; }
.veh-price { text-align: right; display: grid; gap: 2px; }
.veh-price strong { font-size: 1.3rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.veh-price span { font-size: 0.78rem; color: var(--ink-3); }
.veh-why { font-size: 0.82rem; color: var(--warn); }
@media (max-width: 640px) {
  .veh { grid-template-columns: 112px minmax(0, 1fr); }
  .veh-price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
}
.skeleton { border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; height: 112px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.fld { display: grid; gap: 6px; }
.fld label, .fld .lbl { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 50px; border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--surface-2); padding: 12px 14px; font-size: 16px; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; background: var(--surface); border-color: var(--focus); box-shadow: 0 0 0 4px rgba(10, 102, 255, 0.14); }
.fld[data-invalid] input { border-color: var(--err); }
.opt-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.opt-row:first-child { border-top: 0; }
.opt-row p { font-size: 0.85rem; color: var(--ink-3); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color 0.2s var(--ease); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease); }
.switch input:checked + span { background: var(--focus); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-row button { min-height: 44px; min-width: 64px; border-radius: var(--r-pill); border: 0; background: var(--surface-2); font-weight: 600; padding: 0 16px; }
.tip-row button[aria-pressed="true"] { background: var(--action); color: var(--action-ink); }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table td { padding: 8px 0; color: var(--ink-2); }
.price-table td:last-child { text-align: right; color: var(--ink); }
.price-table tr.total td { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 640; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.status-badge--ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.status-badge--pending { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.legs { display: grid; gap: 10px; }
.leg { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 14px; display: grid; gap: 6px; }
.leg header { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 640; }
.policy-box { border-radius: var(--r-ctl); background: var(--surface-2); padding: 16px; display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.policy-box h3 { font-size: 0.95rem; color: var(--ink); }
.policy-box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--focus); }
.sticky-cta { display: none; }
@media (max-width: 1023px) {
  .sticky-cta { display: flex; position: sticky; bottom: 0; z-index: 20; gap: 12px; align-items: center; justify-content: space-between; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); }
  .sticky-cta[hidden] { display: none; }
}
.done-hero { display: grid; gap: 12px; justify-items: start; }
.done-hero .icon { width: 44px; height: 44px; color: var(--ok); }
/* The sticky pay bar must never cover fields: reserve space and scroll targets above it. */
@media (max-width: 1023px) {
  html:has(.sticky-cta:not([hidden])) { scroll-padding-bottom: 110px; }
  .book-shell:has(.sticky-cta:not([hidden])) { padding-bottom: 24px; }
  .book-shell:has(.sticky-cta:not([hidden])) .book-grid { margin-bottom: 96px; }
}

/* Inside the /book/ panel the form is not a second card. */
.panel .bk { border: 0; box-shadow: none; padding: 0; background: transparent; }
.panel .bk-head { display: none; }

/* Apple-style detail: blue glyphs, soft-blue icon tiles, two-line date/time values. */
.bk-trigger { padding-left: 10px; gap: 10px; }
.bk-fields--dt .bk-trigger { padding-left: 8px; }
.bk-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.bk-ico .icon { width: 18px; height: 18px; }
.bk-tv { display: grid; min-width: 0; line-height: 1.15; text-align: left; }
.bk-tv > [data-display] { font-weight: 600; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.bk-tv > [data-display].placeholder { font-weight: 500; color: var(--ink-2); }
.bk-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.bk-trigger:not(:has(.placeholder)) .bk-sub { color: var(--brand-text); }
.stepper .lbl .icon, .trip-line .icon, .capacity .icon, .policy-list .icon, .route-link > .icon:first-child, .leg .icon { color: var(--brand); }
.bk-airport-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--brand-text); background: var(--brand-soft); border-radius: 12px; padding: 8px 10px; margin-top: 6px; }
.bk-airport-note .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--brand); flex: none; }
.ac-opt .icon { color: var(--brand); }

.veh-info .models, .vehicle-card .models, .veh .models { font-size: 13px; color: var(--ink-3); margin: -2px 0 2px; }
.comfort-note { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--brand-soft); color: var(--ink-2); font-size: 14px; }
.comfort-note strong { color: var(--ink); }
.comfort-note .consent { font-size: 13.5px; }
