/* ============================================================
   Home page — hero, booking widget, fares, why-us, coverage
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; overflow: clip; padding-bottom: 176px; }
@media (max-width: 700px) { .hero { padding-bottom: 116px; } }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(0,101,61,.10), transparent 55%),
    radial-gradient(90% 90% at 100% 0%, rgba(249,188,7,.14), transparent 50%);
}
/* ---------- animated ROAD with a top-view car that stays in place ---------- */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 176px; z-index: 0; overflow: hidden; pointer-events: none; }
.road__surface { position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, #2b3b34 0%, #1d2c25 45%, #16211c 100%); }
:root[data-theme="light"] .road__surface { background: linear-gradient(180deg, #3c4c44 0%, #2c3b34 45%, #22302a 100%); }
/* top & bottom solid edge lines (thicker, subtle) */
.road__edge { position: absolute; left: -10%; right: -10%; height: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 60px, transparent 60px 120px); opacity: .3; will-change: transform; }
.road__edge--top { top: 6px; }
.road__edge--bottom { bottom: 8px; }
/* the running centre dashes — the "movement" of the road */
.road__lane { position: absolute; left: -10%; right: -10%; top: 50%; height: 9px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--accent) 0 56px, transparent 56px 120px); border-radius: 4px; will-change: transform; }
/* the car — fixed horizontally, vertically CENTERED on the road surface.
   road__surface is 120px tall at the bottom → its centre sits 60px from bottom.
   translateY(50%) + bottom:60px centres the car on that line; bob only nudges Y. */
.road__car { position: absolute; left: clamp(1.5rem, 9vw, 8rem); bottom: 60px; transform: translateY(50%);
  width: clamp(150px, 15vw, 210px); z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); will-change: transform; }
.road__car svg { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .road__lane { animation: laneRun 1s linear infinite; }
  .road__edge { animation: edgeRun 2s linear infinite; }
  .road__car  { animation: carBob 1.6s ease-in-out infinite; }
  @keyframes laneRun { to { transform: translate(-120px, -50%); } }
  @keyframes edgeRun { to { transform: translateX(-120px); } }
  /* keep the +50% centring offset, add a tiny bob on top */
  @keyframes carBob  { 0%,100% { transform: translateY(50%); } 50% { transform: translateY(calc(50% - 3px)); } }
}
@media (max-width: 700px) {
  .road { height: 116px; }
  .road__surface { height: 84px; }
  .road__car { width: 108px; bottom: 42px; left: 1.2rem; }
  .road__lane { height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 40px, transparent 40px 88px); }
  @media (prefers-reduced-motion: no-preference) {
    .road__lane { animation-name: laneRunM; }
    @keyframes laneRunM { to { transform: translate(-88px, -50%); } }
  }
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(2.4rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
/* copy column wider than the card so the headline never breaks mid-phrase */
.hero__grid { display: grid; grid-template-columns: 1.15fr minmax(380px, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.hero h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; text-wrap: balance; }
@media (max-width: 400px) { .hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.75rem); } }
.hero h1 .hl { color: var(--brand); position: relative; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--accent); opacity: .35; border-radius: 3px; z-index: -1; }
.hero__lede { font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.2rem; max-width: 44ch; font-weight: 400; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.hero__trust .t { display: flex; flex-direction: column; }
/* mobile: clean 2×2 grid so the 4 stats line up evenly */
@media (max-width: 620px) {
  .hero__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; }
}
.hero__trust .t b { font: 800 var(--step-3)/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero__trust .t span { font-size: var(--step--1); color: var(--ink-soft); margin-top: .35rem; font-weight: 500; }

/* ---------- BOOKING WIDGET (the star) ---------- */
.booker {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: clamp(1.1rem, 3vw, 1.6rem); position: relative;
}
.booker__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.booker__head h2 { font-size: var(--step-1); }
.booker__head .live { margin-left: auto; }

/* segmented trip-type tabs */
.segt { display: grid; grid-auto-flow: column; gap: .25rem; background: var(--surface-2); border-radius: var(--r-pill); padding: .28rem; margin-bottom: 1rem; }
.segt button {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-soft);
  font: 600 var(--step--1)/1 var(--font-body); padding: .7em .3em; border-radius: var(--r-pill);
  transition: color var(--dur-fast), background var(--dur-fast); position: relative;
}
.segt button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.segt button:hover:not([aria-selected="true"]) { color: var(--ink); }

