/* ETEL RIDER PREMIUM UI/UX OVERRIDE
   Safe visual-only layer. Existing ride.js/API/state logic remains intact. */
:root{
  --r-gold:#D4AF37;--r-gold2:#F4D56A;--r-gold3:#FFE9A8;
  --r-bg:#08090F;--r-panel:#11131C;--r-panel2:#171923;
  --r-line:rgba(244,213,106,.18);--r-text:#F7F5EE;--r-muted:#989AA8;
  --r-green:#35D17C;--r-red:#EF5350;--r-shadow:0 18px 55px rgba(0,0,0,.42);
}
html,body{background:var(--r-bg)!important;color:var(--r-text)!important}
/* Real, tappable sheet-collapse control - see the comment above it in
   ride/index.html. Sits where the purely-decorative drag-handle bar
   (.ride-sheet::before, still shown behind it) already was, but this is
   an actual <button> wired to the existing toggleSheet(), not a restyle
   of that bar. Full-width hit target for a reliable tap, not just the
   small bar's width. */
.sheet-toggle-btn{
  display:block;width:100%;min-height:30px;padding:6px 0 2px;margin:-4px 0 4px;
  background:transparent;border:none;color:var(--r-muted);font-size:15px;
  line-height:1;cursor:pointer;flex-shrink:0;
}
.sheet-toggle-btn:active{color:var(--r-gold2)}
body.dark-page{font-family:'Outfit',system-ui,sans-serif!important;background:radial-gradient(circle at 50% -20%,rgba(212,175,55,.12),transparent 38%),#08090f!important}
/* Map stays the real Google map - this just gives the UI a legibility
   veil over it (darker near the header/sheet edges) so overlaid text
   and controls stay readable regardless of what the map tiles show. */
#ride-map{filter:saturate(.86) contrast(.98);position:relative}
#ride-map::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(180deg,rgba(4,4,8,.38),transparent 26%,transparent 62%,rgba(5,5,9,.55));}
.ride-header{
  height:68px!important;min-height:68px!important;padding:9px 14px!important;
  background:linear-gradient(180deg,rgba(9,10,15,.97),rgba(9,10,15,.88))!important;
  border-bottom:1px solid rgba(212,175,55,.28)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.28)!important;backdrop-filter:blur(12px)!important;
}
.ride-logo-box{width:44px!important;height:44px!important;border-radius:14px!important;border:1px solid rgba(212,175,55,.5)!important;box-shadow:0 8px 24px rgba(0,0,0,.45)!important}
.ride-header-title{font-family:'Sora',sans-serif!important;font-weight:800!important;letter-spacing:.02em!important;font-size:16px!important;;color:#E5C76B!important}
.ride-header-sub{color:var(--r-gold2)!important;font-size:11px!important;font-weight:700!important;letter-spacing:.08em!important}
.ride-header-user button{min-height:34px!important}
.ride-header-user button:last-child{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.14)!important;color:#D6D8E2!important}
.ride-sheet{
  background:linear-gradient(180deg,rgba(8,9,15,.98),#090A10)!important;
  border-top:1px solid rgba(212,175,55,.34)!important;
  box-shadow:0 -20px 55px rgba(0,0,0,.38)!important;
  border-radius:24px 24px 0 0!important;
  padding:10px 14px 30px!important;
}
/* Map-first layout: shorter sheet so more live map shows above it; the
   active view scrolls inside the sheet (.ride-view is overflow-y:auto). */
.ride-sheet{max-height:66vh!important}
/* Tabs become a bottom navigation bar (the sheet is a flex column, so
   order moves them after the views without touching the markup). */
.ride-tabs{order:99!important;margin:10px -14px -14px!important;padding:6px 8px 4px!important;
  background:rgba(8,9,15,.96)!important;border:0!important;border-top:1px solid rgba(212,175,55,.18)!important;border-radius:0!important;flex-shrink:0!important}
.ride-tab{flex:1!important;min-width:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#8F92A0!important;padding:10px 4px!important;font-weight:800!important;font-size:11px!important;white-space:nowrap!important;box-shadow:none!important}
.ride-tab.active{background:transparent!important;color:var(--r-gold2)!important;box-shadow:inset 0 2px 0 var(--r-gold)!important;text-shadow:none}
/* Vehicles as a wrapping 3-column grid instead of a sideways-scrolling
   row that clipped the last type (QUTE) off-screen. */
.vtype-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;padding:2px 1px 8px!important}
.vtype-chip{min-width:0!important;background:linear-gradient(180deg,#151823,#10121A)!important;border:1px solid #292D39!important;border-radius:16px!important;padding:10px 6px!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important}
.vt-unavailable-badge{white-space:normal!important;text-align:center;line-height:1.2}
.vtype-chip.active{background:linear-gradient(180deg,rgba(212,175,55,.18),rgba(212,175,55,.05))!important;border-color:var(--r-gold)!important;box-shadow:0 10px 28px rgba(0,0,0,.45)!important}
.vtype-chip .vt-icon{font-size:25px!important}.vtype-chip .vt-name{color:#E8E7E1!important;font-size:12px!important}.vtype-chip.active .vt-name{color:var(--r-gold2)!important}.vtype-chip .vt-eta{color:#75798A!important;font-size:11px!important}.vtype-chip .vt-price{color:var(--r-gold2)!important;font-weight:900!important}
.loc-card,.fare-card,.pay-row,.driver-card,.info-rows,.mp-section,.mp-stat,.reason-chip{
  background:linear-gradient(180deg,#141722,#10121A)!important;border-color:#292D39!important;box-shadow:0 8px 24px rgba(0,0,0,.16)!important
}
.loc-card{border-radius:18px!important;padding:12px!important}
.loc-row{min-height:52px!important}.loc-input{font-size:14px!important;color:#F4F2E9!important}.loc-input::placeholder{color:#777B89!important}
.loc-icon{width:34px!important;height:34px!important;border-radius:11px!important;display:grid!important;place-items:center!important}
.loc-icon.pickup{background:rgba(212,175,55,.14)!important;border-color:rgba(212,175,55,.4)!important}
.loc-icon.dropoff{background:rgba(96,180,255,.14)!important;border-color:rgba(96,180,255,.4)!important}
.pay-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:5px!important;border-radius:16px!important;margin-top:10px!important}
.pay-opt{border-radius:12px!important;padding:12px!important}.pay-opt.active{background:rgba(212,175,55,.15)!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.45)!important;color:var(--r-gold2)!important}
.fare-card{border-radius:18px!important;margin-top:10px!important;padding:15px!important}
.fare-amount{font-family:'Sora',sans-serif!important;font-size:27px!important;font-weight:900!important;;color:#E5C76B!important}
.fare-label{color:#8D91A0!important}.fare-type-badge{background:rgba(212,175,55,.12)!important;color:var(--r-gold2)!important;border-color:rgba(212,175,55,.25)!important}
.slide-book-wrap{width:100%!important;max-width:none!important;margin:14px auto 0!important}.slide-book-track{height:58px!important;border-radius:17px!important;background:linear-gradient(135deg,#EFD064,#C89A24)!important;border:1px solid rgba(255,233,168,.55)!important;box-shadow:0 14px 34px rgba(0,0,0,.45)!important}.slide-book-label{color:#17130A!important;font-weight:900!important}.slide-book-thumb{background:#151820!important;color:var(--r-gold2)!important;border:1px solid rgba(255,255,255,.1)!important;width:50px!important;height:50px!important}
.btn-outline,.ride-book-btn{border-radius:15px!important;min-height:48px!important;font-weight:800!important}.ride-book-btn{background:linear-gradient(135deg,#F7D66D,#C49422)!important;color:#16120A!important;border:0!important;box-shadow:0 10px 25px rgba(0,0,0,.45)!important}
.btn-danger{border-color:rgba(239,83,80,.38)!important;color:#FF7773!important;background:rgba(239,83,80,.07)!important}
.arriving-header,.sheet-title{font-family:'Sora',sans-serif!important;font-weight:800!important;color:#fff!important}.arriving-sub{color:#9498A8!important}
.driver-card{padding:15px!important;border-radius:19px!important}.driver-avatar{background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(212,175,55,.04))!important;border-color:rgba(212,175,55,.42)!important}.driver-name{font-family:'Sora',sans-serif!important}.driver-rating,.info-row-right{color:var(--r-gold2)!important}
.action-bar-btn{min-height:58px!important;border-radius:15px!important;background:#151823!important;border-color:#292D39!important}.action-bar-btn.call-btn-ab{background:rgba(53,209,124,.10)!important;border-color:rgba(53,209,124,.30)!important}
.info-rows{border-radius:18px!important}.info-row{padding:14px!important}.info-row-label{color:#818593!important}.info-row-val{color:#F0EFE9!important}
.nearby-cars{height:90px!important}.searching-timer{font-family:'Sora',sans-serif!important;color:var(--r-gold2)!important}.searching-label{color:#858997!important}
#ride-map-expand-btn{background:rgba(10,11,17,.82)!important;color:var(--r-gold2)!important;border-color:rgba(212,175,55,.42)!important;backdrop-filter:blur(10px)!important}
#driver-modal,#my-profile-modal{background:linear-gradient(180deg,#13151E,#0A0B11)!important;border-top-color:rgba(212,175,55,.38)!important}
.modal-row,.mp-row{background:transparent!important}.modal-copy{color:var(--r-gold2)!important;background:rgba(212,175,55,.10)!important}
.mp-avatar{background:linear-gradient(135deg,#FFE9A8,#D4AF37)!important;color:#181208!important}
.mp-badge{color:var(--r-gold2)!important;background:rgba(212,175,55,.10)!important;border-color:rgba(212,175,55,.28)!important}
.reason-chip.selected{border-color:var(--r-gold)!important;background:rgba(212,175,55,.12)!important;color:var(--r-gold2)!important}
@media(max-width:520px){.ride-header-user a{display:none}.ride-sheet{padding-left:12px!important;padding-right:12px!important}.ride-tab{font-size:11px!important;padding:10px 2px!important}.ride-tabs{margin-left:-12px!important;margin-right:-12px!important}}
/* core.js's floating theme toggle sits at bottom:24px, which now lands
   on top of the bottom nav's History tab - lift it clear, level with
   the SOS button on the other side. */
/* Floating buttons live over the MAP, never over the sheet: the sheet is
   capped at 66vh, so the band just below the header is always map. The
   SOS button (sos-button.js, shared with Driver - overridden only here)
   sat at bottom:90px and covered the fare/price once the sheet scrolled. */
#sos-fab,#sos-sent-badge{top:calc(env(safe-area-inset-top,0px) + 84px)!important;bottom:auto!important;left:14px!important}
#sos-sent-badge{top:calc(env(safe-area-inset-top,0px) + 138px)!important}
#sos-fab{width:46px!important;height:46px!important}
.dark-toggle-btn{top:calc(env(safe-area-inset-top,0px) + 136px)!important;bottom:auto!important;right:14px!important;width:42px!important;height:42px!important;font-size:19px!important}
/* Delivery cross-sell card rendered in off-brand blue link color. */
#view-book > a.loc-card > div > div:first-child{color:var(--r-gold2)!important}
#view-book > a.loc-card > div > div:last-child,#view-book > a.loc-card > div:last-child{color:var(--r-muted)!important}

/* Tablet/desktop: the sheet and header were full-bleed at any width,
   reading as a stretched phone layout rather than something designed
   for a larger screen. Center both as a fixed-width phone-proportioned
   column instead - the map (position:fixed, full viewport) is
   untouched either way.
   Gated on a real mouse pointer too: phones in "desktop site" mode
   report a >=700px viewport and were getting a narrow floating sheet
   with map showing on both sides. Centered via margin:auto, NOT
   transform - toggleSheet() collapses the sheet with an inline
   translateY, and an !important transform here would override it. */
@media(min-width:1024px) and (hover:hover) and (pointer:fine){
  .ride-sheet{left:0!important;right:0!important;margin:0 auto!important;width:520px!important;border-left:1px solid rgba(212,175,55,.12)!important;border-right:1px solid rgba(212,175,55,.12)!important}
  .ride-header{left:0!important;right:0!important;margin:0 auto!important;max-width:760px!important}
}

.searching-timer{font-size:32px!important;text-shadow:none}
.star-btn{filter:drop-shadow(0 4px 10px rgba(212,175,55,.2))}

/* ── Two-step Book flow (see bookSteps() in ride/index.html) ──
   Step 1: where to. Step 2: vehicle, fare, payment, request. Only
   show/hide - the original elements and their handlers are unchanged. */
#view-book[data-step="1"] > .vtype-row,
#view-book[data-step="1"] > .book-vehicle-extra,
#view-book[data-step="1"] > #fare-card,
#view-book[data-step="1"] > .pay-row,
#view-book[data-step="1"] > #etel-schedule-btn,
#view-book[data-step="1"] > #slide-book-wrap,
#view-book[data-step="1"] > #book-route-summary,
#view-book[data-step="2"] > #book-step-title,
#view-book[data-step="2"] > .loc-card,
#view-book[data-step="2"] > #zone-pick,
#view-book[data-step="2"] > #book-continue,
#view-book[data-step="2"] > p{display:none!important}
#book-step-title{font-size:17px!important;margin:2px 2px 12px!important}
#book-continue{display:block;width:100%;margin:12px 0 4px;font-size:15px;cursor:pointer}
#book-route-summary{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:12px 14px;border-radius:16px;
  background:linear-gradient(180deg,#141722,#10121A);border:1px solid #292D39}
#book-route-summary .brs-rows{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
#book-route-summary .brs-row{display:flex;align-items:center;gap:10px;min-width:0}
#book-route-summary .brs-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
#book-route-summary .brs-dot.pickup{background:var(--r-gold)}
#book-route-summary .brs-dot.dropoff{background:#60B4FF}
#book-route-summary .brs-text{font-size:13px;color:var(--r-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#book-route-summary .brs-change{flex-shrink:0;min-height:36px;padding:0 14px;border-radius:12px;cursor:pointer;
  background:rgba(212,175,55,.10);border:1px solid rgba(212,175,55,.35);color:var(--r-gold2);font-weight:800;font-size:12px}

/* ── Refinement 2026-10-03: icon family, type floor, calmer surfaces ── */
.ei{display:inline-flex;align-items:center;justify-content:center;line-height:0;flex:none}
.ride-tab{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:11px!important;letter-spacing:.01em!important}
.ride-tab .ei svg{width:22px;height:22px}
.action-bar-btn .ab-icon{color:var(--r-gold2,#E5C76B);display:inline-flex}
.action-bar-btn .ab-label{font-size:12px!important;color:#C4C6D0!important}
.action-bar-btn.call-btn-ab .ab-icon,.action-bar-btn.call-btn-ab .ab-label{color:#35D17C!important}
.vt-icon .ei,.nc .ei{color:var(--r-gold2,#E5C76B)}

/* ── Finish pass: one voice for labels, calmer fields, quiet chrome ──
   The shared gold stylesheet sets every *-label, label and *-badge in
   uppercase monospace. Mono is for codes and measurements; buttons, tabs
   and captions read as the interface voice, so give them back the sans. */
.ride-sheet [class*="-label"],.ride-tabs [class*="-label"],.ride-subsheet [class*="-label"],
.ride-sheet label,.ride-subsheet label,
.ride-sheet [class*="-badge"],.ride-sheet [class*="-chip"],.ride-sheet [class*="-status"]{
  font-family:'Outfit',system-ui,sans-serif!important;text-transform:none!important;letter-spacing:.01em!important}
.ride-sheet label,.ride-subsheet label{font-size:12px!important;font-weight:600!important;color:var(--r-muted)!important}
.ride-sheet [class*="-amount"],.ride-sheet [class*="-price"],.ride-sheet [class*="-total"],.ride-sheet [class*="-eta"],
.searching-timer{font-variant-numeric:tabular-nums}
/* The plate stays monospace: it is a code. */
.driver-plate,.vehicle-plate,[class*="plate"]{font-family:var(--g-fm,'JetBrains Mono',monospace)!important;letter-spacing:.08em!important}
/* Address fields: the row is already the field, so drop the pill drawn
   inside it (card inside card inside pill). */
.loc-row .loc-input{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 2px!important;min-height:40px}
.loc-row .loc-input:focus{background:transparent!important;box-shadow:none!important}
.loc-row:focus-within{background:linear-gradient(90deg,rgba(212,175,55,.06),transparent);border-radius:12px}
/* The decorative grab bar is the handle; the full-width button over it only
   supplies the tap target, so the arrow glyph goes. */
.sheet-toggle-btn{font-size:0!important;color:transparent!important;min-height:26px!important}
/* Secondary link under the arrival headline */
button[title="Why did my ride reminder stop?"]{opacity:.7!important;font-weight:500!important;font-size:12px!important;
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.25);color:var(--r-muted)!important;
  display:block;margin:2px auto 12px!important}
.arriving-header,.sheet-title,#book-step-title{text-wrap:balance}
.arriving-header{font-size:26px!important;line-height:1.15!important;letter-spacing:-.01em!important}
/* Headline rhythm: more air above a heading than below it */
.sheet-title{margin:14px 0 10px!important}
.driver-card .driver-name{font-size:18px!important}
/* Motion: one calm entrance for a view, none for reduced-motion users */
@keyframes etel-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ride-view.active,.ride-view[style*="display: block"]{animation:etel-rise .32s cubic-bezier(.22,1,.36,1) both}
@media (prefers-reduced-motion:reduce){.ride-view.active,.ride-view[style*="display: block"]{animation:none}}
/* Rating stars: the earlier drop-shadow rule replaced the dim filter, which
   left unselected stars solid black on a black sheet. Dim until chosen. */
.star-btn{filter:none!important;color:#3F4150;transition:color .15s,transform .15s}
.star-btn.active{color:#F4D56A;filter:drop-shadow(0 4px 10px rgba(212,175,55,.35))!important}
/* Address fields (needs the specificity to beat the global input rule) */
.loc-row input.loc-input:not([type=radio]):not([type=checkbox]):not([type=range]){
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 2px!important}
.loc-row input.loc-input:not([type=radio]):not([type=checkbox]):not([type=range]):focus{background:transparent!important;box-shadow:none!important}
/* Tighter gap between the grab bar and the first heading */
.sheet-toggle-btn{min-height:16px!important;padding:0!important;margin:-6px 0 0!important}

/* Read by the version panel: must equal the ?v= on this file's <link>. */
:root{--etel-css-rider:"20261005"}
