/* Public rider site. Colour world: deep indigo + violet + pink glow, taxi-yellow for the main actions, soft pastel sections.
   --brand is the one colour a brand can change (js/brand.js, RB_CONFIG.COLOR); everything else is derived or decorative. */
:root {
  --brand: #5b3df5;
  --brand-dark: #3a22c9;
  --brand-soft: #efeaff;
  --accent: #ffc72c;
  --accent-ink: #2b1a00;
  --surface: #ffffff;
  --page: #ffffff;
  --lav: #f5f2ff;
  --cream: #fff8e8;
  --ink: #161236;
  --muted: #6b6890;
  --line: #e6e2f5;
  --radius: 1.2rem;
  --shadow: 0 14px 34px rgba(58, 34, 201, .14);
  --nav-h: 64px;

  /* decorative tones (background, foreground) */
  --t-violet-bg: #efeaff; --t-violet: #5b3df5;
  --t-amber-bg: #fff1cc;  --t-amber: #b86e00;
  --t-sky-bg: #dff1ff;    --t-sky: #0369a1;
  --t-mint-bg: #d9f7e8;   --t-mint: #0f8a54;
  --t-pink-bg: #ffe3ef;   --t-pink: #c0266d;
  --t-orange-bg: #ffe8d6; --t-orange: #c2410c;

  --bs-primary: var(--brand);
  --bs-primary-rgb: 91, 61, 245;
  --bs-link-color: var(--brand);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; }

