:root {
  /* Material-3-inspired tonal palette, built on the Berooz green. */
  --green: #0a7f48;
  --green-dark: #06603a;
  --green-tonal: #e3f5ea;      /* "primary container" surface */
  --green-tonal-strong: #c9ecd8;
  --on-green-tonal: #04371f;

  --surface: #ffffff;
  --surface-dim: #f5f6f3;      /* page background */
  --surface-bright: #ffffff;
  --surface-container: #f0f2ec;
  --surface-container-high: #e9ebe4;

  --ink: #171d19;
  --ink-muted: #5c6b61;
  --outline: #dbe1d9;
  --outline-soft: rgba(23, 29, 25, 0.08);

  --danger: #ba1b2d;
  --danger-tonal: #ffe2e1;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Material elevation scale (level 1–4), tuned for a light surface. */
  --elev-1: 0 1px 2px rgba(23, 29, 25, 0.06), 0 1px 3px 1px rgba(23, 29, 25, 0.07);
  --elev-2: 0 1px 2px rgba(23, 29, 25, 0.08), 0 2px 6px 2px rgba(23, 29, 25, 0.08);
  --elev-3: 0 4px 8px 3px rgba(23, 29, 25, 0.08), 0 1px 3px rgba(23, 29, 25, 0.1);
  --elev-4: 0 8px 20px 4px rgba(23, 29, 25, 0.1), 0 2px 4px rgba(23, 29, 25, 0.12);

  /* kept so any older rule that still references the legacy tokens still resolves */
  --bg: var(--surface-dim);
  --panel: var(--surface);
  --panel-strong: var(--surface-container);
  --yellow: var(--green);
  --yellow-deep: var(--green-dark);
  --dark: var(--ink);
  --muted: var(--ink-muted);
  --line: var(--outline-soft);
  --shadow: var(--elev-3);
  --radius: var(--radius-xl);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-dim);
  color: var(--ink);
  font-family: "Google Sans Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

a {
  color: inherit;
}

/* ---------- Material Symbols: sized/weighted like Google's own product icons ---------- */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 60px;
  position: relative;
}

/* ---------- Soft aurora backdrop (the "AI product" touch) ---------- */
.aurora {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.aurora-a {
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(10, 127, 72, 0.35), rgba(10, 127, 72, 0) 70%);
}

.aurora-b {
  top: 260px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 193, 150, 0.28), rgba(34, 193, 150, 0) 70%);
}

.aurora-c {
  top: 720px;
  right: 10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 236, 216, 0.6), rgba(201, 236, 216, 0) 70%);
}

/* ---------- Top bar: a floating Material "nav rail" ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 18px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  position: sticky;
  top: 12px;
  z-index: 10;
  box-shadow: var(--elev-2);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #16b56e, var(--green) 55%, var(--green-dark));
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 127, 72, 0.35);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.78;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, opacity 0.18s ease;
}

.main-nav a:hover {
  opacity: 1;
  background: var(--surface-container);
}

.top-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Buttons: Material 3 pill shapes with a visible state layer ---------- */
.primary-btn,
.secondary-btn,
.ghost-btn,
.book-btn {
  border-radius: var(--radius-pill);
  font-weight: 700;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

.primary-btn,
.book-btn,
.secondary-btn {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: var(--elev-1);
}

.primary-btn {
  padding: 0.7rem 1.25rem;
}

.ghost-btn {
  background: var(--surface-container);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
}

.primary-btn:hover,
.secondary-btn:hover,
.book-btn:hover {
  box-shadow: var(--elev-2);
  filter: brightness(1.04);
}

.ghost-btn:hover {
  background: var(--surface-container-high);
}

.primary-btn:active,
.secondary-btn:active,
.book-btn:active,
.ghost-btn:active,
.ride-option:active {
  transform: scale(0.98);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-copy h1 .accent-text {
  background: linear-gradient(100deg, var(--green) 10%, #19c97a 55%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  background: var(--green-tonal);
  color: var(--on-green-tonal);
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}

.eyebrow.dark {
  color: var(--ink);
  border: 1px solid var(--outline);
  background: var(--surface-container);
}

.hero-copy p {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.hero-stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 470px;
}

.hero-stats div {
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  box-shadow: var(--elev-1);
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.hero-stats span {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ---------- Booking card: the hero "product surface" ---------- */
.ride-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline-soft);
  box-shadow: var(--elev-3);
  padding: 22px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tonal);
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-pill);
}

.status-tag::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 127, 72, 0.18);
}

