:root { --bg: #f3f7f4; --line: #e4ebe6; --ink: #14231a; --nav: 60px; }
.book-body { background: var(--bg); min-height: 100vh; color: var(--ink); font-size: 14px; }
.muted { color: var(--text-muted); }

/* ---------- nav ---------- */
.book-nav { position: sticky; top: 0; z-index: 200; height: var(--nav); background: #fff; border-bottom: 1px solid var(--line); padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.book-nav .brand img { width: 160px; height: 46px; object-fit: contain; object-position: left center; display: block; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.back-link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .88rem; }
.back-link:hover { color: var(--primary); }
.btn-logout { border: 1px solid var(--line); border-radius: 50px; padding: .3rem .9rem; font-weight: 600; font-size: .85rem; color: var(--text-dark); background: #fff; }
.btn-logout:hover { border-color: var(--primary); color: var(--primary); }

.toast-alert { position: fixed; z-index: 3000; top: 70px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 520px; margin: 0; padding: .7rem 1rem; font-size: .9rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* ---------- shared form bits ---------- */
.lbl { display: block; font-size: .76rem; font-weight: 600; color: #3b4a40; margin-bottom: .3rem; }
.form-control, .form-select { height: 42px; border-radius: 10px; padding: 0 .8rem; border: 1px solid #d9e2dc; font-size: .9rem; background-color: #fff; }
textarea.form-control { height: auto; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,107,60,.14); }
.input-group-text { border-radius: 10px 0 0 10px; background: var(--accent); border-color: #d9e2dc; font-weight: 600; color: var(--primary-dark); font-size: .9rem; }
.input-group .form-control { border-radius: 0 10px 10px 0; }
.btn-link, .link-btn { color: var(--primary); font-weight: 600; text-decoration: none; background: none; border: 0; font-size: .8rem; }
.btn-link:hover, .link-btn:hover { color: var(--primary-dark); text-decoration: underline; }
.btn-send, .btn-ghost, .btn-danger-x { height: 44px; border-radius: 50px; font-weight: 600; font-size: .92rem; padding: 0 1.2rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost { border: 2px solid var(--primary); color: var(--primary); background: #fff; }
.btn-ghost:hover { background: var(--accent); color: var(--primary-dark); }
.btn-danger-x { background: #d63a2f; color: #fff; border: 0; }
.btn-danger-x:hover { background: #b92d23; color: #fff; }
.btn:disabled { opacity: .6; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav)); display: flex; align-items: center; justify-content: center; padding: 24px 14px; background: linear-gradient(160deg, #e8f5ee 0%, #f8fbf9 50%, #fff6d9 100%); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 1.7rem 1.6rem; box-shadow: 0 20px 60px rgba(6,77,43,.12); }
.auth-card h2 { font-size: 1.35rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .25rem; }
.auth-card .btn-send { width: 100%; }
.otp-input { text-align: center; font-size: 1.5rem; letter-spacing: .55rem; font-weight: 700; height: 52px; }
.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 1.4rem; position: relative; }
.stepper::before { content: ""; position: absolute; top: 14px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.stepper li { position: relative; z-index: 1; flex: 1; text-align: center; font-size: .74rem; font-weight: 600; color: #9aa89f; }
.stepper li span { display: flex; width: 30px; height: 30px; margin: 0 auto 5px; border-radius: 50%; background: #fff; border: 2px solid var(--line); align-items: center; justify-content: center; }
.stepper li.active { color: var(--primary-dark); }
.stepper li.active span { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(10,107,60,.3); }
.stepper li.done span { border-color: var(--primary); color: var(--primary); }

/* ---------- full-screen map + floating panel ---------- */
.book-layout { position: fixed; z-index: 10; inset: var(--nav) 0 0 0; }
#map { position: absolute; inset: 0; background: #dfe9e2; }
.panel { position: absolute; z-index: 20; top: 14px; left: 14px; bottom: 14px; width: 404px; display: flex; flex-direction: column; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-radius: 20px; box-shadow: 0 18px 50px rgba(8,40,22,.25); overflow: hidden; }
.sheet-handle { display: none; border: 0; background: none; padding: 8px 0 2px; width: 100%; }
.sheet-handle span { display: block; width: 42px; height: 5px; border-radius: 5px; background: #cdd8d1; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px 0; }
.tabs button { border: 0; background: #eef3f0; color: var(--text-muted); font-weight: 600; font-size: .85rem; padding: .55rem; border-radius: 10px; transition: all .2s; }
.tabs button.on { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(10,107,60,.28); }
.panel-body { flex: 1; overflow-y: auto; padding: 12px 14px; scrollbar-width: thin; }
.hello { font-size: .92rem; margin-bottom: 10px; color: var(--text-muted); }
.hello strong { color: var(--primary-dark); text-transform: capitalize; }
.blk { border: 1px solid var(--line); border-radius: 14px; padding: .85rem .9rem; margin-bottom: 10px; background: #fff; }
.blk-t { font-weight: 700; font-size: .92rem; margin-bottom: .6rem; display: flex; align-items: center; gap: 8px; }
.pill { background: var(--primary); color: #fff; font-size: .7rem; border-radius: 50px; padding: 1px 8px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: #eef3f0; border-radius: 11px; padding: 3px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .45rem; border-radius: 9px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--text-muted); transition: all .2s; margin: 0; }
.seg input:checked + label { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* pickup / drop rail */
.point { display: grid; grid-template-columns: 26px 1fr; gap: 10px; position: relative; padding-bottom: 12px; }
.point-b { padding-bottom: 0; }
.point-a::after { content: ""; position: absolute; left: 12px; top: 32px; bottom: 6px; border-left: 2px dashed #b9cfc1; }
.mk { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; margin-top: 8px; z-index: 1; }
.mk-a { background: var(--primary); } .mk-b { background: #e8590c; }
.pt-body { min-width: 0; }
.pt-body .row { margin-top: 6px; }
.ac-box { position: relative; }
.ac-box .form-control { font-weight: 500; padding-left: .9rem; }
.sug { display: none; position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; list-style: none; padding: 4px; margin: 0; max-height: 240px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.sug li { display: flex; gap: 10px; padding: .55rem .6rem; border-radius: 9px; cursor: pointer; align-items: flex-start; }
.sug li:hover { background: var(--accent); }
.sug li i { color: var(--primary); margin-top: 3px; font-size: .85rem; }
.sug li strong { display: block; font-size: .86rem; line-height: 1.25; }
.sug li small { display: block; color: var(--text-muted); font-size: .76rem; line-height: 1.25; }
.sug li.none { color: var(--text-muted); cursor: default; }
.link-btn { padding: 5px 0 0; display: inline-block; }

.chk { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; margin: 0; }
.chk input { width: 17px; height: 17px; accent-color: var(--primary); }

/* vehicles */
.veh-list:empty::before { content: "Choose pickup and drop to see vehicles and fares."; display: block; text-align: center; color: var(--text-muted); font-size: .84rem; padding: .7rem; background: #f7faf8; border-radius: 10px; }
.veh { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: .55rem .7rem; margin-bottom: .5rem; cursor: pointer; transition: all .2s; }
.veh:last-child { margin-bottom: 0; }
.veh:hover { border-color: #b7d3c1; }
.veh.sel { border-color: var(--primary); background: var(--accent); }
.veh .ico { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.15rem; overflow: hidden; border: 1px solid var(--line); }
.veh .ico img { width: 100%; height: 100%; object-fit: contain; }
.veh strong { display: block; font-size: .9rem; }
.veh small { color: var(--text-muted); font-size: .74rem; }
.veh .price { font-weight: 700; font-size: 1.02rem; color: var(--primary-dark); }
.spin, .empty { text-align: center; padding: .9rem; color: var(--text-muted); font-size: .86rem; }

/* batch + results */
#batchList li, #results li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .5rem 0; border-bottom: 1px solid #f0f3f1; font-size: .84rem; }
#batchList li:last-child, #results li:last-child { border: 0; }
.res-ok { color: var(--primary); font-weight: 600; } .res-bad { color: #c0392b; font-weight: 600; }
.btn-cancel { border: 1.5px solid #e3b4af; color: #c0392b; background: #fff; border-radius: 50px; font-size: .78rem; font-weight: 600; padding: .25rem .8rem; white-space: nowrap; }
.btn-cancel:hover { background: #fdeceb; }
.tag-cancelled { color: #c0392b; font-weight: 600; font-size: .8rem; }

/* my bookings */
.bk { border: 1px solid var(--line); border-radius: 14px; padding: .75rem .85rem; margin-bottom: 10px; background: #fff; }
.bk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bk-id { font-weight: 700; font-size: .85rem; }
.st { font-size: .72rem; font-weight: 700; border-radius: 50px; padding: 2px 10px; background: #eef3f0; color: #4a5a50; }
.st-PENDING { background: #fff3cd; color: #8a6500; } .st-ACCEPTED, .st-IN_TRANSIT { background: #dff3e7; color: #0a6b3c; }
.st-COMPLETED { background: #dbe9ff; color: #1d4f9c; } .st-CANCELLED, .st-AUTO_CANCELLED { background: #fde4e1; color: #b3261e; }
.bk-route div { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.35; margin-bottom: 4px; }
.bk-route i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.bk-route .a { background: var(--primary); } .bk-route .b { background: #e8590c; }
.bk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.bk-foot strong { color: var(--primary-dark); font-size: 1rem; }

/* action bar */
.action-bar { display: flex; align-items: center; gap: 8px; padding: .7rem .9rem; border-top: 1px solid var(--line); background: #fff; }
.action-bar .sum { flex: 1; line-height: 1.15; min-width: 0; }
.action-bar .sum small { display: block; color: var(--text-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-bar .sum strong { font-size: 1.25rem; color: var(--primary-dark); }
.action-bar .btn { width: auto; white-space: nowrap; }

/* map overlays */
.route-chip { position: absolute; z-index: 15; top: 14px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 50px; padding: .45rem 1rem; font-weight: 700; font-size: .88rem; color: var(--primary-dark); box-shadow: 0 6px 18px rgba(0,0,0,.2); white-space: nowrap; }
.route-chip i { color: var(--primary); margin-right: 6px; }
.map-hint { position: absolute; z-index: 15; bottom: 18px; left: calc(50% + 200px); transform: translateX(-50%); background: rgba(20,35,26,.82); color: #fff; font-size: .75rem; padding: .35rem .85rem; border-radius: 50px; white-space: nowrap; pointer-events: none; }

/* driver accepted card */
.accept-card { position: absolute; z-index: 40; top: 14px; left: calc(50% + 202px); transform: translateX(-50%); width: min(420px, calc(100% - 460px)); min-width: 320px; background: #fff; border-radius: 18px; padding: .9rem 1rem .95rem; box-shadow: 0 16px 44px rgba(8,40,22,.32); display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; border-top: 4px solid var(--primary); }
.accept-card.d-none { display: none !important; }
.accept-ic { grid-row: 1; font-size: 2rem; color: var(--primary); line-height: 1; padding-top: 2px; }
.accept-tx strong { display: block; font-size: .98rem; color: var(--primary-dark); }
.accept-tx small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
.accept-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.accept-btns .btn { flex: 1; height: 42px; font-size: .88rem; }
.accept-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #8a998f; font-size: 1rem; padding: 4px 6px; }
.btn-track { border: 0; background: var(--primary); color: #fff; border-radius: 50px; font-size: .78rem; font-weight: 600; padding: .3rem .85rem; white-space: nowrap; }
.btn-track:hover { background: var(--primary-dark); }
.bk-btns { display: flex; gap: 6px; align-items: center; }

/* cancel modal */
.modal-bg { position: fixed; inset: 0; z-index: 2500; background: rgba(10,25,16,.55); display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal-bg.d-none { display: none !important; }
.modal-c { background: #fff; border-radius: 20px; padding: 1.3rem 1.3rem 1.2rem; width: 100%; max-width: 400px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.modal-c h5 { font-weight: 700; margin-bottom: .2rem; }
.rsn { display: flex; align-items: center; gap: 10px; padding: .6rem .75rem; border: 1.5px solid var(--line); border-radius: 11px; margin-bottom: 6px; cursor: pointer; font-size: .88rem; }
.rsn:has(input:checked) { border-color: var(--primary); background: var(--accent); }
.rsn input { accent-color: var(--primary); }

/* ---------- mobile: map on top, bottom sheet ---------- */
@media (max-width: 991px) {
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 66%; border-radius: 22px 22px 0 0; }
  .sheet-handle { display: block; }
  .tabs { padding-top: 4px; }
  .panel.collapsed .tabs, .panel.collapsed .panel-body { display: none; }
  .route-chip { top: 10px; }
  .map-hint { display: none; }
  .accept-card { left: 50%; top: 56px; width: calc(100% - 24px); min-width: 0; }
}
@media (max-width: 480px) {
  .book-nav .brand img { width: 130px; }
  .back-link { display: none; }
  .action-bar .btn { padding: 0 .9rem; font-size: .85rem; }
}
/* =====================================================================
   LIVE TRIP: active banner, finding driver, trip view, detail, receipt
   ===================================================================== */
:root { --amber: #f4c430; --danger: #d63a2f; --soft: #f1f6f3; }
.panel-body { overscroll-behavior: contain; }
.btn-ghost-danger { height: 44px; border-radius: 50px; font-weight: 600; font-size: .92rem; padding: 0 1.2rem; border: 2px solid #efc3bf; color: var(--danger); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost-danger:hover { background: #fdeceb; color: #b92d23; border-color: #e3a29c; }
:where(button, a, .bk, .ab):focus-visible { outline: 3px solid rgba(10,107,60,.45); outline-offset: 2px; }

/* running trips banner (sits under the tabs) */
.active-banner { padding: 10px 14px 0; display: grid; gap: 6px; }
.ab { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1.5px solid #bfe0cb; background: linear-gradient(90deg, #eaf7ef, #f6fbf8); border-radius: 14px; padding: .6rem .8rem; transition: border-color .2s, transform .15s; }
.ab:hover { border-color: var(--primary); }
.ab:active { transform: scale(.995); }
.ab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.ab-dot.pulse { box-shadow: 0 0 0 0 rgba(10,107,60,.5); animation: dgDot 1.8s infinite; }
.ab-tx { min-width: 0; }
.ab-tx strong { display: block; font-size: .86rem; color: var(--primary-dark); }
.ab-tx small { display: block; color: var(--text-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-go { font-size: .76rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
@keyframes dgDot { 70% { box-shadow: 0 0 0 9px rgba(10,107,60,0); } 100% { box-shadow: 0 0 0 0 rgba(10,107,60,0); } }

/* ---------- finding a driver ---------- */
.find { text-align: center; padding: 1.4rem .5rem 1rem; }
.find h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin: 1.1rem 0 .3rem; }
.find p { max-width: 280px; margin: 0 auto .7rem; font-size: .86rem; }
.find-clock { display: inline-flex; gap: 6px; align-items: baseline; background: var(--soft); border-radius: 50px; padding: .28rem .85rem; font-size: .78rem; color: var(--text-muted); }
.find-clock span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-size: .9rem; }
.radar { position: relative; width: 112px; height: 112px; margin: 0 auto; display: grid; place-items: center; }
.radar i { position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.45rem; box-shadow: 0 8px 22px rgba(10,107,60,.38); }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: dgRadar 2.7s cubic-bezier(.2,.6,.3,1) infinite; }
.radar span:nth-child(2) { animation-delay: .9s; } .radar span:nth-child(3) { animation-delay: 1.8s; }
@keyframes dgRadar { 0% { transform: scale(.5); opacity: .65; } 100% { transform: scale(1.25); opacity: 0; } }
.find-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--text-muted); }
.find-meta i { color: var(--primary); margin-right: 6px; }
.find-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin: .8rem .4rem 0; }

/* ---------- live trip ---------- */
.live-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: linear-gradient(135deg, #064d2b, #0a6b3c); color: #fff; border-radius: 16px; padding: .85rem .95rem; margin-bottom: 10px; }
.live-head h3 { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.25; }
.live-head p { margin: 2px 0 0; font-size: .8rem; opacity: .88; line-height: 1.3; }
.lh-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 1.2rem; }
.live-head .ref { align-self: start; font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.18); border-radius: 50px; padding: 2px 9px; letter-spacing: .02em; }
.live-head.is-done { background: linear-gradient(135deg, #1d4f9c, #2a6fd0); }
.live-head.is-dead { background: linear-gradient(135deg, #7a2a24, #b3261e); }

.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 4px 2px 12px; }
.track li { position: relative; text-align: center; font-size: .68rem; font-weight: 600; color: #9aa89f; padding-top: 18px; }
.track li i { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #d5dfd8; z-index: 1; }
.track li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: #d5dfd8; }
.track li:first-child::before { display: none; }
.track li.done i, .track li.done::before, .track li.now::before { background: var(--primary); }
.track li.now i { background: var(--primary); box-shadow: 0 0 0 4px rgba(10,107,60,.22); }
.track li.done, .track li.now { color: var(--primary-dark); }

.drv { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; margin-bottom: 10px; background: #fff; }
.drv-ph { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; overflow: hidden; }
.drv-ph img { width: 100%; height: 100%; object-fit: cover; }
.drv-tx strong { display: block; font-size: .95rem; }
.drv-tx small { display: block; color: var(--text-muted); font-size: .76rem; }
.drv-tx small i { color: #e5a400; }
.plate { display: inline-block; margin: 3px 0 1px; font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .06em; border: 1.5px solid #2a3a30; border-radius: 6px; padding: 0 7px; background: #fffbe6; color: #1b261f; }
.drv-call { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; text-decoration: none; box-shadow: 0 6px 16px rgba(10,107,60,.3); }
.drv-call:hover { background: var(--primary-dark); color: #fff; }

.otp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.otp { border: 1.5px dashed #9fcdb0; background: #f3fbf6; border-radius: 12px; padding: .55rem .5rem .5rem; text-align: center; }
.otp small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.otp b { display: flex; justify-content: center; gap: 4px; margin: 5px 0 3px; }
.otp b i { font-style: normal; width: 26px; height: 34px; border-radius: 7px; background: #fff; border: 1px solid #cfe5d7; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.otp em { font-style: normal; font-size: .68rem; color: var(--text-muted); }
.otp.used { opacity: .55; border-style: solid; border-color: var(--line); background: #f5f7f6; }
.otp.used b i { text-decoration: line-through; }
.otp-wait p { font-size: .82rem; }

.rt-wrap { display: grid; gap: 0; }
.rt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; position: relative; padding-bottom: 12px; font-size: .84rem; line-height: 1.35; }
.rt:last-child { padding-bottom: 0; }
.rt::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; border-left: 2px dashed #b9cfc1; }
.rt:last-child::after { display: none; }
.rt > i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .66rem; font-weight: 700; color: #fff; background: #5b6b60; }
.rt-a > i { background: var(--primary); } .rt-b > i { background: #e8590c; }
.rt-s > i { width: 10px; height: 10px; margin: 6px 6px; }
.rt span { display: block; font-weight: 500; }
.rt small { display: block; color: var(--text-muted); font-size: .76rem; margin-top: 1px; }
.fare-line { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.fare-line strong { font-size: 1.25rem; color: var(--primary-dark); }
.live-actions { display: grid; gap: 8px; margin: 2px 0 6px; }
.live-actions .btn { width: 100%; }

/* ---------- booking detail ---------- */
.back { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: .84rem; padding: 2px 0 8px; }
.back:hover { text-decoration: underline; }
.dt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dt-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--primary-dark); }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: .32rem 0; font-size: .84rem; border-bottom: 1px solid #f0f3f1; }
.kv:last-child { border: 0; }
.kv span { color: var(--text-muted); } .kv b { font-weight: 600; text-align: right; }
.kv-total { border-top: 1.5px solid var(--line); margin-top: 4px; padding-top: .55rem; }
.kv-total b, .kv-total span { font-size: 1rem; color: var(--primary-dark); font-weight: 700; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 10px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -2px; border-left: 2px solid #d5e4da; }
.tl li:last-child::before { display: none; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 4px; z-index: 1; }
.tl strong { display: block; font-size: .84rem; } .tl small { color: var(--text-muted); font-size: .76rem; }
.receipt-box { position: sticky; bottom: -12px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%); padding: 14px 0 4px; text-align: center; }
.receipt-box small { display: block; margin-top: 6px; font-size: .76rem; }
.receipt-box .btn { gap: 0; }

/* my bookings list */
.bk { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bk:hover { border-color: #b7d3c1; box-shadow: 0 6px 18px rgba(8,40,22,.08); }
.bk-live { border-color: #bfe0cb; background: linear-gradient(180deg, #f6fbf8, #fff); }
.bk-more { color: var(--primary); font-size: .78rem; font-weight: 600; }
.empty i { display: block; font-size: 1.8rem; color: #b9cfc1; margin-bottom: .5rem; }

@media (max-width: 991px) {
  .panel { max-height: 72%; }
  .find { padding-top: .8rem; } .radar { width: 92px; height: 92px; } .radar i { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar span, .ab-dot.pulse { animation: none; }
  .radar span:first-child { opacity: .35; transform: scale(1.1); }
}

/* live ETA pill on the trip map (reuses .route-chip) */
.route-chip .fa-truck-fast { color: #1a73e8; }

/* =====================================================================
   SHARE LIVE TRIP MODAL
   (own classes on purpose: the site-wide .btn-send is width:100% and broke the row)
   ===================================================================== */
.share-c { position: relative; max-width: 420px; padding: 1.5rem 1.4rem 1.25rem; border-radius: 24px; animation: shIn .24s cubic-bezier(.2,.8,.2,1); }
@keyframes shIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shUp { from { transform: translateY(100%); } to { transform: none; } }

.share-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f6f3; color: #5b6b60; display: grid; place-items: center; font-size: .9rem; transition: background .2s, color .2s; }
.share-x:hover { background: #e3ede7; color: var(--ink); }

.share-head { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding-right: 36px; margin-bottom: 1rem; }
.share-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); box-shadow: 0 8px 18px rgba(10,107,60,.28); }
.share-head h5 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.share-head p { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--text-muted); }

.share-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 1.2rem; }
.share-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--primary-dark); background: var(--accent); border-radius: 50px; padding: .3rem .75rem; }
.share-perks i { font-size: .7rem; color: var(--primary); }

.sh-lbl { font-size: .72rem; font-weight: 700; color: #3b4a40; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .45rem; }
.sh-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 5px 0 14px; border: 1.5px solid #d9e2dc; border-radius: 14px; background: #fafcfb; transition: border-color .2s, box-shadow .2s, background .2s; }
.sh-field:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(10,107,60,.14); }
.sh-field > i { flex: none; font-size: .9rem; color: var(--primary); }
.sh-field input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: .84rem; color: var(--ink); text-overflow: ellipsis; }
.sh-field button { flex: none; height: 42px; padding: 0 1.05rem; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem; transition: background .2s, transform .15s; }
.sh-field button:hover { background: var(--primary-dark); }
.sh-field button:active { transform: scale(.97); }
.sh-field button.ok { background: #1d8a4f; }
.sh-note { display: flex; gap: 7px; align-items: center; margin: .6rem 0 1.2rem; font-size: .76rem; color: var(--text-muted); }
.sh-note i { color: #9aa89f; }

.sh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.sh-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: .8rem .25rem .65rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.sh-tile span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff; }
.sh-tile.wa span { background: #25d366; } .sh-tile.sms span { background: #3b82f6; }
.sh-tile.mail span { background: #ef6c3d; } .sh-tile.more span { background: #5b6b60; }
.sh-tile:hover { transform: translateY(-2px); border-color: #cfe0d4; box-shadow: 0 10px 20px rgba(8,40,22,.1); color: var(--ink); }

.share-foot { display: flex; gap: 10px; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.share-foot button { flex: 1; height: 46px; border-radius: 50px; font-weight: 600; font-size: .92rem; transition: background .2s, box-shadow .2s; }
.share-done { border: 0; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: 0 6px 16px rgba(10,107,60,.28); }
.share-done:hover { box-shadow: 0 8px 20px rgba(10,107,60,.38); }
.share-stop { background: #fff; color: var(--danger, #d63a2f); border: 1.5px solid #efc3bf; }
.share-stop:hover { background: #fdeceb; }

/* phones: bottom sheet */
@media (max-width: 520px) {
  #shareModal { align-items: flex-end; padding: 0; }
  .share-c { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); animation-name: shUp; }
}
@media (prefers-reduced-motion: reduce) { .share-c { animation: none; } }

/* ---------- book again button ---------- */
.bk-again-row { display: flex; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.btn-again, .btn-again-lg { position: relative; overflow: hidden; border: 1.5px solid var(--primary); color: var(--primary); background: #fff; border-radius: 50px; font-size: .84rem; font-weight: 700; padding: .4rem 1.5rem; white-space: nowrap; transition: color .25s, transform .2s, box-shadow .25s; z-index: 0; }
.btn-again::before, .btn-again-lg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), #1a8f55); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; z-index: -1; }
.btn-again i, .btn-again-lg i { display: inline-block; transition: transform .45s ease; }
.btn-again:hover, .btn-again-lg:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,107,60,.32); }
.btn-again:hover::before, .btn-again-lg:hover::before { transform: scaleX(1); }
.btn-again:hover i, .btn-again-lg:hover i { transform: rotate(360deg); }
.btn-again:active, .btn-again-lg:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn-again, .btn-again::before, .btn-again i, .btn-again-lg, .btn-again-lg::before, .btn-again-lg i { transition: none; } }
.sh-note { margin-left: 0; }
/* ===== tester fixes ===== */
/* popups never taller than the screen; the reason list scrolls and the buttons always stay visible */
.modal-c { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; }
#cancelModal .modal-c { display: flex; flex-direction: column; overflow: hidden; }
#cancelModal #reasonList { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; }
#cancelModal #reasonOther { flex: 0 0 auto; resize: none; }
#cancelModal .modal-c > .d-flex { flex: 0 0 auto; }
/* field names above the boxes */
.pt-body .lbl, .blk .lbl { margin-bottom: .25rem; }
.pt-body .row { margin-top: 8px; }
.nt-count { display: block; text-align: right; margin-top: 2px; font-size: .72rem; }
.link-btn[disabled] { opacity: .75; cursor: wait; text-decoration: none; }
.blk-cancel { border-color: #f1c3bf; background: #fff6f5; }

/* ===== messages: coloured box, top right (red = error, green = done, amber = warning, blue = info) ===== */
.alert.toast-alert { --tc: #d63a2f; --tbg: #fdeceb; --tbd: #f3b8b3; --tt: #7a1d17;
  position: fixed; z-index: 3000; top: 76px; right: 18px; left: auto; transform: none;
  width: min(390px, calc(100vw - 28px)); max-width: none; margin: 0; padding: .8rem .85rem .9rem .8rem; display: flex; align-items: flex-start; gap: 12px;
  background: var(--tbg); color: var(--tt); border: 1px solid var(--tbd); border-left: 4px solid var(--tc); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(8,40,22,.18); overflow: hidden; font-size: .88rem; line-height: 1.4; animation: toastIn .28s ease; }
.alert.toast-alert.alert-success { --tc: #1a8f55; --tbg: #e8f6ee; --tbd: #b9e0c9; --tt: #14532d; }
.alert.toast-alert.alert-warning { --tc: #c98a00; --tbg: #fff6dc; --tbd: #f1dc9a; --tt: #5c4400; }
.alert.toast-alert.alert-info { --tc: #1558d6; --tbg: #e8f0fd; --tbd: #bcd0f6; --tt: #123a85; }
.alert.toast-alert.d-none { display: none !important; }
.toast-alert .al-ic { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: #fff; font-size: .8rem; }
.toast-alert .al-msg { flex: 1; min-width: 0; padding-top: 4px; font-weight: 500; word-break: break-word; }
.toast-alert .al-x { flex: 0 0 26px; width: 26px; height: 26px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tt); opacity: .7; display: grid; place-items: center; font-size: .8rem; cursor: pointer; transition: background .15s, opacity .15s; }
.toast-alert .al-x:hover { background: rgba(0,0,0,.08); opacity: 1; }
.toast-alert .al-x:focus { outline: none; }
.toast-alert .al-x:focus-visible { box-shadow: 0 0 0 2px var(--tc); }
.toast-alert .al-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tc); opacity: .45; transform-origin: left; animation: toastBar var(--dur, 15s) linear forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 575px) { .alert.toast-alert { top: 68px; left: 14px; right: 14px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .alert.toast-alert { animation: none; } }