/* ---------- Navigation ---------- */
.site-nav { background: color-mix(in srgb, var(--brand-dark) 88%, #120a47); backdrop-filter: blur(10px); min-height: var(--nav-h); padding: .35rem 0; box-shadow: 0 2px 18px rgba(26, 15, 92, .25); }
.site-nav .navbar-brand { color: #fff; font-weight: 800; font-size: 1.25rem; }
.site-nav .nav-link { color: rgba(255, 255, 255, .82); font-weight: 600; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--accent); }
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.site-nav .navbar-toggler-icon { filter: invert(1); }
.site-nav #navPhone { color: rgba(255, 255, 255, .85); }
.site-nav .btn-light { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.site-nav .btn-light:hover { background: #ffd75a; border-color: #ffd75a; }
@media (max-width: 991.98px) { .site-nav .navbar-collapse { padding: .5rem 0; } }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.logo-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark.sm { width: 28px; height: 28px; border-radius: 8px; }
.logo-mark.sm svg { width: 18px; height: 18px; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; border: 0; color: rgba(255, 255, 255, .8); font-size: .78rem; font-weight: 700; padding: .25rem .6rem; }
.lang-switch button.on { background: #fff; color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 2.5rem 0 6rem;
  background:
    radial-gradient(520px 320px at 8% -4%, rgba(255, 106, 213, .45), transparent 70%),
    radial-gradient(560px 360px at 96% 100%, rgba(255, 199, 44, .38), transparent 70%),
    radial-gradient(900px 420px at 80% -10%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-dark) 78%, #1a0f5c) 0%, var(--brand) 52%, color-mix(in srgb, var(--brand) 62%, #c850ff) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; left: -120px; bottom: 60px; background: rgba(255, 255, 255, .06); }
.hero::after { width: 200px; height: 200px; right: 12%; top: 38px; border: 2px dashed rgba(255, 255, 255, .22); }
@media (max-width: 991.98px) { .hero::after { display: none; } }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--page); pointer-events: none; }
.hero-copy { padding-top: .5rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .9rem; box-shadow: 0 4px 14px rgba(255, 199, 44, .35); }
.eyebrow.dark { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.08; margin: 0 0 1rem; text-shadow: 0 2px 20px rgba(26, 15, 92, .25); }
.hero .lead { font-size: 1.12rem; opacity: .95; max-width: 34rem; }
.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: .4rem .85rem; font-size: .88rem; font-weight: 600; backdrop-filter: blur(4px); }
.chips svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Booking panel ---------- */
.book-panel { border: 0; border-top: 5px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 26px 60px rgba(20, 8, 90, .38); }
.book-panel .card-body { padding: 1.35rem; }
.form-control, .form-select { border-radius: .75rem; border-color: var(--line); padding: .65rem .85rem; background-color: var(--surface); color: var(--ink); font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 22%, transparent); }
.form-label { font-weight: 600; color: var(--muted); }
.input-group > .btn { border-radius: 0 .75rem .75rem 0; }
.btn { border-radius: .75rem; font-weight: 700; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
/* the main action is taxi-yellow */
#btnBook { min-height: 54px; font-size: 1.1rem; border-radius: .9rem; border: 0; color: var(--accent-ink); font-weight: 800;
  background: linear-gradient(180deg, #ffd75a 0%, #ffb800 100%); box-shadow: 0 8px 20px rgba(255, 184, 0, .4); }
#btnBook:hover:not(:disabled), #btnBook:focus:not(:disabled) { background: linear-gradient(180deg, #ffe07a 0%, #ffc21a 100%); color: var(--accent-ink); }
#btnBook:disabled { opacity: .5; box-shadow: none; color: var(--accent-ink); }
#map { height: 170px; border-radius: .8rem; z-index: 0; border: 1px solid var(--line); }
#rideMap { height: 240px; border-radius: .8rem; z-index: 0; border: 1px solid var(--line); }
#estimateBox { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 60%, #ffe3ef)); }
#estimateFare { color: var(--brand-dark); }
.suggest { position: absolute; z-index: 1050; left: 0; right: 0; max-height: 260px; overflow-y: auto; border-radius: .7rem; box-shadow: 0 .5rem 1.25rem rgba(16, 24, 40, .18); }
.suggest button { text-align: left; }
#stars .btn { font-size: 1.5rem; line-height: 1; padding: .2rem .5rem; }
#historyList .list-group-item { background: transparent; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-lav { background: linear-gradient(180deg, var(--lav) 0%, color-mix(in srgb, var(--lav) 70%, #ffe9f4) 100%); }
.section-cream { background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 70%, #fff) 100%); }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: .6rem; }

.icon-box { width: 52px; height: 52px; border-radius: 16px; background: var(--t-violet-bg); color: var(--t-violet); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-box svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.step-card, .feature { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; overflow: hidden;
  box-shadow: 0 4px 14px rgba(58, 34, 201, .05); transition: transform .2s, box-shadow .2s; }
.step-card::before, .feature::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--tone, var(--brand)); }
.step-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card h3, .feature h3 { font-size: 1.1rem; font-weight: 700; }
.step-card p, .feature p { color: var(--muted); margin: 0; }
.step-no { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--tone-bg, var(--brand-soft)); }
.st1 { --tone: var(--t-violet); --tone-bg: var(--t-violet-bg); } .st1 .icon-box { background: var(--t-violet-bg); color: var(--t-violet); }
.st2 { --tone: #f5a400; --tone-bg: var(--t-amber-bg); }          .st2 .icon-box { background: var(--t-amber-bg); color: var(--t-amber); }
.st3 { --tone: #19b36b; --tone-bg: var(--t-mint-bg); }           .st3 .icon-box { background: var(--t-mint-bg); color: var(--t-mint); }
.f-amber { --tone: #f5a400; }  .f-amber .icon-box { background: var(--t-amber-bg); color: var(--t-amber); }
.f-sky { --tone: #1d9bf0; }    .f-sky .icon-box { background: var(--t-sky-bg); color: var(--t-sky); }
.f-mint { --tone: #19b36b; }   .f-mint .icon-box { background: var(--t-mint-bg); color: var(--t-mint); }
.f-pink { --tone: #ec4899; }   .f-pink .icon-box { background: var(--t-pink-bg); color: var(--t-pink); }
.f-violet { --tone: var(--t-violet); } .f-violet .icon-box { background: var(--t-violet-bg); color: var(--t-violet); }
.f-orange { --tone: #f97316; } .f-orange .icon-box { background: var(--t-orange-bg); color: var(--t-orange); }

/* ---------- Prices ---------- */
.price-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--tone, var(--brand)); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: 0 4px 14px rgba(58, 34, 201, .05); }
.price-card.tone-0 { --tone: var(--t-violet); } .price-card.tone-1 { --tone: #f5a400; } .price-card.tone-2 { --tone: #19b36b; } .price-card.tone-3 { --tone: #ec4899; }
.price-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.price-card .seats { color: var(--muted); font-size: .85rem; }
.price-card dl { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; margin: .8rem 0 0; font-size: .92rem; }
.price-card dt { color: var(--muted); font-weight: 500; }
.price-card dd { margin: 0; font-weight: 700; text-align: right; }
.calc-card { height: 100%; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 80%, var(--lav))); border: 2px solid var(--brand-soft); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.calc-result { display: flex; align-items: baseline; justify-content: space-between; color: #fff; border-radius: .9rem; padding: .85rem 1.1rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, color-mix(in srgb, var(--brand) 55%, #ff6ad5)); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); }
.calc-result strong { font-size: 2.1rem; color: #fff; }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }

/* ---------- Driver call-to-action ---------- */
.driver-cta { color: #fff; border-radius: calc(var(--radius) + .4rem); padding: 2.4rem; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255, 199, 44, .28), transparent 65%),
              linear-gradient(135deg, #1d1262 0%, #4a2fd8 55%, #c026d3 100%); box-shadow: 0 24px 50px rgba(58, 34, 201, .3); }
.driver-cta::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; bottom: -140px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .25); }
.driver-cta h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.driver-cta p { opacity: .92; max-width: 38rem; }
.driver-cta .btn-light { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.tick-list li { position: relative; padding-left: 1.7rem; margin-bottom: .4rem; }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent); }

/* ---------- FAQ ---------- */
.accordion { --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius); }
.accordion-item { background: var(--surface); border-color: var(--line); color: var(--ink); }
.accordion-button { font-weight: 700; background: var(--surface); color: var(--ink); }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 22%, transparent); }
.accordion-body { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #17123f; color: rgba(255, 255, 255, .78); padding: 2.2rem 0 2rem; border-top: 4px solid var(--accent); }
.site-footer strong { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { opacity: .6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition-duration: .01ms !important; } }

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
  .hero { padding: 1.5rem 0 5rem; }
  .book-panel .card-body { padding: 1.05rem; }
  .section { padding: 3.2rem 0; }
  .driver-cta { padding: 1.6rem; }
  #btnBook { position: sticky; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 5; }
}

/* ---------- Dark mode follows the phone ---------- */
@media (prefers-color-scheme: dark) {
  :root { --surface: #1b1740; --page: #120e2e; --lav: #171338; --cream: #1a1636; --ink: #efeaff; --muted: #aaa6d0; --line: #2f2a5e; --brand-soft: color-mix(in srgb, var(--brand) 24%, #120e2e);
    --shadow: 0 14px 34px rgba(0, 0, 0, .5);
    --t-violet-bg: rgba(139, 112, 255, .2); --t-violet: #b3a1ff; --t-amber-bg: rgba(255, 199, 44, .18); --t-amber: #ffd45e; --t-sky-bg: rgba(56, 189, 248, .18); --t-sky: #7dd3fc;
    --t-mint-bg: rgba(52, 211, 153, .18); --t-mint: #6ee7b7; --t-pink-bg: rgba(244, 114, 182, .18); --t-pink: #f9a8d4; --t-orange-bg: rgba(251, 146, 60, .18); --t-orange: #fdba74; }
  .section-lav { background: linear-gradient(180deg, #171338, #1b1240); }
  .section-cream { background: linear-gradient(180deg, #1a1636, #17123a); }
  .form-control::placeholder { color: #7b77a8; }
  .list-group-item { color: var(--ink); border-color: var(--line); }
  .text-muted { color: var(--muted) !important; }
  .btn-outline-secondary { color: var(--ink); border-color: var(--line); }
  #estimateFare { color: #c9bcff; }
  .modal-content { background: var(--surface); color: var(--ink); }
  .btn-close { filter: invert(1); }
  .eyebrow.dark { color: #c9bcff; }
  .accordion-button:not(.collapsed) { color: #c9bcff; }
  .accordion-button::after { filter: invert(1); }
  .calc-card { background: linear-gradient(180deg, var(--surface), #17133a); border-color: var(--line); }
  .site-footer { background: #0d0a24; }
}

/* ======================================================================
   Install button (website) and APP MODE (installed app: html.app-mode)
   ====================================================================== */
.install-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--accent-ink); border: 0; background: var(--accent); box-shadow: 0 8px 20px rgba(255, 184, 0, .35); }
.install-btn:hover { background: #ffd75a; color: var(--accent-ink); }
.install-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ios-steps { padding-left: 1.2rem; } .ios-steps li { margin-bottom: .6rem; }
.lang-switch-light { border-color: var(--line); }
.lang-switch-light button { color: var(--muted); }
.lang-switch-light button.on { background: var(--brand); color: #fff; }
.account-links { list-style: none; padding: 0; margin: 0; }
.account-links li { padding: .65rem 0; border-top: 1px solid var(--line); }
.account-links a { text-decoration: none; font-weight: 600; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.empty-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* these only exist in app mode */
.app-bar, .app-tabs, #appEmpty, #appAccount { display: none; }

html.app-mode body { background: var(--lav); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
html.app-mode .site-nav, html.app-mode .hero-skyline, html.app-mode .hero-copy, html.app-mode .hero::before, html.app-mode .hero::after,
html.app-mode #how, html.app-mode #why, html.app-mode #prices, html.app-mode #drivers, html.app-mode #faq, html.app-mode .site-footer { display: none !important; }
html.app-mode .hero { padding: 0; background: none; color: var(--ink); overflow: visible; }
html.app-mode .hero > .container { max-width: 560px; padding: 0; }
html.app-mode .hero .row { margin: 0; --bs-gutter-x: 0; }
html.app-mode .hero .row > [class*="col-"] { padding: 0; }

/* top bar */
html.app-mode .app-bar { display: flex; position: sticky; top: 0; z-index: 1030; align-items: center; justify-content: space-between; color: #fff;
  padding: calc(env(safe-area-inset-top) + .55rem) 1rem .55rem; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 2px 14px rgba(26, 15, 92, .3); }
.app-bar strong { font-size: 1.1rem; }
.app-login { background: var(--accent); color: var(--accent-ink); font-weight: 800; border: 0; }
.app-bar .logo-mark.sm { background: var(--accent); color: var(--accent-ink); }

/* tab bar */
html.app-mode .app-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--surface); border-top: 1px solid var(--line);
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(58, 34, 201, .1); }
.app-tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .72rem; font-weight: 700; border-radius: .8rem; min-height: 54px; }
.app-tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs button.active { color: var(--brand); background: var(--brand-soft); }

/* the booking sheet: big map on top, the form under it */
html.app-mode .book-panel { border-radius: 0; border-top: 0; box-shadow: none; margin-bottom: 0 !important; }
html.app-mode #bookCard .card-body { display: flex; flex-direction: column; padding: 0 1rem 1rem; }
html.app-mode #map { order: -1; height: 30vh; min-height: 170px; margin: 0 -1rem .75rem; border: 0; border-radius: 0 0 1.4rem 1.4rem; }
html.app-mode #bookCard h2.h5 { margin-top: .2rem; }
html.app-mode #vehicleType, html.app-mode label[for="vehicleType"] { display: none; }
/* the book button follows the screen once there is a price to book (not before, so it never covers the address fields) */
.vehicle-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem; scrollbar-width: none; }
.vehicle-chips::-webkit-scrollbar { display: none; }
.vehicle-chip { flex: 0 0 auto; min-width: 124px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 1rem; padding: .55rem .8rem; display: flex; flex-direction: column; gap: .05rem; color: var(--ink); }
.vehicle-chip strong { font-size: .95rem; }
.vehicle-chip span { font-size: .75rem; color: var(--muted); }
.vehicle-chip em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--brand); }
.vehicle-chip.on { border-color: var(--brand); background: var(--brand-soft); }

/* the cards on the other screens float on the grey-lavender background */
html.app-mode #alertBox { margin: .75rem; }
html.app-mode #rideCard, html.app-mode #historyCard, html.app-mode #appEmpty, html.app-mode #appAccount { margin: .75rem; margin-bottom: .75rem !important; border-radius: 1.2rem; box-shadow: var(--shadow); }

/* which screen shows */
html.app-mode:not([data-view="book"]) #bookCard, html.app-mode.has-ride #bookCard { display: none !important; }
html.app-mode[data-view="account"] #rideCard, html.app-mode[data-view="account"] #historyCard { display: none !important; }
html.app-mode[data-view="book"] #historyCard { display: none !important; }
html.app-mode[data-view="account"] #appAccount { display: block; }
html.app-mode[data-view="rides"]:not(.has-history):not(.has-ride) #appEmpty { display: block; }

.back-to-app { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1040; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  border-radius: 999px; padding: .6rem 1.1rem; text-decoration: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.back-to-app:hover { color: var(--accent-ink); background: #ffd75a; }

/* ---- price option cards (one per vehicle type) */
.option-cards{display:flex;flex-direction:column;gap:.5rem}
.opt-card{display:flex;align-items:center;gap:.75rem;width:100%;text-align:left;padding:.65rem .8rem;border:2px solid #e3e1f2;border-radius:14px;background:#fff;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.opt-card:hover:not(:disabled){border-color:var(--brand)}
.opt-card.on{border-color:var(--brand);box-shadow:0 0 0 3px rgba(91,70,230,.15)}
.opt-card.off{opacity:.45;cursor:not-allowed}
.opt-ico{flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:#f1efff;display:flex;align-items:center;justify-content:center}
.opt-ico svg{width:26px;height:26px;fill:none;stroke:var(--brand);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.opt-mid{flex:1 1 auto;display:flex;flex-direction:column;min-width:0}
.opt-mid small{color:#6b6880}
.opt-price{flex:0 0 auto;font-weight:800;font-size:1.1rem}
.opt-price.soft{font-weight:600;font-size:.85rem;color:#6b6880}
@media (prefers-color-scheme:dark){.opt-card{background:#1d1b2e;border-color:#34314d}.opt-ico{background:#2a2745}.opt-mid small,.opt-price.soft{color:#a9a6c0}}

/* compact step 1 / step 2 */
#bookCard.step2 #map { height: 110px; }
html.app-mode #bookCard.step2 #map { height: 18vh; min-height: 110px; }
#bookCard .form-label { margin-bottom: .15rem; }
.when-seg { display: flex; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; height: calc(1.5em + .75rem + 2px); }
.when-seg label { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); background: var(--surface); }
.when-seg .btn-check:checked + label { background: var(--brand); color: #fff; }
#btnCalc, #btnBook { font-weight: 800; }
#bookCard.step2 > .card-body > h2 { display: none; }
/* readable helper text in light and dark */
.form-text, .small.text-muted, #tripSummary { color: var(--muted) !important; }
.opt-card { background: var(--surface); border-color: var(--line); }
.opt-mid small, .opt-price.soft { color: var(--muted); }
.opt-ico { background: var(--brand-soft); }

/* ---- step 2 = bottom sheet over the map */
#bookCard.step2 #map, html.app-mode #bookCard.step2 #map { height: calc(100vh - 130px); min-height: 320px; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 74vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border-radius: 1.4rem 1.4rem 0 0; box-shadow: 0 -10px 40px rgba(20, 8, 90, .35); animation: sheetUp .28s ease-out; max-width: 640px; margin: 0 auto; }
html.app-mode .sheet { bottom: calc(66px + env(safe-area-inset-bottom)); max-height: 70vh; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: .55rem auto .2rem; flex: 0 0 auto; }
.sheet-body { overflow-y: auto; padding: .4rem 1rem .6rem; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.sheet-bar { flex: 0 0 auto; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
html.app-mode .sheet-bar { padding-bottom: .6rem; }
.sheet-note { color: var(--muted); }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.opt-card .opt-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.opt-card.on .opt-check { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.sheet #estimateBox { background: transparent !important; padding: 0 !important; color: var(--muted); }
/* modal style: the sheet covers the bottom menu, the rest is dimmed (tap outside = back to step 1) */
.sheet, html.app-mode .sheet { z-index: 1060; bottom: 0; max-height: 80vh; }
html.app-mode .sheet-bar, .sheet-bar { padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
#bookCard.step2::after { content: ""; position: fixed; inset: 0; z-index: 1055; background: rgba(12, 8, 40, .5); animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* login popup must sit above the booking sheet */
.modal { z-index: 1080; }
.modal-backdrop { z-index: 1075; }

/* country-code phone input (intl-tel-input) */
.iti { width: 100%; }
.iti__tel-input { font-size: 16px; }
.iti--container { z-index: 1090; }
@media (prefers-color-scheme: dark) {
  .iti { --iti-dropdown-bg: var(--surface); --iti-border-color: var(--line); --iti-hover-color: var(--brand-soft); --iti-arrow-color: var(--muted); --iti-dialcode-color: var(--muted); }
  .iti__country-list, .iti__country-name, .iti__selected-dial-code { color: var(--ink); }
  .iti__search-input { background: var(--surface); color: var(--ink); }
}

/* top safe area (notch / status bar) in the theme colour */
.site-nav { padding-top: calc(.35rem + env(safe-area-inset-top, 0px)); }
html.app-mode { background: var(--brand-dark); }
html.app-mode body { background: var(--lav); min-height: 100vh; }

/* app mode: no gap between the top bar and the map */
html.app-mode #book { margin-top: 0 !important; }
html.app-mode .hero .row { --bs-gutter-y: 0; }

/* ---- compact route card (pick-up + destination in one box) */
#bookCard > .card-body > h2 { display: none; }
.route-box { display: flex; gap: .65rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .2rem .7rem .2rem .8rem; margin-bottom: .6rem; }
.route-rail { display: flex; flex-direction: column; align-items: center; padding: .95rem 0 .95rem; }
.route-rail .r-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.route-rail .r-line { width: 2px; flex: 1 1 auto; background: var(--line); margin: 3px 0; }
.route-rail .r-sq { width: 10px; height: 10px; background: var(--ink); flex: 0 0 auto; }
.route-fields { flex: 1 1 auto; min-width: 0; }
.route-row + .route-row { border-top: 1px solid var(--line); }
.route-box .form-control { border: 0; background: transparent; box-shadow: none; padding: .62rem 0; font-size: 16px; color: var(--ink); border-radius: 0; }
.route-box .form-control:focus { box-shadow: none; }
.btn-loc { flex: 0 0 auto; border: 0; background: var(--brand-soft); color: var(--brand); width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.route-hint { font-size: .72rem; color: var(--muted); margin: -.25rem 0 .4rem; }
.route-box .suggest { left: -1.5rem; right: -.7rem; }

/* Now / Later toggle = same size as the two selects next to it */
.when-seg { height: 46px; border-radius: .6rem; }
.when-seg label { font-size: 1rem; }
#bookCard .form-select { height: 46px; }

/* "use my location" button: GPS crosshair icon */
.btn-loc { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 38px; height: 38px; }
.btn-loc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn-loc:active { transform: scale(.92); }
.btn-loc.busy svg { animation: locPulse 1s ease-in-out infinite; }
@keyframes locPulse { 50% { opacity: .35; transform: scale(.85); } }

/* browser autofill (yellow / white box with black text) must keep the theme style */
.route-box input:-webkit-autofill, .route-box input:-webkit-autofill:hover, .route-box input:-webkit-autofill:focus,
.form-control:-webkit-autofill, .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important; caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset !important; -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.route-box input { background-clip: padding-box; }
/* selected text inside the address fields (tap = select all) in theme colours */
.route-box input::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--ink); -webkit-text-fill-color: var(--ink); }
.route-box input:focus { background: transparent !important; color: var(--ink); -webkit-text-fill-color: var(--ink); }

/* labels above the 3 controls share one box model, so Passengers / Suitcases / When sit on the same line */
#bookCard .row .form-label { display: block; line-height: 1.2; }

/* ---- route card with stops: every row has its own marker, one line runs through them */
.route-box { display: block; position: relative; padding: .2rem .7rem .2rem 2.1rem; }
.route-rail { display: none; }
.route-box::before { content: ""; position: absolute; left: calc(1.11rem - 1px); top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--line); }
.route-row::before { content: ""; position: absolute; left: -1.3rem; top: 1.05rem; width: 10px; height: 10px; z-index: 1; }
.route-from::before { border-radius: 50%; background: var(--brand); }
.route-stop::before { border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.route-to::before { background: var(--ink); }
.btn-del { font-size: 1.3rem; background: transparent; color: var(--muted); }
.route-add { display: block; margin: 0 0 .6rem; padding: .1rem .2rem; border: 0; background: transparent; color: var(--brand); font-weight: 700; font-size: .9rem; }

/* ---- app mode: tighter booking form (address, passengers, suitcases, when) */
html.app-mode #bookCard .card-body { padding-bottom: .6rem; }
html.app-mode .route-box { margin-bottom: .4rem; padding-top: .05rem; padding-bottom: .05rem; }
html.app-mode .route-box .form-control { padding-top: .4rem; padding-bottom: .4rem; }
html.app-mode .route-row::before { top: .85rem; }
html.app-mode .route-box::before { top: 1.15rem; bottom: 1.15rem; }
html.app-mode .btn-loc { width: 32px; height: 32px; }
html.app-mode .route-hint { margin: -.3rem 0 .25rem; line-height: 1.15; }
html.app-mode #step1 .row.g-2 { --bs-gutter-x: .4rem; --bs-gutter-y: 0; margin-bottom: .35rem !important; }
html.app-mode #bookCard .form-label { margin-bottom: .1rem !important; font-size: .72rem; }
html.app-mode #bookCard .form-select, html.app-mode .when-seg { height: 40px; }
html.app-mode #bookCard .form-select { padding-top: .25rem; padding-bottom: .25rem; }
html.app-mode .when-seg label { font-size: .95rem; }
html.app-mode #step1 .form-check { margin-bottom: .45rem !important; min-height: 0; }
html.app-mode .route-add { margin-bottom: .35rem; padding: 0 .2rem; }
html.app-mode #btnCalc { padding-top: .55rem; padding-bottom: .55rem; }

/* ---- app mode: less left / right room (screen edge to content) */
html.app-mode #bookCard .card-body { padding-left: .65rem; padding-right: .65rem; }
html.app-mode #map { margin-left: -.65rem; margin-right: -.65rem; }
html.app-mode .route-box { padding-left: 1.75rem; padding-right: .45rem; }
html.app-mode .route-row::before { left: -1.4rem; }
html.app-mode .route-box::before { left: calc(.35rem + 4px); }
html.app-mode .sheet-body, html.app-mode .sheet-bar { padding-left: .75rem; padding-right: .75rem; }
html.app-mode #rideCard .card-body, html.app-mode #historyCard .card-body { padding-left: .75rem; padding-right: .75rem; }

.opt-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.opt-was { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* price card groups: Special For You, the website's cards, the default cards */
.opt-group { font-size: .78rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: .55rem 0 .15rem; }
.opt-group:first-child { margin-top: 0; }
.opt-group.special { color: #b45309; }
.opt-card.special { border-color: #f5b301; background: linear-gradient(135deg, rgba(255, 199, 44, .16), rgba(255, 199, 44, .04)); }
.opt-card.special .opt-ico { background: #ffc72c; }
.opt-card.special .opt-ico svg { stroke: #3b2a00; }
.opt-card.special.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 70, 230, .15); }