.panel-header h2 {
  font-size: 1.7rem;
  margin: 8px 0 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.pill-mini {
  align-self: center;
  background: var(--surface-container);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-container);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input-group:focus-within {
  border-color: var(--green);
  background: var(--surface);
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.dot.green {
  background: #1aa358;
  box-shadow: 0 0 0 4px rgba(26, 163, 88, 0.16);
}

.dot.red {
  background: #e0453f;
  box-shadow: 0 0 0 4px rgba(224, 69, 63, 0.14);
}

.input-group input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.98rem;
  outline: none;
}

/* ---------- Vehicle selector ---------- */
.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.ride-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 80px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ride-option:hover {
  border-color: var(--green-tonal-strong);
}

.ride-option.active {
  background: var(--green-tonal);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  color: var(--on-green-tonal);
}

.icon,
.ride-option .material-symbols-outlined,
.service-icon .material-symbols-outlined {
  font-size: 1.4rem;
}

.ride-option .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.ride-option.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.fare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-container);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  margin-bottom: 14px;
}

.label {
  display: block;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.fare-row strong {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.eta-box {
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.book-btn {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1.02rem;
  border-radius: var(--radius-pill);
}

.message {
  min-height: 20px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 700;
  margin-top: 12px;
}

/* ---------- Services ---------- */
.services {
  padding-top: 84px;
}

.section-head {
  margin-bottom: 24px;
  text-align: center;
}

.section-head h3 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--elev-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.service-card.accent {
  background: var(--green-tonal);
  border-color: var(--green-tonal-strong);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-container);
  margin-bottom: 16px;
  color: var(--green-dark);
}

.service-card.accent .service-icon {
  background: rgba(255, 255, 255, 0.6);
}

.service-card h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

/* ---------- Promo strip: the dark "AI" surface ---------- */
.promo-strip {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1f16 0%, #0a2a1b 55%, #0f3c25 100%);
  border-radius: var(--radius-xl);
  padding: 32px 34px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.promo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 260px at 85% 0%, rgba(34, 221, 139, 0.35), transparent 70%);
  pointer-events: none;
}

.promo-copy {
  position: relative;
}

.promo-copy span {
  display: inline-block;
  background: rgba(34, 221, 139, 0.16);
  color: #7ee8b3;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.promo-copy h3 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.secondary-btn {
  position: relative;
  background: #fff;
  color: var(--green-dark);
  padding: 0.9rem 1.5rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar,
  .main-nav,
  .top-actions {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

  .topbar {
    padding: 10px 10px 10px 14px;
  }

  .main-nav {
    gap: 2px;
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .top-actions > * {
    flex: 1;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .vehicle-selector,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-header {
    flex-direction: column;
    gap: 8px;
  }

  .fare-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Live booking */
.book-map { height: 220px; border-radius: var(--radius-md); margin-bottom: 14px; border: 1px solid var(--outline-soft); z-index: 0; overflow: hidden; }
.dot.dark { background: var(--ink); box-shadow: 0 0 0 4px rgba(23, 29, 25, 0.1); }
.input-group.place { position: relative; }
.locate-btn { border: 0; background: var(--surface); border-radius: var(--radius-sm); width: 32px; height: 30px; font-size: 1.0rem; cursor: pointer; flex: none; box-shadow: var(--elev-1); }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1000; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--outline-soft); border-radius: var(--radius-md); box-shadow: var(--elev-3); max-height: 240px; overflow: auto; }
.suggestions li { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem; }
.suggestions li:hover { background: var(--surface-container); }
.suggestions li.empty { color: var(--ink-muted); cursor: default; }
.ride-option { cursor: pointer; }
.opt-fare { color: var(--ink-muted); font-size: 0.74rem; font-weight: 700; }
.book-btn:disabled { opacity: 0.55; cursor: wait; }

.trip-panel { display: grid; gap: 12px; }
.trip-status { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--outline-soft); border-radius: var(--radius-md); padding: 14px 16px; }
.trip-status .label { margin-bottom: 2px; }
.trip-status strong { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--green); flex: none; animation: bzpulse 1.4s infinite; }
.trip-panel[data-status="completed"] .pulse { background: #1da853; animation: none; }
.trip-panel[data-status="cancelled"] .pulse { background: var(--danger); animation: none; }
@keyframes bzpulse { 0% { box-shadow: 0 0 0 0 rgba(10, 127, 72, 0.6); } 100% { box-shadow: 0 0 0 13px rgba(10, 127, 72, 0); } }
.otp { margin-left: auto; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: 0.06em; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); }
.captain-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--green-tonal); }
.captain-box small { display: block; color: var(--ink-muted); margin-top: 2px; }
.captain-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-dark); color: #fff; font-weight: 800; flex: none; }
.captain-eta { margin-left: auto; font-weight: 800; font-size: 0.85rem; text-align: right; }
.trip-route { display: grid; gap: 10px; padding: 4px 4px; }
.trip-route span { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; }
.trip-route .dot { flex: none; width: 9px; height: 9px; }
.fare-row.compact { padding: 14px 16px; margin: 0; }
.fare-row.compact strong { font-size: 1.45rem; }
.ghost-btn.wide { width: 100%; padding: 0.9rem; border-radius: var(--radius-pill); }
.bz-pin{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--pin);border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.3);color:#fff;font-size:11px}