/* fields */
.field { position: relative; margin-bottom: .7rem; }
.field label { display: block; font: 600 var(--step--1)/1 var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.field .ctrl { display: flex; align-items: center; gap: .6rem; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: .1rem .9rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field .ctrl:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .ctrl svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.field input, .field select { flex: 1; border: 0; background: transparent; color: var(--ink); font: 500 var(--step-0)/1 var(--font-body); padding: .95em 0; outline: none; width: 100%; }
.field input::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

/* the swap button between pickup/drop */
.swap { position: absolute; right: 12px; top: calc(50% - 14px); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: transform var(--dur) var(--ease), border-color var(--dur-fast); }
.swap:hover { border-color: var(--brand); transform: rotate(180deg); }

/* autocomplete dropdown (our own, works without an API too) */
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden; max-height: 240px; overflow-y: auto; }
.ac-list[hidden] { display: none; }
.ac-item { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; cursor: pointer; font-size: var(--step-0); }
.ac-item svg { width: 16px; height: 16px; color: var(--ink-faint); flex: none; }
.ac-item:hover, .ac-item[aria-selected="true"] { background: var(--surface-2); }
.ac-item mark { background: transparent; color: var(--brand); font-weight: 700; }

/* ---------- VEHICLE PICKER + FARE ---------- */
.vehicle-list { display: grid; gap: .6rem; margin: .3rem 0 1rem; }
.vehicle-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vehicle-card[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.vehicle-card .vico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-2); color: var(--brand); }
.vehicle-card .vico svg { width: 26px; height: 26px; }
.vehicle-card .vname { font-weight: 700; }
.vehicle-card .vmeta { font-size: var(--step--1); color: var(--ink-faint); }
.vehicle-card .vfare { text-align: right; }
.vehicle-card .vfare b { font: 800 var(--step-1)/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.vehicle-card .vfare span { display: block; font-size: 11px; color: var(--ink-faint); margin-top: .2rem; }
.vehicle-card .popular { font: 700 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent-ink); background: var(--accent); padding: .3em .5em; border-radius: 5px; }

/* fare summary strip */
.fare-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--border)); margin-bottom: 1rem; }
.fare-strip .lbl { font-size: var(--step--1); color: var(--ink-soft); }
.fare-strip .amt { font: 800 var(--step-2)/1 var(--font-mono); color: var(--brand); font-variant-numeric: tabular-nums; }
.fare-strip.empty { color: var(--ink-faint); font-size: var(--step--1); justify-content: center; text-align: center; }
.hint { font-size: 11px; color: var(--ink-faint); margin-top: .5rem; text-align: center; }
.hint a { color: var(--link); }

/* fade/slide for fare appearing */
.reveal-fare { animation: fareIn var(--dur) var(--ease-out); }
@keyframes fareIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- expandable trip details (their original form fields) ---------- */
.trip-details { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.trip-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1rem; font-weight: 600; font-size: var(--step--1); color: var(--ink); background: var(--surface-2); user-select: none; }
.trip-details > summary::-webkit-details-marker { display: none; }
.trip-details > summary .td-opt { color: var(--ink-faint); font-weight: 500; }
.trip-details > summary .chev { transition: transform var(--dur) var(--ease); color: var(--ink-soft); flex: none; }
.trip-details[open] > summary .chev { transform: rotate(180deg); }
.trip-details[open] > summary { border-bottom: 1px solid var(--border); }
.td-body { padding: 1rem; display: grid; gap: 0; }
.td-body .field:last-child { margin-bottom: 0; }
.td-three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 460px) { .td-three { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; } }
.field .ctrl select { flex: 1; border: 0; background: transparent; color: var(--ink); font: 500 var(--step-0)/1 var(--font-body); padding: .95em 0; outline: none; width: 100%; appearance: none; cursor: pointer; }
.td-opt { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---------- WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 2rem; }
.why { padding: 1.4rem; }
.why .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.why .ic svg { width: 24px; height: 24px; }
.why h3 { font-size: var(--step-0); margin-bottom: .35rem; }
.why p { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- ROUTES ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .7rem; margin-top: 2rem; }
.route-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); }
.route-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.route-card .r { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.route-card .r .arw { color: var(--accent); }
.route-card .km { font: 700 var(--step--1)/1 var(--font-mono); color: var(--ink-faint); }
.route-card .from { color: var(--ink-soft); font-weight: 600; }

/* ---------- JOURNEY STRIP (business story) ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2rem; }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr 1fr !important; } }
.jstep { padding: 1.1rem; position: relative; }
.jstep .n { font: 800 var(--step--1)/1 var(--font-mono); color: var(--accent-ink); background: var(--accent); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: .7rem; }
.jstep h4 { font-size: var(--step-0); margin-bottom: .25rem; }
.jstep p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- route page: header + route line (moved from booking.css) ---------- */
.bk-hero { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.bk-hero .wrap { padding-block: clamp(1.6rem, 4vw, 2.4rem); }
.trip-route { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.trip-route .pt { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--step-1); }
.trip-route .pt .pin { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--brand); }
.trip-route .pt .pin.end { border-color: var(--accent); border-radius: 3px; }
.trip-route .dots { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); }
.trip-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fare-note { font-size: var(--step--2); color: var(--ink-faint); margin-top: .8rem; }
