/* City ride page: a map with a panel. Phone: map on top, panel below. Wider screens: panel on the left. */
body.ride { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr; }
body.ride::before { display: none; }
.rbar { background: var(--forest-deep); border-bottom: 2px solid var(--sign); display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.rbrand { display: flex; align-items: center; gap: 10px; color: #F6F7F9; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; }
.rbrand .mark { width: 32px; height: 32px; border-radius: 8px; }
.rbrand .mark svg { width: 22px; height: 22px; }
.rlink { background: none; border: 1px solid #5A6B87; color: #F6F7F9; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rmap { height: 44vh; height: 44dvh; min-height: 240px; background: #E3E7EE; z-index: 0; }
.sheet { background: var(--surface); padding: 18px 16px 28px; border-radius: 16px 16px 0 0; margin-top: -14px; position: relative; z-index: 1; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
body.ride:not(.has-map) .sheet { margin-top: 0; border-radius: 0; box-shadow: none; max-width: 520px; width: 100%; justify-self: center; background: transparent; }
.v { display: grid; gap: 14px; }
.v h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; line-height: 1.1; }
.stack { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pick { display: grid; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pick span b { font-size: 14px; }
.pick span small { grid-column: 2; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .dot { grid-row: span 2; }
.pick label:has(input:checked) span { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.pick label:has(input:focus-visible) span { outline: 2px solid var(--focus); }
.dot { width: 14px; height: 14px; display: inline-block; }
.dot-p { border-radius: 50%; background: var(--sign); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--forest-deep); }
.dot-d { border-radius: 3px; background: var(--forest-deep); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--forest-deep); }
.fare { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fare .lbl { font-size: 13px; color: var(--muted); }
.fare strong { font-family: var(--display); font-size: 26px; justify-self: end; }
.fare .hint { grid-column: 1 / -1; }
.finding { display: flex; gap: 16px; align-items: center; }
.pulse { width: 22px; height: 22px; border-radius: 50%; background: var(--sign); flex-shrink: 0; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 87, 217, .55); } 100% { box-shadow: 0 0 0 22px rgba(20, 87, 217, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.status { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.driver { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.driver img, .dph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sand, #ECEFF3); }
.dph { background: center / 60% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A5560' d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0 2c-4 0-8 2-8 5v2h16v-2c0-3-4-5-8-5z'/%3E%3C/svg%3E"), #ECEFF3; }
.driver div { display: grid; gap: 2px; }
.driver strong { font-size: 18px; }
.driver span { color: var(--muted); font-size: 14px; }
.driver .plate { color: #1F2329; font-weight: 700; letter-spacing: .06em; background: #FFFFFF; border: 1px solid #9AA3B0; border-radius: 4px; padding: 1px 8px; justify-self: start; }
.btn-sos { background: var(--bad); color: #fff; }
.dlg { border: 0; border-radius: 16px; padding: 22px; max-width: 360px; width: calc(100% - 32px); }
.dlg::backdrop { background: rgba(0, 0, 0, .45); }
.dlg h2 { margin: 0 0 8px; font-family: var(--display); }
.dlg .btn { margin-top: 10px; }
.car-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--forest-deep); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.car-ic::after { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--sign); }
.pin-p, .pin-d { width: 20px; height: 20px; }
.pin-p { border-radius: 50%; background: var(--sign); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--forest-deep), 0 2px 6px rgba(0, 0, 0, .3); }
.pin-d { border-radius: 4px; background: var(--forest-deep); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--forest-deep), 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--body); }
@media (min-width: 900px) {
  body.ride.has-map { grid-template-rows: auto 1fr; grid-template-columns: 420px 1fr; }
  body.ride.has-map .rbar { grid-column: 1 / -1; }
  body.ride.has-map .rmap { grid-column: 2; grid-row: 2; height: auto; min-height: 0; }
  body.ride.has-map .sheet { grid-column: 1; grid-row: 2; margin: 0; border-radius: 0; box-shadow: 1px 0 0 var(--line); overflow-y: auto; }
}