/* Firebase login + trip tools */
.login-panel { display: grid; gap: 10px; }
.login-panel .label { margin: 0; }
.prefix { font-weight: 800; color: var(--ink-muted); }
.who { margin: 0 0 10px; color: var(--ink-muted); font-size: 0.9rem; }
.suggestions li b { display: block; }
.suggestions li small { display: block; color: var(--ink-muted); font-size: 0.78rem; }
.pay-row { display: flex; align-items: center; gap: 14px; margin: -2px 0 14px; flex-wrap: wrap; }
.pay-row .label { margin: 0; }
.pay-row label { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; font-size: 0.92rem; }
.trip-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-tools .ghost-btn { padding: 0.8rem; border-radius: var(--radius-md); }
.sos-btn { background: var(--danger-tonal) !important; color: var(--danger) !important; font-weight: 800; }
.rate-box { display: grid; gap: 6px; text-align: center; }
.stars { display: flex; justify-content: center; gap: 6px; }
.stars button { border: 0; background: none; font-size: 1.9rem; color: var(--outline); cursor: pointer; transition: transform 0.15s ease, color 0.15s ease; }
.stars button:hover { color: #e1a400; transform: scale(1.12); }
.captain-box small { color: #8a6a00; font-weight: 700; }
.captain-box a { color: var(--green-dark); font-weight: 800; }
#recaptcha { min-height: 0; }
.vehicle-selector { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.parcel-fields { display: grid; gap: 8px; margin: -4px 0 16px; padding: 14px; border-radius: var(--radius-md); background: var(--green-tonal); }
.parcel-fields .label { margin: 0; font-weight: 700; color: var(--ink); }
.parcel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.parcel-fields input[type=text], .parcel-fields input[type=tel], .parcel-fields select { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--outline-soft); border-radius: var(--radius-sm); background: var(--surface); width: 100%; }
.parcel-fields .check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-muted); }
@media (max-width: 420px) { .parcel-grid { grid-template-columns: 1fr; } .ride-option { min-height: 74px; font-size: 0.85rem; } }

.coupon-row { display: flex; gap: 8px; margin: -2px 0 4px; }
.coupon-row input { flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.8rem; border: 1.5px dashed var(--outline); border-radius: var(--radius-sm); background: var(--surface); text-transform: uppercase; }
.coupon-row .ghost-btn { padding: 0.6rem 1rem; }
.coupon-msg { min-height: 1em; margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; }
.coupon-msg.ok { color: var(--green-dark); }
.coupon-msg.bad { color: var(--danger); }
#parcelCod { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--outline-soft); border-radius: var(--radius-sm); background: var(--surface); width: 100%; }

.site-footer { margin-top: 48px; padding: 28px 4px; border-top: 1px solid var(--outline-soft); display: grid; gap: 12px; color: var(--ink-muted); font-size: 0.9rem; }
.site-footer b { color: var(--ink); margin-right: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--green-dark); }
.site-footer p { margin: 0; }

/* ---------- Mobile-first fixes (keep at end so they win) ---------- */
[hidden] { display: none !important; }
html, body { overflow-x: clip; } /* clip, not hidden: hidden makes body a scroll box and breaks the sticky header */
.hero > *, .ride-card, .ride-card form, .trip-panel { min-width: 0; }
.topbar > * { min-width: 0; }
.main-nav { scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }

@media (max-width: 980px) {
  .hero { gap: 20px; padding-top: 22px; }
  .ride-card { order: -1; }            /* booking first on tablets and phones */
}

