/* ==========================================================================
   Gevos — styles
   Flat, minimal. One typeface (Figtree — free, SIL Open Font License).
   Navy + white + grey, with a single blue accent for primary actions.
   ========================================================================== */

:root {
  --ink: #0b1026;          /* navy — text, header, dark sections, secondary buttons, selected states */
  --ink-hover: #252b45;
  --white: #ffffff;
  --surface: #f3f4f6;      /* inputs, cards */
  --surface-2: #e8e9ed;    /* hover */
  --line: #e5e7eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #5e6372;
  --muted-light: #9aa0b0;
  --blue: #3d5afe;         /* accent — ONLY the main action on a page */
  --blue-600: #2f49e0;
  --white-hover: #e9eaee;  /* white button hover on navy */
  --placeholder: #8a8f9c;
  --error: #d93025;
  --whatsapp: #25d366;     /* WhatsApp brand green, floating button only */
  --on-dark-hover: rgba(255, 255, 255, 0.08);
  --on-dark-active: rgba(255, 255, 255, 0.12);
  --on-dark-muted: rgba(255, 255, 255, 0.75);
  --on-dark-border: rgba(255, 255, 255, 0.3);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, address, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.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; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-ink { background: var(--ink); color: var(--white); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.25vw, 1.15rem); color: var(--muted); max-width: 52ch; }
.bg-ink .lead { color: var(--muted-light); }

.pill-label { font-size: 14px; font-weight: 500; color: var(--muted); justify-self: start; }
.bg-ink .pill-label { color: var(--muted-light); }

.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }

/* ---------- Utilities ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stack { display: grid; gap: 12px; }
.lead-narrow { max-width: 40ch; }
.mt-12 { margin-top: 12px; }
.w-full { width: 100%; }
.align-start { align-items: start; }
.center-screen { min-height: 70svh; display: grid; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bg-h: var(--ink-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; white-space: nowrap;
  cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--bg-h); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-blue { --bg: var(--blue); --fg: var(--white); --bg-h: var(--blue-600); }
.btn-light { --bg: var(--white); --fg: var(--ink); --bg-h: var(--white-hover); }
.btn-soft { --bg: var(--surface); --fg: var(--ink); --bg-h: var(--surface-2); }
.btn-outline-light { --bg: transparent; --fg: var(--white); --bg-h: var(--on-dark-hover); border: 1px solid var(--on-dark-border); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link svg { width: 16px; height: 16px; fill: currentColor; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--ink); color: var(--white); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.brand-badge { display: none; }

.nav { display: none; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); transition: background-color .2s, color .2s; }
.nav a:hover { color: var(--white); background: var(--on-dark-hover); }
.nav a[aria-current="page"] { color: var(--white); background: var(--on-dark-active); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.header-phone:hover { background: var(--on-dark-hover); }
.header-phone svg { width: 15px; height: 15px; fill: currentColor; }
.header-actions .btn { display: none; }

.menu-toggle { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.menu-toggle:hover { background: var(--on-dark-hover); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (min-width: 560px) { .header-actions .btn { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; } .menu-toggle { display: none; } }
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 90; background: var(--white);
  display: flex !important; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .25s; }
.mobile-nav { display: grid; }
.mobile-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.mobile-nav a[aria-current="page"] { font-weight: 700; }
.mobile-nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--ink); }
.mobile-menu-foot { display: grid; gap: 10px; }
.mobile-menu-foot p { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  padding-block: clamp(28px, 5vw, 56px);
}
.hero > .container { width: 100%; }
@media (max-width: 1023px) { .hero { align-items: flex-start; } }
@media (min-width: 1024px) { .hero { padding-block: 32px; } }

.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); } }
.hero-copy { position: relative; z-index: 5; display: grid; gap: 16px; justify-items: start; }
.hero-copy .lead { margin-bottom: 8px; }

.hero-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.hero-visual picture { display: contents; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .hero .hero-visual { aspect-ratio: auto; align-self: stretch; min-height: 520px; max-height: calc(100svh - var(--header-h) - 64px); }
}

/* Inner page hero */
.page-hero { padding-block: clamp(32px, 5vw, 64px); }
.page-hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Booking form ---------- */
.booking { position: relative; z-index: 5; width: 100%; display: grid; gap: 12px; }
.trip-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); justify-self: start; }
.trip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.trip-toggle label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.trip-toggle label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trip-toggle input:checked + label { background: var(--ink); color: var(--white); }
.trip-toggle input:focus-visible + label { outline: 2px solid var(--blue); }

.route { position: relative; display: grid; gap: 8px; }
.route-line { position: absolute; left: 25px; top: 28px; bottom: 28px; width: 2px; background: var(--ink); z-index: 1; }
.loc { position: relative; }
.loc.ac-open { z-index: 40; }
.loc .marker { position: absolute; left: 20px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.loc .marker.start { border-radius: 50%; background: var(--ink); }
.loc .marker.end { border-radius: 2px; background: var(--ink); }
.loc input { padding-left: 48px !important; padding-right: 56px !important; }
.swap { position: absolute; right: 10px; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -19px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease), background-color .2s; }
.swap:hover { background: var(--surface); }
.swap.spin { transform: rotate(180deg); }
.swap svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Fields */
.field { position: relative; display: grid; gap: 6px; }
.field > label { font-size: 14px; font-weight: 500; }
.field > label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--surface); font-size: 16px; font-weight: 500; line-height: 1.3; outline: none;
  appearance: none; -webkit-appearance: none; transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 128px; resize: vertical; font-weight: 400; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); font-weight: 400; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--white); border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%230b1026' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; cursor: pointer; }