@media (max-width: 640px) {
  .topbar { position: static; padding: 10px 12px; gap: 10px; border-radius: var(--radius-lg); }
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .main-nav {
    order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    gap: 2px; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  .main-nav a { white-space: nowrap; }
  .top-actions { width: auto; flex-wrap: nowrap; }
  .top-actions > * { flex: none; }
  .top-actions .primary-btn { display: none; }   /* the booking card is right below */
  .ghost-btn { padding: 0.6rem 0.9rem; }

  .ride-card { padding: 16px 14px; border-radius: var(--radius-lg); }
  .panel-header { flex-direction: row; align-items: center; margin-bottom: 12px; }
  .panel-header h2 { font-size: 1.4rem; margin-top: 4px; }
  .book-map { height: 200px; }

  /* 16px inputs stop iOS from zooming in on focus */
  input, select, textarea { font-size: 16px !important; }
  .input-group { padding: 0.75rem 0.85rem; }

  .vehicle-selector {
    display: flex; overflow-x: auto; gap: 8px; margin: 14px -2px; padding: 2px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .vehicle-selector::-webkit-scrollbar { display: none; }
  .ride-option { flex: 0 0 78px; min-height: 76px; scroll-snap-align: start; border-radius: var(--radius-md); }

  .fare-row { flex-direction: row; align-items: center; padding: 14px; }
  .fare-row strong { font-size: 1.5rem; }
  .book-btn { padding: 1rem; font-size: 1rem; }

  .hero-copy h1 { font-size: 2.1rem; }
  .hero-copy p { font-size: 1rem; line-height: 1.6; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-stats div { padding: 12px 10px; }
  .hero-stats strong { font-size: 1.05rem; }

  .services { padding-top: 48px; }
  .service-card { padding: 18px 14px; }
  .promo-strip { padding: 24px 20px; }
  .promo-strip .secondary-btn { width: 100%; }

  .trip-status { flex-wrap: wrap; }
  .otp { margin-left: 0; }
  .captain-box { flex-wrap: wrap; }
  .captain-eta { margin-left: 50px; text-align: left; }
}

@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pay-row { flex-wrap: wrap; gap: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .ride-card { animation: bz-rise 0.5s ease both; }
  .hero-copy h1 { animation-delay: 0.04s; }
  .hero-copy p { animation-delay: 0.1s; }
  .hero-stats { animation-delay: 0.16s; }
  .ride-card { animation-delay: 0.08s; }
}

@keyframes bz-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Motion: richer animations (all switched off for reduced-motion users) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Aurora blobs drift slowly, like an AI product backdrop. */
  .aurora-a { animation: bz-drift-a 18s ease-in-out infinite alternate; }
  .aurora-b { animation: bz-drift-b 22s ease-in-out infinite alternate; }
  .aurora-c { animation: bz-drift-c 26s ease-in-out infinite alternate; }

  /* Headline gradient shimmers. */
  .hero-copy h1 .accent-text {
    background-size: 220% 100%;
    animation: bz-shimmer 6s ease-in-out infinite;
  }

  /* Eyebrow chip gets a soft "live" glow. */
  .eyebrow:not(.dark) { animation: bz-glow 3.2s ease-in-out infinite; }

  /* Primary buttons: light sweep on hover. */
  .primary-btn, .book-btn, .secondary-btn { overflow: hidden; }
  .primary-btn::after, .book-btn::after, .secondary-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
  }
  .primary-btn:hover::after, .book-btn:hover::after, .secondary-btn:hover::after {
    animation: bz-sweep 0.9s ease;
  }

  /* Vehicle picker: icon pops when chosen. */
  .ride-option.active .material-symbols-outlined { animation: bz-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .ride-option:hover .material-symbols-outlined { transform: translateY(-2px); }
  .ride-option .material-symbols-outlined { transition: transform 0.2s ease; }

  /* Service cards: icon lifts and tilts on hover. */
  .service-icon { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease; }
  .service-card:hover .service-icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); background: var(--green-tonal); }

  /* Promo strip glow breathes. */
  .promo-strip::before { animation: bz-breathe 5s ease-in-out infinite; }

  /* Hero stats float in one after another. */
  .hero-stats div { animation: bz-rise 0.6s ease both; }
  .hero-stats div:nth-child(1) { animation-delay: 0.22s; }
  .hero-stats div:nth-child(2) { animation-delay: 0.3s; }
  .hero-stats div:nth-child(3) { animation-delay: 0.38s; }

  /* Sections reveal as they scroll into view (class added by a small script in index.html). */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .service-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .service-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .service-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

  /* Live trip status dot already pulses; the captain card slides in when assigned. */
  .captain-box:not([hidden]) { animation: bz-rise 0.45s ease both; }
}

@keyframes bz-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes bz-drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -30px) scale(1.08); } }
@keyframes bz-drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, -50px) scale(1.15); } }
@keyframes bz-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes bz-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 127, 72, 0); } 50% { box-shadow: 0 0 0 6px rgba(10, 127, 72, 0.12); } }
@keyframes bz-sweep { to { transform: translateX(120%); } }
@keyframes bz-pop { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
@keyframes bz-breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---------- App-style booking: map fills the stage, card floats on it like the app's sheet ---------- */
.map-stage {
  position: relative;
  margin-top: 16px;
  height: calc(100vh - 120px);
  min-height: 620px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--outline-soft);
  box-shadow: var(--elev-2);
  background: var(--surface-container);
}
.map-stage .book-map {
  position: absolute;
  inset: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.map-stage .ride-card {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 420px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--elev-4);
  scrollbar-width: thin;
}
.map-stage .ride-card .panel-header h2 { font-size: 1.45rem; }

/* Labelled map pins, like the app's "Pickup Point" tag */
.bz-tag { display: flex; flex-direction: column; align-items: center; }
.bz-tag span {
  background: var(--pin); color: #fff; font: 700 12px/16px "Inter", sans-serif;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.bz-tag span::after { content: ""; display: block; }
.bz-tag b { width: 2px; height: 10px; background: var(--pin); }
.bz-tag i { width: 16px; height: 16px; border-radius: 50%; background: var(--pin); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }

/* Vehicle choice as a list, like the app's "choose a ride" screen */
.vehicle-selector { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0; overflow: visible; padding: 0; }
.ride-option {
  flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 62px; padding: 10px 14px;
  text-align: left; flex: none; font-size: 1rem;
}
.ride-option > span:nth-of-type(2) { flex: 1; }
.ride-option .material-symbols-outlined {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-container);
}
.ride-option.active .material-symbols-outlined { background: #fff; }
.ride-option .opt-fare { font-size: 1.05rem; font-weight: 800; color: var(--ink); }

/* Headline + stats now sit below the booking stage */
.hero.intro { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 64px; }
.hero.intro .hero-copy p { margin-left: auto; margin-right: auto; }
.hero.intro .hero-stats { margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  /* Phones/tablets: map on top, card slides over it as a bottom sheet — same as the app */
  .map-stage { height: auto; min-height: 0; overflow: visible; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
  .map-stage .book-map { position: relative; height: 46vh; min-height: 300px; border-radius: var(--radius-lg); }
  .map-stage .ride-card {
    position: relative; inset: auto; width: auto; margin-top: -32px; overflow: visible;
    border-radius: 28px 28px var(--radius-lg) var(--radius-lg);
  }
  .map-stage .ride-card::before {
    content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--outline); margin: -6px auto 12px;
  }
  .hero.intro { padding-top: 40px; }
}

/* Admin-set service photo in place of the icon */
/* Longhands + extra specificity: the icon-box rules above use the `background` shorthand, which would reset size/position. */
.svc-photo.svc-photo.svc-photo { background-color: #fff; background-position: center; background-size: 82%; background-size: contain; background-repeat: no-repeat; background-origin: content-box; padding: 3px; box-sizing: border-box; }
.ride-option .svc-photo, .service-icon.svc-photo { color: transparent; }

/* Pin tags: only the label and dot take the mouse (the icon box is wider than them); draggable while booking */
.bz-tag-icon { pointer-events: none !important; }
.bz-tag-icon .bz-tag span, .bz-tag-icon .bz-tag i { pointer-events: auto; }
.bz-tag-icon.leaflet-marker-draggable .bz-tag span, .bz-tag-icon.leaflet-marker-draggable .bz-tag i { cursor: grab; }
.bz-tag-icon.leaflet-drag-target .bz-tag { transform: translateY(-6px); transition: transform 0.15s ease; }
.bz-tag span { max-width: 205px; overflow: hidden; }
.pin-hint { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; font-size: 0.8rem; color: var(--muted, #5f6472); }
.pin-hint .material-symbols-outlined { font-size: 1rem; }
.bz-tag span { display: inline-flex; align-items: center; gap: 4px; }
.bz-tag span em { font-style: normal; font-size: 14px; line-height: 1; opacity: 0.9; }
.bz-tag-icon.leaflet-marker-draggable .bz-tag span { cursor: pointer; }

/* "Choose your ride" cards are links that pick the vehicle in the booking card */
a.service-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.service-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