.field .icon { position: absolute; z-index: 1; left: 16px; bottom: 18px; width: 20px; height: 20px; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field.has-icon input { padding-left: 46px; }
.field input[type="date"], .field input[type="time"] { position: relative; cursor: text; }
.field input::-webkit-date-and-time-value { text-align: left; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 479px) { .row-2.stack-sm { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 12px; }


.booking-actions { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 480px) { .booking-actions.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form-success { display: none; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); font-size: 15px; font-weight: 500; }
.form-success.show { display: block; }

/* Contact form panel */
.form-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }

/* ---------- Place autocomplete ---------- */
.ac-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  max-height: min(380px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; margin: 0; list-style: none; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s;
}
.ac-list.open { opacity: 1; visibility: visible; transition: opacity .15s; }
.ac-head { padding: 10px 12px 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ac-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.ac-item:hover, .ac-item.active { background: var(--surface); }
.ac-icon { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.ac-item:hover .ac-icon, .ac-item.active .ac-icon { background: var(--surface-2); }
.ac-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-text { min-width: 0; display: grid; line-height: 1.35; }
.ac-text strong { font-size: 15.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-text strong mark { background: none; color: inherit; font-weight: 700; }
.ac-text small { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-action strong { font-weight: 600; }
.ac-status { display: flex; align-items: center; gap: 12px; padding: 16px 14px; font-size: 14.5px; color: var(--muted); }
.ac-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Suggestion cards: photo-led; swipeable row on phones ---------- */
.suggest {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.suggest::-webkit-scrollbar { display: none; }
.s-card { flex: 0 0 78%; scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
@media (min-width: 640px) {
  .suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .s-card { flex: none; }
}
@media (min-width: 1024px) { .suggest { grid-template-columns: repeat(4, 1fr); } }

.s-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.s-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.s-card:hover .s-media img { transform: scale(1.04); }
.s-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.s-title { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.s-text { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.s-arrow { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: background-color .25s, color .25s; }
.s-arrow svg { width: 15px; height: 15px; fill: currentColor; transition: transform .35s var(--ease); }
.s-card:hover .s-arrow { background: var(--ink); color: var(--white); }
.s-card:hover .s-arrow svg { transform: translateX(2px); }
.s-card:focus-visible { outline: none; }
.s-card:focus-visible .s-media { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Route cards (home) ---------- */
.fares { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fares { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fares { grid-template-columns: repeat(3, 1fr); } }
.fare { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); text-align: left; background: var(--white); cursor: pointer; transition: border-color .2s; }
.fare:hover { border-color: var(--ink); }
.fare-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fare-tag { font-size: 13px; font-weight: 500; color: var(--muted); }
.fare-route { display: grid; grid-template-columns: 12px 1fr; gap: 4px 14px; align-items: center; font-weight: 500; font-size: 16.5px; }
.fare-route .m { width: 9px; height: 9px; justify-self: center; background: var(--ink); }
.fare-route .m.a { border-radius: 50%; }
.fare-route .m.b { border-radius: 2px; }
.fare-route .l { width: 1.5px; height: 12px; justify-self: center; background: var(--line); grid-column: 1; }
.fare-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.fare-cta svg { width: 15px; height: 15px; fill: currentColor; transition: transform .3s var(--ease); }
.fare:hover .fare-cta svg { transform: translateX(3px); }

/* ---------- Ride list ---------- */
.rides { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ride { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ride img { width: 88px; height: 72px; object-fit: cover; border-radius: 10px; }
.ride h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 18px; font-weight: 600; }
.ride p { font-size: 15px; color: var(--muted); }
.ride .tag { font-size: 13px; font-weight: 500; color: var(--muted); }
@media (min-width: 640px) { .ride { grid-template-columns: 128px 1fr; } .ride img { width: 128px; height: 88px; } }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split-copy { display: grid; gap: 16px; justify-items: start; }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
@media (min-width: 960px) { .frame.tall { aspect-ratio: 4 / 4.4; } }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.checks { display: grid; gap: 10px; margin-block: 4px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks .tick { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.checks .tick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Feature grid (dark) ---------- */
.features { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-dark); }
.feature { display: grid; gap: 8px; align-content: start; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.feature p { color: var(--muted-light); font-size: 15px; max-width: 38ch; }
.f-icon { display: block; margin-bottom: 8px; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { min-width: 0; padding: 24px 24px 24px 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.stat > span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.stats-text .stat strong { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.015em; }

/* ---------- Route cards (explore) ---------- */
.routes { display: grid; gap: 0 32px; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .routes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.route-card small { display: block; font-size: 13px; color: var(--muted); }
.route-card strong { font-size: 18px; font-weight: 600; }
.route-card .arrow-btn { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: background-color .2s, color .2s; }
.route-card .arrow-btn svg { width: 15px; height: 15px; fill: currentColor; }
.route-card:hover .arrow-btn { background: var(--ink); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery figure { border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); width: 100%; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-card .c-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.c-card .c-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-card small { display: block; font-size: 13px; color: var(--muted); }
.c-card strong { font-size: 16px; font-weight: 500; word-break: break-word; }
a.c-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); background: var(--surface); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(48px, 6vw, 80px); }
.cta-box { display: grid; gap: 24px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: var(--ink); color: var(--white); }
.cta-box .lead { color: var(--muted-light); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .cta-box { grid-template-columns: 1.3fr 1fr; } .cta-actions { justify-content: flex-end; } }
@media (max-width: 479px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(56px, 7vw, 80px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--muted-light); font-size: 15px; max-width: 40ch; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-list { display: grid; gap: 10px; font-size: 15px; color: var(--muted-light); }
.footer-list a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--muted-light); font-size: 14px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background-color .2s; }
.footer-social a:hover { background: var(--on-dark-hover); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.wa-float.show { opacity: 1; visibility: visible; transition: opacity .3s; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.menu-open .wa-float { opacity: 0; visibility: hidden; }

/* ---------- Motion (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .1s; } .d3 { transition-delay: .15s; } .d4 { transition-delay: .2s; }
.load { animation: loadUp .7s var(--ease) both; }
.load.l1 { animation-delay: .05s; } .load.l2 { animation-delay: .1s; } .load.l3 { animation-delay: .15s; } .load.l4 { animation-delay: .2s; }
@keyframes loadUp { from { opacity: 0; transform: translateY(10px); } }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
.stat .stat-word { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pos-left { object-position: 30% 50%; }

/* ---------- Return slot: fixed height, cross-fade, no layout shift ---------- */
.return-slot { position: relative; height: 56px; }
.add-return, .return-fields {
  position: absolute; inset: 0;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.add-return {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: transparent;
  font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.add-return:hover { border-color: var(--ink); color: var(--ink); }
.add-return svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.return-fields { opacity: 0; visibility: hidden; transform: translateY(4px); }
.booking.is-return .add-return { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.booking.is-return .return-fields { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.booking:not(.is-return) .add-return { transition: opacity .25s var(--ease), transform .35s var(--ease); }
.remove-return {
  position: absolute; right: 8px; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px;
  border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.remove-return:hover { background: var(--surface-2); color: var(--ink); }
.remove-return svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.return-fields .field:last-of-type .pick-display { padding-right: 44px; }

/* ---------- Animated trip switch (pure CSS, no JS needed) ---------- */
.trip-toggle { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trip-toggle label { position: relative; z-index: 1; justify-content: center; transition: color .35s var(--ease); }
.trip-toggle input:checked + label { background: transparent; color: var(--white); }
.trip-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--ink);
  transition: transform .45s cubic-bezier(.65, 0, .25, 1.1);
}
#trip-return:checked ~ .trip-thumb { transform: translateX(100%); }
.trip-toggle label svg { transition: transform .45s var(--ease); }
#trip-return:checked + label svg { transform: rotate(180deg); }

/* Return fields: slide in one after the other */
.return-fields .field { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.booking.is-return .return-fields .field { opacity: 1; transform: none; }
.booking.is-return .return-fields .field:nth-child(2) { transition-delay: .07s; }
.add-return svg { transition: transform .45s var(--ease); }
.add-return:hover svg { transform: rotate(90deg); }


/* The contact page already is the call to action */
body[data-page="contact"] .cta-band { display: none; }
/* Keep hero columns from being widened by their content */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); } }
.hero-copy, .booking { min-width: 0; max-width: 100%; }

/* Short laptop screens: compact the hero so the whole form sits above the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-block: 16px; }
  .hero .h1 { font-size: 3.1rem; }
  .hero-copy { gap: 10px; }
  .hero-copy .lead { font-size: 1rem; margin-bottom: 4px; }
  .booking { gap: 10px; }
  .field input, .field select { min-height: 50px; }
  .return-slot { height: 50px; }
  .route-line { top: 25px; bottom: 25px; }
}

/* ---------- Contact hero: fits one screen, columns centred against each other ---------- */
.contact-hero { display: flex; align-items: center; }
.contact-hero > .container { width: 100%; }
@media (min-width: 960px) {
  .contact-hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: 32px; }
  .contact-hero .page-hero-grid { align-items: center; }
}
@media (min-width: 960px) and (max-height: 820px) {
  .contact-hero { padding-block: 16px; }
  .contact-hero .h1 { font-size: 3rem; }
  .contact-hero .hero-copy { gap: 10px; }
  .contact-hero .form-panel { padding: 20px 24px; gap: 10px; }
  .contact-hero .field input, .contact-hero .field select { min-height: 48px; }
  .contact-hero .field textarea { min-height: 96px; }
  .contact-hero .c-card { padding-block: 12px; }
}
.split-copy .map-frame { margin-top: 8px; }

/* ---------- Step 2: details panel replaces the photo in place ---------- */
.hero-stage { position: relative; display: grid; min-width: 0; }
@media (min-width: 1024px) {
  .hero-stage { align-self: stretch; }
  .hero .hero-visual { aspect-ratio: auto; height: 100%; min-height: 520px; max-height: none; }
}
.hero-visual { transition: opacity .2s var(--ease); }
.hero-stage.leaving .hero-visual, .hero-stage.leaving .details-panel { opacity: 0; transition: opacity .2s var(--ease); }

.details-panel {
  display: none; align-content: start; gap: 14px;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
}
.hero-stage.show-details .hero-visual { display: none; }
.hero-stage[data-step="2"] [data-cars],
.hero-stage[data-step="3"] [data-details] { display: grid; animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.details-head { display: flex; justify-content: space-between; align-items: center; }
.details-back { display: inline-flex; align-items: center; gap: 6px; margin-left: -8px; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.details-back:hover { background: var(--surface); }
.details-back svg { width: 16px; height: 16px; fill: currentColor; }
.details-step { font-size: 13px; font-weight: 500; color: var(--muted); }
.details-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; outline: none; }
.details-grid { display: grid; gap: 12px; }
.details-panel .booking-actions { margin-top: 6px; }

/* Left column after Continue: the button becomes a quiet pointer to the panel */
.step-hint { display: none; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; }
.step-hint svg { width: 18px; height: 18px; fill: currentColor; animation: nudge 1.6s var(--ease) infinite; }
@media (max-width: 1023px) { .step-hint svg { transform: rotate(90deg); animation-name: nudgeDown; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes nudgeDown { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(4px); } }
.booking.step-2 [data-continue] { display: none; }
.booking.step-2 .step-hint { display: flex; }
@media (min-width: 1024px) and (max-height: 820px) {
  .details-panel { padding: 20px 24px; gap: 10px; }
  .details-grid { gap: 10px; }
  .details-title { font-size: 1.5rem; }
}
.booking-step2 .wa-float { opacity: 0; visibility: hidden; }

/* ---------- Inline field errors ---------- */
.field-error { display: none; font-size: 13.5px; color: var(--error); line-height: 1.35; }
.field.has-error .field-error { display: block; }
.field.has-error input { border-color: var(--error); background: var(--white); }
.field { align-content: start; }

/* ---------- Trip card in "Your details" ---------- */
.trip-card { display: grid; gap: 0; border-radius: var(--r-sm); background: var(--surface); }
.trip-card.is-return { grid-template-columns: 1fr 1fr; }
.trip-leg { min-width: 0; display: grid; gap: 10px; padding: 14px 16px; }
.trip-card.is-return .trip-leg + .trip-leg { border-left: 1px solid var(--line); }
.trip-leg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.trip-leg-label { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.trip-leg-when { font-size: 14px; font-weight: 500; }
.trip-leg-route { position: relative; display: grid; gap: 8px; }
.trip-leg-route::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 1.5px; background: var(--ink); opacity: .35; }
.trip-stop { min-width: 0; display: flex; align-items: center; gap: 12px; }
.trip-mark { position: relative; z-index: 1; width: 9px; height: 9px; flex: none; background: var(--ink); }
.trip-mark.a { border-radius: 50%; }
.trip-mark.b { border-radius: 2px; }
.trip-place { min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 479px) {
  .trip-card.is-return { grid-template-columns: 1fr; }
  .trip-card.is-return .trip-leg + .trip-leg { border-left: 0; border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .details-panel { gap: 8px; padding-block: 16px; }
  .details-title { font-size: 1.35rem; }
  .trip-leg { padding: 10px 14px; gap: 6px; }
  .trip-leg-route { gap: 4px; }
  .trip-leg-route::before { top: 8px; bottom: 8px; }
}

/* ---------- Theme toggle button (header) ---------- */
/* smooth colour change only while switching, never on page load */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease) !important; }

/* ==========================================================================
   DARK THEME — black, white and Gevos yellow (#FFCF4A).
   Only applies under [data-theme="dark"]; the light theme above is untouched.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f5;              /* text / foreground */
  --ink-hover: #dcdcdc;
  --white: #0a0a0a;            /* page background */
  --surface: #171717;
  --surface-2: #222222;
  --line: #2a2a2a;
  --muted: #a1a1a1;
  --muted-light: #a1a1a1;
  --blue: #ffcf4a;             /* accent becomes Gevos yellow */
  --blue-600: #f5c02e;
  --white-hover: #1c1c1c;
  --placeholder: #6f6f6f;
  --error: #ff7a6b;
  --yellow: #ffcf4a;
  --yellow-hover: #f5c02e;
  --black: #000000;
}
[data-theme="dark"] body { background: var(--white); }

/* Areas that are dark in both themes: keep them black with white text */
[data-theme="dark"] .site-header,
[data-theme="dark"] .bg-ink,
[data-theme="dark"] .site-footer { --ink: #000000; --white: #ffffff; --ink-hover: #1a1a1a; }
[data-theme="dark"] .site-header { background: #000; color: #fff; }
/* divider drawn as an overlay so it takes no space: the header content never shifts between themes */
[data-theme="dark"] .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #1f1f1f; pointer-events: none; }
[data-theme="dark"] .site-footer { position: relative; background: #000; color: #fff; }
[data-theme="dark"] .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #1f1f1f; pointer-events: none; }
[data-theme="dark"] .bg-ink { background: #111111; color: #fff; }

/* Yellow = primary action, with black text */
[data-theme="dark"] .btn-blue { --bg: var(--yellow); --fg: #000; --bg-h: var(--yellow-hover); }
[data-theme="dark"] .site-header .btn-light,
[data-theme="dark"] .mobile-menu .btn-blue { --bg: var(--yellow); --fg: #000; --bg-h: var(--yellow-hover); }
[data-theme="dark"] .nav a[aria-current="page"] { color: var(--yellow); background: rgba(255, 207, 74, .12); }

/* "Ready when you are" banner: yellow block, black text */
[data-theme="dark"] .cta-box { background: var(--yellow); color: #000; }
[data-theme="dark"] .cta-box .lead { color: rgba(0, 0, 0, .7); }
[data-theme="dark"] .cta-box .btn-light { --bg: #000; --fg: #fff; --bg-h: #1a1a1a; }
[data-theme="dark"] .cta-box .btn-outline-light { --fg: #000; --bg-h: rgba(0, 0, 0, .06); border-color: rgba(0, 0, 0, .35); }

/* Booking form details */
[data-theme="dark"] .trip-thumb { background: var(--yellow); }
[data-theme="dark"] .trip-toggle input:checked + label { color: #000; }
[data-theme="dark"] .route-line, [data-theme="dark"] .loc .marker.start { background: #f5f5f5; }
[data-theme="dark"] .loc .marker.end { background: var(--yellow); }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23f5f5f5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { border-color: var(--yellow); background-color: #0f0f0f; }
[data-theme="dark"] .field.has-error input { background: #0f0f0f; }
[data-theme="dark"] .trip-mark.b { background: var(--yellow); }
[data-theme="dark"] .add-return:hover { border-color: var(--yellow); color: var(--yellow); }
[data-theme="dark"] .step-hint svg { color: var(--yellow); }

/* Small yellow details */
[data-theme="dark"] .checks .tick svg { stroke: var(--yellow); }
[data-theme="dark"] .bg-ink .f-icon svg { stroke: var(--yellow); }
[data-theme="dark"] .s-card:hover .s-arrow, [data-theme="dark"] .route-card:hover .arrow-btn { background: var(--yellow); color: #000; }
[data-theme="dark"] .mobile-nav a[aria-current="page"]::after { background: var(--yellow); }
[data-theme="dark"] ::selection { background: var(--yellow); color: #000; }

/* Imagery and embeds sit comfortably on black */
[data-theme="dark"] .hero-visual img, [data-theme="dark"] .frame img, [data-theme="dark"] .s-media img, [data-theme="dark"] .ride img, [data-theme="dark"] .gallery img { filter: brightness(.92); }
[data-theme="dark"] .map-frame { filter: invert(.92) hue-rotate(180deg) contrast(.9); }

/* Dark theme: white input boxes with black text */
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background-color: #ffffff; color: #0a0a0a; border-color: transparent; }
[data-theme="dark"] .field input:hover,
[data-theme="dark"] .field select:hover,
[data-theme="dark"] .field textarea:hover { background-color: #f1f1f1; }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field.has-error input { background-color: #ffffff; }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { border-color: var(--yellow); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: #8a8a8a; }
[data-theme="dark"] .field .icon { stroke: #0a0a0a; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] .field select option { background: #ffffff; color: #0a0a0a; }
[data-theme="dark"] .loc .marker.start, [data-theme="dark"] .loc .marker.end { background: #0a0a0a; }
[data-theme="dark"] .route-line { background: var(--yellow); }
[data-theme="dark"] .remove-return { color: #555; }
[data-theme="dark"] .remove-return:hover { background: #eeeeee; color: #0a0a0a; }
[data-theme="dark"] .field input { color-scheme: light; }

/* Dark theme: trip switch matches the white inputs */
[data-theme="dark"] .trip-toggle { background: #ffffff; }
[data-theme="dark"] .trip-toggle label { color: #5c5c5c; }
[data-theme="dark"] .trip-toggle label:hover { color: #0a0a0a; }
[data-theme="dark"] .trip-toggle input:checked + label { color: #0a0a0a; }
[data-theme="dark"] .trip-thumb { background: var(--yellow); }

/* Brand word in the home headline: blue in light theme, yellow in dark (the accent token switches) */
.brand-word { color: var(--blue); }
.trip-leg-when.is-missing { color: var(--muted); font-weight: 400; font-style: italic; }

/* Swap button appears only once a location has been entered */
.swap { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.7); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s, background-color .2s; }
.booking.has-location .swap { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease), background-color .2s; }
.booking.has-location .swap.spin { transform: rotate(180deg); }



/* ---------- Step 2: car choice ---------- */
.car-list { display: grid; gap: 8px; margin: 0; padding: 2px; border: 0; min-width: 0; }
@media (min-width: 1024px) { .car-list { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.car-option {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 22px; gap: 14px; align-items: center;
  padding: 10px 14px 10px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white);
  cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s;
}
.car-option:hover { border-color: var(--muted); }
.car-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.car-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.car-img { width: 96px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--surface); }
.car-text { min-width: 0; display: grid; gap: 2px; }
.car-name { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.car-desc { font-size: 13.5px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-fit { display: none; font-size: 13.5px; color: var(--muted); }
.car-cap { display: flex; gap: 14px; margin-top: 2px; font-size: 13.5px; font-weight: 500; }
.car-cap .cap { display: inline-flex; align-items: center; gap: 5px; }
.car-cap svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.car-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .2s; }
.car-check::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .25s var(--ease); }
.car-option.is-selected { border-color: var(--blue); background: rgba(61, 90, 254, .04); }
.car-option.is-selected .car-check { border-color: var(--blue); }
.car-option.is-selected .car-check::after { transform: scale(1); }
.car-option.is-disabled { opacity: .45; cursor: not-allowed; }
.car-option.is-disabled:hover { border-color: var(--line); }
.car-option.is-disabled .car-desc { display: none; }
.car-option.is-disabled .car-fit { display: block; }
.car-note { display: none; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 14.5px; }
.car-note.show { display: block; }
[data-cars] > .btn { width: 100%; margin-top: 4px; }

/* chosen car inside the trip card (step 3) */
.trip-car { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
.trip-car img { width: 60px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--white); flex: none; }
.trip-car-text { display: grid; line-height: 1.3; min-width: 0; }
.trip-car-name { font-size: 15px; font-weight: 600; }
.trip-car-meta { font-size: 13px; color: var(--muted); }

@media (max-width: 479px) {
  .car-option { grid-template-columns: 76px minmax(0, 1fr) 22px; gap: 12px; }
  .car-img { width: 76px; height: 52px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .car-list { max-height: 292px; }
  .car-option { padding-block: 8px; }
  .car-img { height: 54px; }
}

/* dark theme */
[data-theme="dark"] .car-option { background: #121212; border-color: #2a2a2a; }
[data-theme="dark"] .car-option:hover { border-color: #555; }
[data-theme="dark"] .car-img, [data-theme="dark"] .trip-car img { background: #ffffff; }
[data-theme="dark"] .car-option.is-selected { border-color: var(--yellow); background: rgba(255, 207, 74, .06); }
[data-theme="dark"] .car-option.is-selected .car-check { border-color: var(--yellow); }
[data-theme="dark"] .car-check::after { background: var(--yellow); }
[data-theme="dark"] .car-option:has(input:focus-visible) { outline-color: var(--yellow); }

/* ==========================================================================
   UK TOURS (Explore Britain)
   ========================================================================== */
.soon-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: soonPulse 2s ease-in-out infinite; }
@keyframes soonPulse { 50% { opacity: .35; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; font-size: 14.5px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* how it works */
.tour-steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 640px) { .tour-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tour-steps { grid-template-columns: repeat(4, 1fr); } }
.tour-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.tour-step p { font-size: 15px; color: var(--muted); }
.tour-step-num { position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tour-step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); margin-bottom: 6px; }
.tour-step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* sample tours */
.tour-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tour-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }
.tour-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.tour-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tour-card:hover .tour-media img { transform: scale(1.04); }
.tour-duration { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
.tour-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.tour-region { font-size: 13px; font-weight: 500; color: var(--muted); }
.tour-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.tour-desc { font-size: 15px; color: var(--muted); }
.tour-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tour-tags li { padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }
.tour-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tour-cta svg { width: 16px; height: 16px; fill: currentColor; transition: transform .3s var(--ease); }
.tour-cta:hover svg { transform: translateX(3px); }

/* included (dark band) */
.include-grid { list-style: none; }
.include-grid .f-icon svg { stroke-width: 2.2; }

/* plan my trip */
.tour-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tour-form, .tour-form .field, .tour-form .row-2 { min-width: 0; }
@media (min-width: 1024px) { .tour-plan { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .tour-plan-copy { position: sticky; top: calc(var(--header-h) + 32px); } }
.tour-form { display: grid; gap: 14px; }
.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.tour-form .field.has-error select, .tour-form .field.has-error input { border-color: var(--error); }
.tour-form.flash-tour { animation: tourFlash 1.2s var(--ease); }
@keyframes tourFlash { 0% { box-shadow: 0 0 0 0 rgba(61, 90, 254, .35); } 100% { box-shadow: 0 0 0 18px rgba(61, 90, 254, 0); } }

/* dark theme */
[data-theme="dark"] .soon-dot { background: var(--yellow); }
[data-theme="dark"] .tour-card { background: #121212; border-color: #2a2a2a; }
[data-theme="dark"] .tour-duration { background: var(--yellow); color: #000; }
[data-theme="dark"] .tour-tags li { background: #1f1f1f; }
[data-theme="dark"] .tour-step { border-color: #2a2a2a; }
[data-theme="dark"] .tour-step-icon { background: #1a1a1a; color: var(--yellow); }
[data-theme="dark"] .hero-points .tick svg { stroke: var(--yellow); }
[data-theme="dark"] .chip span { border-color: #333; }
[data-theme="dark"] .chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: #000; }
[data-theme="dark"] .tour-form.flash-tour { animation-name: tourFlashDark; }
@keyframes tourFlashDark { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 74, .35); } 100% { box-shadow: 0 0 0 18px rgba(255, 207, 74, 0); } }
@media (min-width: 1024px) { .include-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mobile: no hero photo, the booking form is the hero ---------- */
@media (max-width: 767px) {
  .hero .hero-visual { display: none; }
  .hero-stage:not([data-step="2"]):not([data-step="3"]) { display: none; }
}

/* ---------- Field errors: space is reserved, so messages never push the form ---------- */
.field:has(> .field-error) { padding-bottom: 20px; }
.field-error,
.field.has-error .field-error {
  display: block; position: absolute; left: 0; right: 0; bottom: 0;
  height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field-error:empty { visibility: hidden; }

/* ---------- UK tours form: compact so it fits in one screen ---------- */
/* Tour + airport share a row; dates share theirs with travellers */
.row-trip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.row-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-width: 0; }
.row-dates > .field:last-child { grid-column: 1 / -1; }
@media (min-width: 480px) { .row-trip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (min-width: 640px) {
  .row-dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .55fr); }
  .row-dates > .field:last-child { grid-column: auto; }
}
.tour-form select { padding-right: 40px; background-position: right 16px center; }
.tour-form { gap: 10px; }
.tour-form .chip-list { gap: 6px; }
.tour-form .chip span { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.tour-form .field textarea { min-height: 76px; }
@media (min-width: 1024px) {
  /* the section fills exactly one screen under the header, form centred in it */
  #plan { scroll-margin-top: -16px; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: 32px; display: grid; align-items: center; }
  #plan .tour-plan { align-items: center; }
  .tour-form { padding: 24px 28px; }
  .tour-form .field input, .tour-form .field select { min-height: 50px; padding-block: 12px; }
  .tour-form .field.has-icon .icon { bottom: 15px; }
  .tour-plan-copy { top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1024px) and (max-height: 820px) {
  #plan { padding-block: 16px; }
  .tour-form { gap: 6px; padding: 20px 24px; }
  .tour-form .field { gap: 4px; }
  .tour-form .field:has(> .field-error) { padding-bottom: 18px; }
  .tour-form .chip span { min-height: 30px; }
  .tour-form .field input, .tour-form .field select { min-height: 46px; padding-block: 10px; }
  .tour-form .field.has-icon .icon { bottom: 13px; }
  .tour-form .field textarea { min-height: 60px; }
  .tour-form .btn-lg { min-height: 50px; }
}


@media (min-width: 1024px) and (max-height: 820px) { .hero .field { --fh: 50px; } }

/* ---------- Mobile hero: headline + full booking form fit one screen ---------- */
@media (max-width: 767px) {
  .hero { min-height: calc(100svh - var(--header-h)); padding-block: 18px calc(16px + env(safe-area-inset-bottom)); align-items: flex-start; }
  .hero .h1 { font-size: clamp(2rem, 9.4vw, 2.4rem); }
  .hero-copy { gap: 10px; }
  .hero-copy .lead { font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
  .booking { gap: 8px; }
  .trip-toggle label { padding: 7px 14px; font-size: 14.5px; }
  .hero .field { --fh: 50px; }
  .hero .field input, .hero .field select { min-height: 50px; padding-block: 12px; }
  .hero .field.has-icon .icon { bottom: 15px; }
  .route-line { top: 25px; bottom: 25px; }
  .return-slot { height: 50px; }
  .hero .booking-actions .btn-lg, .hero .step-hint { min-height: 50px; }
  .form-note { font-size: 13px; }
}
/* very short phones (iPhone SE, small Androids): drop the intro line, keep the form whole */
@media (max-width: 767px) and (max-height: 700px) {
  .hero .h1 { font-size: 2rem; }
  .hero-copy .lead { display: none; }
}
@media (max-width: 767px) and (max-height: 600px) {
  .hero { padding-block: 12px 4px; }
  .hero-copy { gap: 8px; }
  .booking { gap: 6px; }
}

/* Date/time boxes have a wide built-in minimum in Chrome; let them shrink on narrow phones */
.row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row-2 > .field, .field input[type="date"], .field input[type="time"] { min-width: 0; }
@media (max-width: 479px) { .row-2.stack-sm { grid-template-columns: minmax(0, 1fr); } }

/* Small phones: tighter date/time padding so "dd-mm-yyyy" / "12 Oct 2026" fit in half-width boxes */
@media (max-width: 480px) {
  .field.has-icon input { padding-left: 40px; padding-right: 8px; }
  .field.has-icon .icon { left: 12px; }
}
.tour-form select { padding-right: 36px; background-position: right 14px center; }
@media (max-width: 399px) { .row-dates { grid-template-columns: minmax(0, 1fr); } }
/* Hero photo: keep the chauffeur and passenger in frame on the tall desktop crop */
.hero .hero-visual img { object-position: 52% 50%; }

/* Car photos are real photos (7:4) — fill the frame instead of letterboxing */
.car-img { width: 98px; height: 56px; object-fit: cover; }
.trip-car img { width: 70px; height: 40px; object-fit: cover; }
@media (max-width: 479px) { .car-option { grid-template-columns: 84px minmax(0, 1fr) 22px; } .car-img { width: 84px; height: 48px; } }
@media (min-width: 1024px) and (max-height: 820px) { .car-img { height: 50px; width: 88px; } }
.car-option { grid-template-columns: 98px minmax(0, 1fr) 22px; }
@media (max-width: 479px) { .car-option { grid-template-columns: 84px minmax(0, 1fr) 22px; } }
@media (min-width: 1024px) and (max-height: 820px) { .car-option { grid-template-columns: 88px minmax(0, 1fr) 22px; } }

/* Photo credits page */
.narrow-copy { display: grid; gap: 16px; max-width: 760px; }
.credits { display: grid; gap: 12px; margin: 8px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.credits strong { color: var(--ink); font-weight: 600; }
.credits a, .footer-bottom p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .credits strong { color: #fff; }

/* ---------- Date & time pickers (assets/js/picker.js) ---------- */
.field input.pick-native { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.field input.pick-display { cursor: pointer; caret-color: transparent; text-overflow: ellipsis; }
.field input.pick-display::selection { background: transparent; }
.field input.pick-display[aria-expanded="true"] { background-color: var(--white); border-color: var(--ink); }

.picker {
  position: fixed; z-index: 120; display: grid; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink);
  opacity: 0; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .22s var(--ease);
}
.picker.show { opacity: 1; transform: none; }
.picker[hidden] { display: none; }
.picker button { font: inherit; cursor: pointer; }
.picker button:not(.btn) { color: inherit; }
.picker button:disabled { cursor: default; }
.picker button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.picker-title { margin: 0; font-size: 17px; font-weight: 600; }
.picker-msg { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(220, 38, 38, .08); color: var(--error); font-size: 14px; }
.picker-quick { display: flex; gap: 8px; }
.picker-chip { flex: 1; min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 500; }
.picker-chip:hover:not(:disabled) { border-color: var(--ink); }
.picker-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.picker-chip:disabled { opacity: .4; }
.picker-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; }
.picker-month { margin: 0; text-align: center; font-size: 15.5px; font-weight: 600; }
.picker-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.picker-nav:hover:not(:disabled) { background: var(--surface); }
.picker-nav:disabled { opacity: .3; }
.picker-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.picker-dow { padding-bottom: 4px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.picker-day { aspect-ratio: 1; min-height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.picker-day:hover:not(:disabled):not(.is-on) { background: var(--surface); }
.picker-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.picker-day.is-on { background: var(--blue); color: #fff; }
.picker-day:disabled { color: var(--placeholder); opacity: .55; }
.picker-wheels { position: relative; display: grid; grid-template-columns: 1fr 10px 1fr 1fr; align-items: center; height: 200px; }
.picker-wheels::before { content: ""; position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-radius: 10px; background: var(--surface); pointer-events: none; }
.wheel {
  position: relative; height: 200px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory;
  padding-block: 80px; scrollbar-width: none; border-radius: 10px; outline: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.wheel-item { height: 40px; display: grid; place-items: center; scroll-snap-align: center; font-size: 17px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; transition: color .15s; }
.wheel-item.is-on { color: var(--ink); font-weight: 600; }
.wheel-colon { position: relative; text-align: center; font-size: 17px; font-weight: 600; }
.picker-done { width: 100%; min-height: 46px; }
.picker-done:disabled { opacity: .45; }
.picker-empty { margin: 0; padding: 8px 4px; font-size: 14.5px; color: var(--muted); }

/* Phones: bottom sheet */
.picker.is-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 85svh; overflow-y: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-bottom: 0;
  transform: translateY(100%); transition: transform .32s var(--ease), opacity .2s;
}
.picker.is-sheet.show { transform: none; }
.picker.is-sheet::before { content: ""; justify-self: center; width: 40px; height: 4px; margin-top: -6px; border-radius: 4px; background: var(--line); }
.picker.is-sheet .picker-day { min-height: 44px; font-size: 16px; }
.picker.is-sheet .picker-wheels, .picker.is-sheet .wheel { height: 220px; }
.picker.is-sheet .wheel { padding-block: 88px; }
.picker.is-sheet .picker-wheels::before { top: 88px; height: 44px; }
.picker.is-sheet .wheel-item { height: 44px; font-size: 19px; }
.picker.is-sheet .picker-done { min-height: 52px; }
.picker-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(11, 16, 38, .45); opacity: 0; transition: opacity .25s; }
.picker-backdrop.show { opacity: 1; }
.picker-backdrop:not(.show) { pointer-events: none; }
html.picker-lock, html.picker-lock body { overflow: hidden; }

/* dark theme */
[data-theme="dark"] .picker { background: #121212; border-color: #2a2a2a; color: #f5f5f5; }
[data-theme="dark"] .picker-chip { border-color: #333; }
[data-theme="dark"] .picker-chip:hover:not(:disabled) { border-color: #f5f5f5; }
[data-theme="dark"] .picker-chip.is-on { background: var(--yellow); border-color: var(--yellow); color: #000; }
[data-theme="dark"] .picker-nav:hover:not(:disabled),
[data-theme="dark"] .picker-day:hover:not(:disabled):not(.is-on) { background: #1f1f1f; }
[data-theme="dark"] .picker-wheels::before { background: #1f1f1f; }
[data-theme="dark"] .picker-day.is-today { box-shadow: inset 0 0 0 1.5px #3a3a3a; }
[data-theme="dark"] .picker-day.is-on { background: var(--yellow); color: #000; }
[data-theme="dark"] .wheel-item { color: #6f6f6f; }
[data-theme="dark"] .wheel-item.is-on { color: #fff; }
[data-theme="dark"] .wheel:focus-visible { outline-color: var(--yellow); }
[data-theme="dark"] .picker-day:disabled { color: #555; opacity: 1; }
[data-theme="dark"] .picker-dow, [data-theme="dark"] .picker-empty { color: #8a8a8a; }
[data-theme="dark"] .picker button:focus-visible { outline-color: var(--yellow); }
[data-theme="dark"] .picker.is-sheet::before { background: #3a3a3a; }
[data-theme="dark"] .picker-backdrop { background: rgba(0, 0, 0, .6); }
[data-theme="dark"] .field input.pick-display[aria-expanded="true"] { background-color: #ffffff; border-color: var(--yellow); }

/* ==========================================================================
   Short laptop screens (1024px+ wide, 600–820px tall)
   ========================================================================== */
@media (min-width: 1024px) {
  /* Steps 2 and 3 never grow taller than the screen: the panel scrolls and its buttons stay pinned */
  .details-panel { --pp: 28px; padding: 24px var(--pp) 0; }
  .hero-stage[data-step="2"] [data-cars],
  .hero-stage[data-step="3"] [data-details] {
    max-height: calc(100svh - var(--header-h) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .car-list { max-height: none; overflow: visible; }
  .panel-foot {
    position: sticky; bottom: 0; z-index: 3; margin: 0 calc(-1 * var(--pp)); padding: 12px var(--pp) 24px;
    background: var(--white); border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .panel-foot > .btn { width: 100%; }
  .details-panel .booking-actions.panel-foot { margin-top: 0; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .details-panel { --pp: 24px; padding-top: 18px; }
  .hero-stage[data-step="2"] [data-cars],
  .hero-stage[data-step="3"] [data-details] { max-height: calc(100svh - var(--header-h) - 32px); }
  .panel-foot { padding-bottom: 18px; }
}

/* Home hero, step 1 */
@media (min-width: 1024px) and (max-height: 720px) {
  .hero { padding-block: 12px; }
  .hero .h1 { font-size: 2.6rem; }
  .hero-copy { gap: 8px; }
  .hero-copy .lead { font-size: .95rem; line-height: 1.45; margin-bottom: 2px; }
  .booking { gap: 8px; }
  .trip-toggle label { padding: 6px 14px; }
  .hero .field input, .hero .field select { min-height: 46px; padding-block: 10px; }
  .hero .field.has-icon .icon { bottom: 13px; }
  .route-line { top: 23px; bottom: 23px; }
  .return-slot { height: 46px; }
  .hero .booking-actions .btn-lg, .hero .step-hint, .hero .panel-foot .btn-lg { min-height: 48px; }
  .details-panel { gap: 8px; padding-top: 14px; }
  .details-title { font-size: 1.5rem; }
  .car-option { padding-block: 6px; }
  .trip-card .trip-leg { padding-block: 8px; }
  .hero-stage[data-step="2"] [data-cars],
  .hero-stage[data-step="3"] [data-details] { max-height: calc(100svh - var(--header-h) - 24px); }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .hero-copy .lead { display: none; }
  .hero .h1 { font-size: 2.3rem; }
  .hero .field input, .hero .field select { min-height: 44px; }
  .hero .field.has-icon .icon { bottom: 12px; }
  .route-line { top: 22px; bottom: 22px; }
  .return-slot { height: 44px; }
}

/* Inner page heroes (Services, About, Explore Britain): image never taller than the screen */
@media (min-width: 960px) and (max-height: 760px) {
  .page-hero { padding-block: 24px; }
  .page-hero .h1 { font-size: clamp(2.4rem, 4vw, 3rem); }
  .page-hero .hero-visual { max-height: calc(100svh - var(--header-h) - 48px); }
  .page-hero .hero-copy { gap: 12px; }
}

/* Contact */
@media (min-width: 960px) and (max-height: 720px) {
  .contact-hero { padding-block: 12px; }
  .contact-hero .h1 { font-size: 2.5rem; }
  .contact-hero .hero-copy { gap: 8px; }
  .contact-hero .form-panel { padding: 16px 20px; gap: 8px; }
  .contact-hero .field input, .contact-hero .field select { min-height: 44px; padding-block: 10px; }
  .contact-hero .field textarea { min-height: 72px; }
  .contact-hero .c-card { padding-block: 8px; }
}

/* Explore Britain "Plan my trip" form */
@media (min-width: 1024px) and (max-height: 760px) {
  #plan { padding-block: 12px; }
  .tour-form { gap: 6px; padding: 16px 22px; }
  .tour-form .field { gap: 4px; }
  .tour-form .field input, .tour-form .field select { min-height: 44px; padding-block: 9px; }
  .tour-form .field.has-icon .icon { bottom: 12px; }
  .tour-form .field textarea { min-height: 44px; }
  .tour-form .field:has(> .field-error) { padding-bottom: 18px; }
  .tour-form .chip-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tour-form .chip span { min-height: 30px; white-space: nowrap; }
  .tour-form .btn-lg { min-height: 46px; }
  .tour-plan-copy .checks { display: none; }
}
@media (min-width: 1024px) and (max-height: 680px) {
  .tour-form .chips legend { float: left; margin: 6px 10px 0 0; }
  .tour-form .chips .chip-list { overflow-x: auto; }
  .tour-form label[for="t-message"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tour-form .field:has(> .field-error) { padding-bottom: 16px; }
  .tour-form .field-error { height: 16px; line-height: 16px; font-size: 12.5px; }
  .tour-plan-copy .lead { font-size: 1rem; }
}
/* Very short screens: the tours form scrolls inside itself, Submit/WhatsApp stay pinned */
@media (min-width: 1024px) and (max-height: 650px) {
  .tour-form { max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 0; }
  .tour-form .booking-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 -22px; padding: 10px 22px 16px; background: var(--white); }
}
.ac-status.ac-more { min-height: 0; padding-block: 10px; font-size: 13px; border-top: 1px solid var(--line); }

/* Header social buttons (Facebook, Instagram) in their brand colours */
.header-social { display: flex; align-items: center; gap: 6px; }
.header-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: transform .2s var(--ease), background-color .2s; }
.header-social a:hover { background: var(--on-dark-hover); transform: translateY(-1px); }
.header-social a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.header-social svg { width: 26px; height: 26px; display: block; }
@media (max-width: 380px) { .header-social { gap: 2px; } .header-social a { width: 32px; height: 32px; } .header-social svg { width: 24px; height: 24px; } }

/* Spam trap field (hidden from people, filled by bots) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Logo image (assets/img/logo-on-dark: white lettering for the dark header and footer) */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { display: block; width: auto; height: 44px; }
.footer-brand .brand-logo { height: 48px; }
@media (max-width: 479px) { .brand-logo { height: 34px; } .footer-brand .brand-logo { height: 40px; } }

/* ---------- Confirmation dialog (after Submit) ----------
   Centred card on tablets/desktop, bottom sheet on phones. Built by main.js (showConfirm). */
html.confirm-open { overflow: hidden; }
.confirm {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 24px; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; overflow: hidden;
}
.confirm:not([open]) { display: none; }
.confirm::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: confirm-fade .25s var(--ease); }
.confirm.closing::backdrop { opacity: 0; transition: opacity .22s; }
.confirm-card {
  position: relative; width: min(100%, 440px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 36px 28px 28px; border-radius: 24px; text-align: center;
  background: #121212; border: 1px solid #262626; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: confirm-pop .42s var(--ease);
}
.confirm.closing .confirm-card { opacity: 0; transform: scale(.96) translateY(8px); transition: opacity .22s, transform .22s var(--ease); }
.confirm-handle { display: none; }
.confirm-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
}
.confirm-x:hover { background: #1f1f1f; color: var(--ink); }
.confirm-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.confirm-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 207, 74, .12); color: var(--yellow); }
.confirm-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-icon .fill { fill: currentColor; stroke: none; }
.confirm[data-state="sent"] .confirm-icon { background: var(--yellow); color: #000; box-shadow: 0 0 0 10px rgba(255, 207, 74, .12); }
.confirm[data-state="sent"] .confirm-icon svg { width: 52px; height: 52px; stroke-width: 4; }
.confirm[data-state="sent"] .c-ring { stroke: none; }
.confirm[data-state="sent"] .c-tick { stroke-dasharray: 36; stroke-dashoffset: 36; animation: confirm-tick .5s .18s var(--ease) forwards; }
.confirm[data-state="whatsapp"] .confirm-icon { background: rgba(37, 211, 102, .14); color: var(--whatsapp); }

.confirm-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.confirm[data-state="whatsapp"] .confirm-eyebrow { color: var(--whatsapp); }
.confirm-title { margin: 0; font-size: clamp(24px, 5vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.confirm-text { margin: 10px auto 0; max-width: 34ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.confirm-rows { margin: 22px 0 0; padding: 4px 16px; border-radius: 16px; background: #1a1a1a; text-align: left; }
.confirm-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #262626; }
.confirm-rows div:last-child { border-bottom: 0; }
.confirm-rows dt { color: var(--muted); font-size: 14px; }
.confirm-rows dd { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.confirm-ref { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.confirm-ref strong { margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: #1f1f1f; color: var(--ink); font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.confirm-actions { display: grid; gap: 10px; margin-top: 24px; }
.confirm-actions .btn { width: 100%; }
.confirm-actions svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-actions .fill { fill: currentColor; stroke: none; }
.confirm-actions .btn svg { margin-right: 8px; }
.confirm-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 20px;
  border: 1px solid #2c2c2c; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.confirm-alt:hover { background: #1c1c1c; border-color: #3a3a3a; }
.confirm-alt:focus-visible, .confirm-x:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

@keyframes confirm-fade { from { opacity: 0; } }
@keyframes confirm-pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes confirm-tick { to { stroke-dashoffset: 0; } }
@keyframes confirm-up { from { transform: translateY(100%); } }

/* Phones: bottom sheet */
@media (max-width: 639px) {
  .confirm { padding: 0; place-items: end stretch; }
  .confirm-card {
    width: 100%; max-height: 92dvh; padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; border-width: 1px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
    animation: confirm-up .38s var(--ease); transition: transform .2s var(--ease);
  }
  .confirm.closing .confirm-card { opacity: 1; transform: translateY(100%); transition: transform .22s ease-in; }
  .confirm-handle { display: block; position: absolute; top: 10px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #3a3a3a; }
  .confirm-x { top: 10px; right: 10px; }
  .confirm-icon { width: 64px; height: 64px; margin-bottom: 14px; }
  .confirm[data-state="sent"] .confirm-icon svg { width: 44px; height: 44px; }
  .confirm-rows { margin-top: 18px; }
  .confirm-rows div { grid-template-columns: 88px minmax(0, 1fr); padding: 10px 0; }
  .confirm-actions { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-card, .confirm::backdrop { animation: none; }
  .confirm[data-state="sent"] .c-tick { animation: none; stroke-dashoffset: 0; }
}

/* Home hero heading is keyword-led ("Crewe taxis & airport transfers by Gevos"): keep it to two lines on desktop */
@media (min-width: 1024px) and (min-height: 721px) { .hero .h1 { font-size: clamp(2.75rem, 3.5vw, 3.6rem); } }

/* Route links stacked in a column (home FAQ), and links inside FAQ answers / checklists */
.routes-stack { grid-template-columns: 1fr !important; margin-top: 8px; width: 100%; align-self: stretch; }
.faq .answer a, .checks a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.faq .answer a:hover, .checks a:hover { text-decoration-thickness: 2px; }
