/* APEX MOTO — Moto xəritə (ekran düyməsi + tam ekran xəritə) */
:root {
  --rx-card: var(--card, #fff);
  --rx-bg2: var(--bg-2, #f3f1ec);
  --rx-line: var(--border, rgba(0,0,0,.08));
  --rx-text: var(--text, #15171c);
  --rx-mute: var(--text-2, #5d6470);
  --rx-acc: var(--accent, #E52535);
  --rx-sos: #E11D2E;
  --rx-ok: #16A34A;
  --rx-shadow: 0 10px 30px rgba(15, 17, 21, .18), 0 2px 6px rgba(15, 17, 21, .08);
  --rx-r: 18px;
}

/* ---------- 1) Ekran düyməsi ---------- */
.rb {
  position: fixed; z-index: 9985; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  color: #fff; background: radial-gradient(120% 120% at 30% 20%, #ff4b58 0%, var(--rx-acc) 55%, #b5121f 100%);
  box-shadow: 0 8px 22px rgba(229, 37, 53, .38), 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, opacity .2s ease, left .25s cubic-bezier(.2,.8,.2,1), right .25s cubic-bezier(.2,.8,.2,1), top .25s cubic-bezier(.2,.8,.2,1);
}
.rb:hover { transform: scale(1.05); }
.rb:active { transform: scale(.94); }
.rb:focus-visible { outline: 3px solid var(--rx-acc); outline-offset: 3px; }
.rb.is-drag { transition: none; transform: scale(1.1); box-shadow: 0 16px 34px rgba(229,37,53,.45); }
.rb.is-hide, body.chat-room-open .rb, body.kb-open .rb, body.sheet-open .rb, body.rx-open .rb, body.is-ride .rb { opacity: 0; pointer-events: none; transform: scale(.6); }
.rb-ic { display: grid; place-items: center; transform: rotate(0deg); }
.rb-ic svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.rb-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: grid; place-items: center; font: 800 10px/1 var(--font-body, system-ui); letter-spacing: .04em;
  color: #fff; background: #111; border: 2px solid #fff;
}
.rb-badge[hidden] { display: none; }
.rb.is-sos { background: radial-gradient(120% 120% at 30% 20%, #ff5a66, var(--rx-sos) 60%, #9b0d18); animation: rbPulse 1.4s ease-out infinite; }
.rb.is-sos .rb-badge { background: #fff; color: var(--rx-sos); border-color: var(--rx-sos); }
.rb.is-convoy .rb-badge { background: #fff; color: #111; }
@keyframes rbPulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,46,.55), 0 8px 22px rgba(225,29,46,.4); } 80%, 100% { box-shadow: 0 0 0 18px rgba(225,29,46,0), 0 8px 22px rgba(225,29,46,.4); } }
@media (prefers-reduced-motion: reduce) { .rb, .rb.is-sos { animation: none; transition: opacity .2s; } }

/* Yeni SOS zolağı (istənilən səhifədə) */
.rx-sosbar {
  position: fixed; z-index: 10060; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 10px; width: min(560px, calc(100% - 24px)); padding: 12px 14px; border: 0; border-radius: 16px;
  background: var(--rx-sos); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 14px 34px rgba(225,29,46,.45);
  font: 500 .9rem/1.3 var(--font-body, system-ui); transition: transform .35s cubic-bezier(.2,.9,.2,1);
}
.rx-sosbar.is-in { transform: translate(-50%, 0); }
.rx-sosbar b { font-weight: 900; letter-spacing: .04em; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.18); }
.rx-sosbar span { flex: 1; min-width: 0; }
.rx-sosbar i { font-style: normal; font-weight: 700; white-space: nowrap; }

/* ---------- 2) Tam ekran xəritə ---------- */
html.rx-lock, html.rx-lock body { overflow: hidden !important; overscroll-behavior: none; }
body.rx-open .apx-nav, body.rx-open .bottom-nav { display: none !important; }
.rx {
  position: fixed; inset: 0; z-index: 10040; display: none; background: var(--rx-bg2);
  font-family: var(--font-body, system-ui); color: var(--rx-text);
}
.rx.is-open { display: block; animation: rxIn .22s ease-out; }
@keyframes rxIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.rx-map, .rx .rx-map.maplibregl-map { position: absolute; inset: 0; background: #e8e5df; }
html[data-theme="dark"] .rx-map { background: #1a1d23; }
html[data-theme="dark"] .rx-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
.rx .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.6); }
.rx .leaflet-bottom.leaflet-right { bottom: 0; }
.rx .leaflet-control-zoom { border: 0 !important; box-shadow: var(--rx-shadow); border-radius: 12px; overflow: hidden; margin: 0 14px 64px 0 !important; }
.rx .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: var(--rx-card) !important; color: var(--rx-text) !important; border-color: var(--rx-line) !important; }

/* yuxarı: bağla + axtarış */
.rx-top { position: absolute; z-index: 1001; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center; pointer-events: none; }
.rx-top > * { pointer-events: auto; }
.rx-ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rx-card); color: var(--rx-text); box-shadow: var(--rx-shadow); -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background .15s;
}
.rx-ic:active { transform: scale(.92); }
.rx-ic:focus-visible, .rx-btn:focus-visible, .rx-row:focus-visible, .rx-chip:focus-visible { outline: 3px solid var(--rx-acc); outline-offset: 2px; }
.rx-ic.is-on { color: #fff; background: #2F80ED; }
.rx-ic-warn { color: #B45309; }
.rx-search {
  flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 23px;
  background: var(--rx-card); box-shadow: var(--rx-shadow); color: var(--rx-mute);
}
.rx-search input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important; border-radius: 0; -webkit-appearance: none; appearance: none; background: none !important; color: var(--rx-text); font: 500 16px/1 var(--font-body, system-ui); }
.rx-search input::-webkit-search-cancel-button { display: none; }
.rx-q-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--rx-bg2); color: var(--rx-mute); display: grid; place-items: center; cursor: pointer; }
.rx-q-x[hidden] { display: none; }
.rx-results {
  position: absolute; z-index: 1006; left: 66px; right: 12px; top: calc(64px + env(safe-area-inset-top)); max-height: min(52vh, 420px); overflow: auto;
  background: var(--rx-card); border-radius: 18px; box-shadow: var(--rx-shadow); padding: 6px;
}
.rx-results[hidden] { display: none; }
.rx-res { display: grid; gap: 2px; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--rx-text); cursor: pointer; font: inherit; }
.rx-res:hover, .rx-res:focus-visible { background: var(--rx-bg2); }
.rx-res b { font-weight: 650; font-size: .95rem; }
.rx-res small, .rx-res-msg { color: var(--rx-mute); font-size: .8rem; }
.rx-res-msg { margin: 0; padding: 12px; }

/* sağ düymələr */
.rx-side { position: absolute; z-index: 1001; right: 12px; top: calc(70px + env(safe-area-inset-top)); display: grid; gap: 10px; }

/* SOS */
.rx-sos {
  position: absolute; z-index: 1003; left: 14px; width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  bottom: calc(var(--rx-sheet-h, 168px) + 14px); color: #fff; background: var(--rx-sos);
  box-shadow: 0 10px 24px rgba(225,29,46,.42), inset 0 1px 0 rgba(255,255,255,.3);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  transition: bottom .25s ease, transform .15s ease;
}
.rx-sos b { position: relative; font: 900 15px/1 var(--font-body, system-ui); letter-spacing: .08em; }
.rx-sos svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rx-sos-ring { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 182; stroke-dashoffset: 182; stroke-linecap: round; opacity: 0; }
.rx-sos.is-hold { transform: scale(1.12); }
.rx.is-full .rx-sos { opacity: 0; pointer-events: none; }
.rx-sos.is-hold .rx-sos-ring { opacity: 1; }

/* yuxarı zolaq: naviqasiya / SOS / konvoy */
.rx-banner { position: absolute; z-index: 1002; left: 12px; right: 68px; top: calc(68px + env(safe-area-inset-top)); display: grid; gap: 6px; }
.rx.is-nav .rx-banner { right: 12px; }
.rx-banner[hidden] { display: none; }
.rx.is-nav .rx-top { display: none; }
.rx.is-nav .rx-banner { top: calc(12px + env(safe-area-inset-top)); }
.rx.is-nav .rx-side { top: calc(150px + env(safe-area-inset-top)); }
.rx-nav { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; background: #12151b; color: #fff; box-shadow: var(--rx-shadow); }
.rx-nav-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--rx-acc); font: 800 30px/1 var(--font-body, system-ui); }
.rx-nav b { display: block; font: 800 1.6rem/1.05 var(--font-body, system-ui); letter-spacing: -.01em; }
.rx-nav small { display: block; color: rgba(255,255,255,.82); font-size: .92rem; margin-top: 2px; }
.rx-nav.is-sos { background: var(--rx-sos); }
.rx-nav.is-sos .rx-nav-ic { background: rgba(255,255,255,.2); }
.rx-nav-warn { justify-self: start; padding: 8px 12px; border-radius: 12px; background: var(--rx-card); box-shadow: var(--rx-shadow); border-left: 4px solid var(--c, #EAB308); font: 650 .86rem/1.2 var(--font-body, system-ui); }
.rx-banner.is-sos, .rx-banner.is-cv { grid-template-columns: 1fr auto; align-items: stretch; }
.rx-ban { text-align: left; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 16px; color: #fff; background: var(--rx-sos); box-shadow: var(--rx-shadow); font: inherit; }
.rx-banner.is-cv .rx-ban { background: #12151b; }
.rx-ban b { display: block; font-weight: 800; }
.rx-ban small { display: block; opacity: .88; font-size: .8rem; }
.rx-ban-ok { border: 0; cursor: pointer; padding: 0 14px; border-radius: 16px; background: #fff; color: var(--rx-ok); font: 800 .85rem/1 var(--font-body, system-ui); box-shadow: var(--rx-shadow); }

/* xəritədə seçmə rejimi */
.rx-pick { position: absolute; z-index: 1000; left: 50%; top: 50%; pointer-events: none; transform: translate(-50%, -100%); font-size: 40px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.rx-pick[hidden] { display: none; }
.rx-pickbar { position: absolute; z-index: 1004; left: 12px; right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--rx-card); box-shadow: var(--rx-shadow); font-size: .88rem; }
.rx-pickbar span { flex: 1; color: var(--rx-mute); }
.rx.is-picking .rx-sheet, .rx.is-picking .rx-sos { display: none; }

/* ---------- 3) Panel ---------- */
.rx-sheet {
  position: absolute; z-index: 1002; left: 0; right: 0; bottom: 0; max-height: var(--rx-sheet-h, 168px);
  display: flex; flex-direction: column; background: var(--rx-card); border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(15,17,21,.16); padding-bottom: env(safe-area-inset-bottom);
  transition: max-height .28s cubic-bezier(.2,.8,.2,1);
}
.rx { --rx-sheet-h: 46vh; }
.rx[data-sheet="home"] { --rx-sheet-h: 38vh; }
.rx[data-sheet="nav"] { --rx-sheet-h: 150px; }
.rx.is-full { --rx-sheet-h: 82vh; }
.rx-grab { flex: none; height: 22px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rx-grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--rx-line); background: rgba(127,127,127,.35); }
.rx-body { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.rx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.rx-head b { display: block; font: 800 1.05rem/1.2 var(--font-body, system-ui); }
.rx-head small { color: var(--rx-mute); font-size: .8rem; }
.rx-chips, .rx-notes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px 2px; }
.rx-notes { flex-wrap: wrap; margin: 6px 0 10px; padding: 0; overflow: visible; }
.rx-chips::-webkit-scrollbar { display: none; }
.rx-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 19px; cursor: pointer;
  border: 1px solid var(--rx-line); background: var(--rx-card); color: var(--rx-text); font: 650 .86rem/1 var(--font-body, system-ui); text-decoration: none; white-space: nowrap;
}
.rx-chip.is-on { background: #12151b; color: #fff; border-color: #12151b; }
html[data-theme="dark"] .rx-chip.is-on { background: #fff; color: #12151b; }

.rx-list { display: grid; gap: 2px; }
.rx-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 14px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.rx-row:hover { background: var(--rx-bg2); }
.rx-row.is-sos { background: rgba(225,29,46,.08); }
.rx-row-ic { flex: none; }
.rx-row-tx { flex: 1; min-width: 0; display: grid; }
.rx-row-tx b { font-weight: 650; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-row-tx small { color: var(--rx-mute); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-row-r { flex: none; color: var(--rx-mute); font: 650 .8rem/1 var(--font-body, system-ui); }
.rx-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--rx-bg2); font: 700 .85rem/1 var(--font-body, system-ui); color: var(--rx-mute); flex: none; font-size: 20px; }
.rx-av img { width: 100%; height: 100%; object-fit: cover; }
.rx-av span { font-size: .85rem; font-weight: 700; }
.rx-av.is-sos { box-shadow: 0 0 0 3px var(--rx-sos); }
.rx-av.is-al { background: color-mix(in srgb, var(--c, #EAB308) 18%, transparent); }
.rx-av.is-cv { background: #12151b; }
.rx-pill { font-style: normal; font: 700 .72rem/1 var(--font-body, system-ui); padding: 6px 9px; border-radius: 99px; background: var(--rx-bg2); color: var(--rx-mute); white-space: nowrap; }
.rx-pill.is-go { background: var(--rx-acc); color: #fff; }
.rx-pill.is-test { background: #FEF3C7; color: #92400E; }
.rx-empty { margin: 4px 0 10px; color: var(--rx-mute); font-size: .88rem; line-height: 1.45; }
.rx-set { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: .84rem; color: var(--rx-mute); cursor: pointer; }
.rx-set input { width: 18px; height: 18px; accent-color: var(--rx-acc); }

.rx-card { position: relative; padding-top: 2px; }
.rx-card.is-sos .rx-d-head b { color: var(--rx-sos); }
.rx-back { position: absolute; left: -6px; top: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--rx-mute); display: grid; place-items: center; cursor: pointer; }
.rx-back + .rx-d-head, .rx-back + .rx-res-msg { padding-left: 34px; }
.rx-d-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rx-d-head > div { flex: 1; min-width: 0; }
.rx-d-head b { display: block; font: 800 1.02rem/1.25 var(--font-body, system-ui); }
.rx-d-head small { display: block; color: var(--rx-mute); font-size: .8rem; line-height: 1.35; }
.rx-dist { flex: none; font: 800 .9rem/1 var(--font-body, system-ui); color: var(--rx-text); }
.rx-d-line { margin: 0 0 8px; font-size: .88rem; line-height: 1.4; }
.rx-muted { color: var(--rx-mute); }
.rx-small { font-size: .76rem; margin: 10px 0 0; line-height: 1.4; }

.rx-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rx-btn {
  flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--rx-line); background: var(--rx-bg2); color: var(--rx-text); font: 700 .88rem/1 var(--font-body, system-ui);
  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .15s;
}
.rx-btn:active { transform: scale(.97); }
.rx-btn:disabled { opacity: .55; cursor: default; }
.rx-btn.is-main { background: var(--rx-acc); border-color: var(--rx-acc); color: #fff; }
.rx-btn.is-big { min-height: 50px; font-size: .96rem; flex-basis: 100%; }
.rx-btn.is-on { background: #12151b; color: #fff; border-color: #12151b; }
.rx-btn.is-ok { background: var(--rx-ok); border-color: var(--rx-ok); color: #fff; flex-basis: 100%; min-height: 50px; }
.rx-btn.is-sosgo { background: var(--rx-sos); border-color: var(--rx-sos); color: #fff; flex-basis: 100%; min-height: 50px; font-size: 1rem; }
.rx-btn.is-stop { flex: none; background: #fff; color: var(--rx-sos); border-color: rgba(225,29,46,.35); }
html[data-theme="dark"] .rx-btn.is-stop { background: transparent; }
.rx-acts-sm .rx-btn { min-height: 38px; font-size: .8rem; }
.rx-brand { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 900 12px/1 var(--font-body, system-ui); color: #fff; }
.rx-waze { background: #33CCFF; color: #0b2a3a; }
.rx-gmap { background: #34A853; }
.rx-link { border: 0; background: none; color: var(--rx-acc); font: 700 .86rem/1 var(--font-body, system-ui); cursor: pointer; padding: 12px 0 4px; display: inline-flex; align-items: center; gap: 6px; }

.rx-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-bottom: 8px; }
.rx-alt { text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--rx-line); background: none; color: inherit; cursor: pointer; font: inherit; }
.rx-alt b { display: block; font-weight: 800; }
.rx-alt small { color: var(--rx-mute); font-size: .74rem; }
.rx-alt.is-on { border-color: var(--rx-acc); background: color-mix(in srgb, var(--rx-acc) 8%, transparent); }
.rx-notes-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; border-radius: 14px; background: var(--rx-bg2); font-size: .84rem; line-height: 1.35; }
.rx-notes-list .is-bad { color: #B91C1C; font-weight: 650; }
.rx-notes-list .is-good { color: #15803D; }
html[data-theme="dark"] .rx-notes-list .is-bad { color: #FCA5A5; }
html[data-theme="dark"] .rx-notes-list .is-good { color: #86EFAC; }

.rx-navbar { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.rx-navbar > div { flex: 1; min-width: 0; }
.rx-navbar b { display: block; font: 800 1.45rem/1.1 var(--font-body, system-ui); color: var(--rx-ok); }
.rx-navbar small { color: var(--rx-mute); font-size: .84rem; }
.rx-speed { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #12151b; display: grid; place-content: center; text-align: center; flex: none; }
html[data-theme="dark"] .rx-speed { border-color: #fff; }
.rx-speed[hidden] { display: none; }
.rx-speed b { font-size: 1.05rem; color: var(--rx-text); line-height: 1; }
.rx-speed small { font-size: .55rem; }

.rx-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.rx-type { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--rx-line); background: var(--rx-card); color: var(--rx-text); cursor: pointer; font: 650 .74rem/1.15 var(--font-body, system-ui); text-align: center; }
.rx-type span { font-size: 26px; line-height: 1; }
.rx-type.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.rx-where { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 6px; font-size: .86rem; }
.rx-where .rx-link { padding: 6px 0; }
.rx-input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--rx-line); background: var(--rx-bg2); color: var(--rx-text); font: 500 16px/1.2 var(--font-body, system-ui); margin: 4px 0; }
select.rx-input { appearance: auto; }
.rx-field { display: grid; gap: 2px; margin-top: 6px; font-size: .8rem; color: var(--rx-mute); }

.rx-members { display: grid; gap: 4px; margin: 6px 0; }
.rx-mem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--rx-bg2); color: inherit; text-align: left; cursor: pointer; font: inherit; border-left: 4px solid #22C55E; }
.rx-mem .rx-av { width: 34px; height: 34px; }
.rx-mem > span:not(.rx-av) { flex: 1; min-width: 0; display: grid; }
.rx-mem b { font-size: .88rem; }
.rx-mem small { color: var(--rx-mute); font-size: .76rem; }
.rx-mem i { font-style: normal; font: 700 .78rem/1 var(--font-body, system-ui); color: var(--rx-mute); }
.rx-mem.is-new { border-left-color: #3B82F6; }
.rx-mem.is-behind { border-left-color: #F59E0B; }
.rx-mem.is-off { border-left-color: #EF4444; }
.rx-mem.is-lost { border-left-color: #9CA3AF; }

/* ---------- xəritə markerləri ---------- */
.rm-wrap { background: none; border: 0; }
.rm { position: relative; width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; }
.rm img, .rm > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.rm > span { background: #fff; color: #1f2430; font: 800 12px/1 var(--font-body, system-ui); }
.rm-me b { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,128,237,.2), 0 2px 6px rgba(0,0,0,.3); }
.rm-cone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -34px 0 0 -14px; border: 14px solid transparent; border-bottom: 34px solid rgba(47,128,237,.35); border-top: 0; transform-origin: 14px 34px; }
.rm-rider { box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0,0,0,.3); background: #fff; }
.rm-rider.is-convoy { box-shadow: 0 0 0 3px #12151b, 0 3px 8px rgba(0,0,0,.3); }
.rm-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -31px 0 0 -7px; border: 7px solid transparent; border-bottom: 10px solid var(--rx-acc); border-top: 0; transform-origin: 7px 31px; z-index: -1; }
.rm-live { box-shadow: 0 0 0 3px var(--c, #E52535), 0 3px 8px rgba(0,0,0,.3); background: #fff; }
.rm-emo { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; font-style: normal; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.rm-alert { background: #fff; box-shadow: 0 0 0 3px var(--c, #EAB308), 0 3px 8px rgba(0,0,0,.3); }
.rm-alert span, .rm-dest span { background: none; font-size: 18px; }
.rm-dest { background: #fff; box-shadow: 0 0 0 3px #12151b, 0 3px 8px rgba(0,0,0,.3); }
.rm-sos { background: #fff; box-shadow: 0 0 0 4px var(--rx-sos), 0 4px 12px rgba(225,29,46,.5); }
.rm-sos em, .rm-cv em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 2px 6px; border-radius: 6px; font: 900 10px/1.2 var(--font-body, system-ui); font-style: normal; white-space: nowrap; color: #fff; background: var(--rx-sos); }
.rm-cv em { background: #12151b; font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.rm-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--rx-sos); animation: rmPulse 1.6s ease-out infinite; }
@keyframes rmPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.rm-cv { background: #fff; box-shadow: 0 0 0 3px #22C55E, 0 3px 8px rgba(0,0,0,.3); }
.rm-cv.is-new { box-shadow: 0 0 0 3px #3B82F6, 0 3px 8px rgba(0,0,0,.3); }
.rm-cv.is-behind { box-shadow: 0 0 0 3px #F59E0B, 0 3px 8px rgba(0,0,0,.3); }
.rm-cv.is-off { box-shadow: 0 0 0 3px #EF4444, 0 3px 8px rgba(0,0,0,.3); }
.rm-cv.is-lost { box-shadow: 0 0 0 3px #9CA3AF, 0 3px 8px rgba(0,0,0,.3); opacity: .7; }
.rm-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 15px; font-style: normal; }

/* ---------- kompüter: panel solda üzür ---------- */
@media (min-width: 900px) {
  .rx-top { right: auto; width: 420px; }
  .rx-results { left: 66px; right: auto; width: 366px; }
  .rx-banner { left: 446px; right: auto; width: min(460px, calc(100% - 520px)); top: calc(12px + env(safe-area-inset-top)); }
  .rx.is-nav .rx-banner { left: 446px; }
  .rx-side { top: 14px; }
  .rx.is-nav .rx-side { top: 14px; }
  .rx-sheet { left: 12px; right: auto; top: 70px; bottom: auto; width: 420px; max-height: calc(100% - 84px); border-radius: var(--rx-r); box-shadow: var(--rx-shadow); }
  .rx.is-nav .rx-sheet { top: 12px; }
  .rx-grab { display: none; }
  .rx-body { padding-top: 14px; }
  .rx-sos { left: auto; right: 14px; bottom: 120px; }
  .rx .leaflet-control-zoom { margin-bottom: 196px !important; }
  .rx-pickbar { left: 446px; right: auto; width: 420px; }
  .rx.is-picking .rx-sheet { display: none; }
}
@media (max-width: 899px) {
  .rx .leaflet-control-zoom { display: none; }
  .rx-side .rx-ic { width: 44px; height: 44px; }
}

/* ---------- 3D xəritə (MapLibre) + moto ikonu ---------- */
.rm-ml { cursor: pointer; }
.rm-me { background: none !important; box-shadow: none !important; }
.rm-moto, .rm-rot { width: 100%; height: 100%; display: block; }
.rm-moto { filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.rm-rot { transition: transform .4s ease; }
.rx-ic-3d { display: none; font: 900 .8rem/1 var(--font-body, system-ui); letter-spacing: .02em; }
.rx.is-nav .rx-ic-3d { display: grid; }
.rx-nav-ic svg { color: #fff; }
.rx-nav-then { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #12151b; color: #fff; font: 700 .8rem/1 var(--font-body, system-ui); box-shadow: var(--rx-shadow); }
.rx-attr { margin: 8px 0 0; font-size: .68rem; color: var(--rx-mute); opacity: .8; }
.rx .maplibregl-ctrl-bottom-right { bottom: 0; }
.rx .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { margin: 0 14px 196px 0; border-radius: 12px; box-shadow: var(--rx-shadow); }
.rx .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.rx .maplibregl-ctrl-attrib { font-size: 10px; }
.rx[data-engine="ml"] .rx-map { background: #efe9e1; }
html[data-theme="dark"] .rx[data-engine="ml"] .rx-map { background: #1b1f26; }
@media (max-width: 899px) { .rx .maplibregl-ctrl-bottom-right { display: none; } }

/* ---------- SOS: səbəb, böyük düymə, siqnal ---------- */
.rx-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.rx-why-b { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--rx-line); background: var(--rx-card); color: var(--rx-text); cursor: pointer; font: 650 .74rem/1.15 var(--font-body, system-ui); text-align: center; }
.rx-why-b span { font-size: 24px; line-height: 1; }
.rx-why-b.is-on { border-color: var(--rx-sos); background: rgba(225,29,46,.1); color: var(--rx-sos); }
.rx-sos-big { position: relative; width: 100%; min-height: 64px; margin-top: 8px; border: 0; border-radius: 18px; background: var(--rx-sos); color: #fff; cursor: pointer; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 10px 24px rgba(225,29,46,.35); }
.rx-sos-big b { position: relative; font: 900 1.05rem/1 var(--font-body, system-ui); letter-spacing: .02em; }
.rx-sos-big svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-sos-big::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.28); transform: scaleX(0); transform-origin: left; }
.rx-sos-big.is-hold::before { transform: scaleX(1); transition: transform 1.4s linear; }
.rx-sos-bar { fill: none; }
.rx-row2 { display: flex; gap: 8px; align-items: center; }
.rx-row2 .rx-input { flex: 1; }
.rx-row2 .rx-btn { flex: none; }
.rx-btn.is-sig { background: #12151b; color: #fff; border-color: #12151b; flex-basis: 100%; min-height: 48px; }
html[data-theme="dark"] .rx-btn.is-sig { background: #fff; color: #12151b; }
.rx-flash { position: absolute; inset: 0; z-index: 2000; display: grid; place-content: center; gap: 24px; text-align: center; animation: rxFlash .5s steps(1) infinite; }
.rx-flash b { font: 900 4.5rem/1 var(--font-body, system-ui); color: #fff; letter-spacing: .06em; text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.rx-flash .rx-btn { justify-self: center; min-height: 56px; padding: 0 26px; font-size: 1rem; background: #fff; color: var(--rx-sos); }
@keyframes rxFlash { 0% { background: #E11D2E; } 50% { background: #fff; } }
.rx-flash b { animation: rxFlashT .5s steps(1) infinite; }
@keyframes rxFlashT { 0% { color: #fff; } 50% { color: #E11D2E; } }
@media (prefers-reduced-motion: reduce) { .rx-flash { animation-duration: 1.2s; } }

/* ---------- konvoya dəvət ---------- */
.rx-inv { margin: 6px 0; }
.rx-inv-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px dashed var(--rx-line); border-color: rgba(127,127,127,.4); background: none; color: var(--rx-text); cursor: pointer; font: 650 .9rem/1 var(--font-body, system-ui); }
.rx-inv-head span { flex: 1; text-align: left; }
.rx-inv-head i { font-style: normal; color: var(--rx-acc); font-weight: 800; }
.rx-inv-body { margin-top: 6px; }
.rx-inv-body[hidden] { display: none; }
.rx-inv-list { max-height: 260px; overflow: auto; display: grid; gap: 2px; margin-top: 4px; }
.rx-inv-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 12px; cursor: pointer; }
.rx-inv-row:hover { background: var(--rx-bg2); }
.rx-inv-row input { width: 20px; height: 20px; accent-color: var(--rx-acc); flex: none; }
.rx-inv-row .rx-av { width: 34px; height: 34px; }
.rx-inv-row span:not(.rx-av) { display: grid; min-width: 0; }
.rx-inv-row b { font-size: .88rem; }
.rx-inv-row small { color: var(--rx-mute); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- yol boyu hava ---------- */
.rm-wxw { pointer-events: none; }
.rm-wx { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px 0 6px; border-radius: 15px; background: rgba(255,255,255,.95); color: #15171c; box-shadow: 0 3px 10px rgba(0,0,0,.22); font: 800 12px/1 var(--font-body, system-ui); white-space: nowrap; transition: opacity .25s; }
.rm-wx b { font-size: 16px; }
.rm-wx i { font-style: normal; color: #1d4ed8; font-weight: 700; }
.rm-wx.is-bad { background: #FEF3C7; box-shadow: 0 0 0 2px #F59E0B, 0 3px 10px rgba(0,0,0,.22); }
.rx.is-zoomin .rm-wx { opacity: 0; }
.rx-wx { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--rx-bg2); display: grid; gap: 6px; }
.rx-wx-h { font-size: .86rem; }
.rx-wx-h .is-bad, .rx-wx-r.is-bad .rx-wx-v { color: #B45309; }
html[data-theme="dark"] .rx-wx-h .is-bad, html[data-theme="dark"] .rx-wx-r.is-bad .rx-wx-v { color: #FCD34D; }
.rx-wx-r { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; font-size: .8rem; }
.rx-wx-t { font-weight: 800; color: var(--rx-mute); }
.rx-wx-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-wx-v { font-weight: 700; white-space: nowrap; }
.rx-wx small { font-size: .7rem; }

/* =================== v2: app quruluşu =================== */
.rx { --rx-tab-h: calc(62px + env(safe-area-inset-bottom)); }
.rx.is-nav { --rx-tab-h: 0px; }
.rx-tabs {
  position: absolute; z-index: 1005; left: 0; right: 0; bottom: 0; height: var(--rx-tab-h); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--rx-card); border-top: 1px solid var(--rx-line);
  box-shadow: 0 -4px 18px rgba(15,17,21,.08);
}
.rx-tab { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: none; color: var(--rx-mute); cursor: pointer; font: 650 .68rem/1 var(--font-body, system-ui); -webkit-tap-highlight-color: transparent; }
.rx-tab svg { transition: transform .15s ease; }
.rx-tab.is-on { color: var(--rx-acc); }
.rx-tab.is-on svg { transform: translateY(-1px) scale(1.06); }
.rx-tab:focus-visible { outline: 2px solid var(--rx-acc); outline-offset: -4px; border-radius: 12px; }
.rx-tab-dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--rx-acc); border: 2px solid var(--rx-card); }
.rx-tab-dot[hidden] { display: none; }
.rx.is-nav .rx-tabs, .rx.is-nav .rx-top, .rx.is-nav [data-rx-share], .rx.is-nav .rx-results { display: none !important; }

/* panel menyunun üstündə; xəritə rejimində panel gizli */
.rx-sheet { bottom: var(--rx-tab-h); padding-bottom: 0; }
.rx.is-nav .rx-sheet { bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.rx.no-sheet .rx-sheet { transform: translateY(110%); pointer-events: none; opacity: 0; }
.rx-sheet { transition: max-height .28s cubic-bezier(.2,.8,.2,1), transform .25s ease, opacity .2s; }
.rx-sos { bottom: calc(var(--rx-sheet-h, 168px) + var(--rx-tab-h) + 14px); }
.rx.no-sheet .rx-sos { bottom: calc(var(--rx-tab-h) + 16px); }
.rx .maplibregl-ctrl-bottom-right { bottom: var(--rx-tab-h); }
.rx-pickbar { bottom: calc(var(--rx-tab-h) + 14px); }

/* məlumat çipləri */
.rx-chipbar { position: absolute; z-index: 1001; left: 12px; right: 68px; top: calc(66px + env(safe-area-inset-top)); display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.rx.is-nav .rx-chipbar { top: calc(104px + env(safe-area-inset-top)); left: 12px; right: 70px; }
.rx-chip2 { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: var(--rx-card); color: var(--rx-text); box-shadow: var(--rx-shadow); font: 650 .78rem/1 var(--font-body, system-ui); cursor: pointer; }
span.rx-chip2 { cursor: default; }
.rx-chip2.is-warn { background: #FEF3C7; color: #92400E; }
.rx-chip2.is-sos { background: var(--rx-sos); color: #fff; animation: rbPulse 1.6s ease-out infinite; }
.rx.no-sheet .rx-banner:not([hidden]) ~ .rx-chipbar { top: calc(140px + env(safe-area-inset-top)); }

/* sürətölçən + sürət həddi */
.rx-speedo { position: absolute; z-index: 1003; left: 14px; bottom: calc(var(--rx-sheet-h) + 90px); display: flex; align-items: flex-end; gap: 6px; }
.rx-speedo[hidden] { display: none; }
.rx-lim { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 5px solid #E11D2E; display: grid; place-items: center; box-shadow: var(--rx-shadow); }
.rx-lim[hidden] { display: none; }
.rx-lim b { font: 900 1.15rem/1 var(--font-body, system-ui); color: #111; }
.rx-cur { width: 62px; height: 62px; border-radius: 50%; background: #12151b; color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--rx-shadow); transition: background .2s; }
.rx-cur b { font: 900 1.45rem/1 var(--font-body, system-ui); }
.rx-cur small { font-size: .6rem; opacity: .8; }
.rx-speedo.is-over .rx-cur { background: #E11D2E; animation: rbPulse 1s ease-out infinite; }
.rx.is-nav .rx-sos { width: 52px; height: 52px; left: auto; right: 14px; bottom: calc(var(--rx-sheet-h) + 14px); }
.rx.is-nav .rx-sos b { font-size: 12px; }

/* ümumi elementlər */
.rx-btn-sm { min-height: 34px; padding: 0 12px; font-size: .8rem; flex: none; border-radius: 11px; }
.rx-wide { width: 100%; }
.rx-label { margin: 14px 0 6px; font: 800 .72rem/1 var(--font-body, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--rx-mute); }
.rx-label.rx-sub { text-transform: none; letter-spacing: 0; font-weight: 650; font-size: .78rem; margin-top: 8px; }
.rx-seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--rx-bg2); margin-bottom: 8px; }
.rx-seg-3, [data-set="theme"], [data-set="routePref"], [data-fseg] { grid-template-columns: repeat(3, 1fr); }
.rx-seg-4 { grid-template-columns: repeat(4, 1fr); }
.rx-seg button { min-height: 38px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--rx-mute); font: 700 .78rem/1.15 var(--font-body, system-ui); cursor: pointer; }
.rx-seg button.is-on { background: var(--rx-card); color: var(--rx-text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rx-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rx-acc); color: #fff; font: 800 .66rem/1 var(--font-body, system-ui); font-style: normal; }
.rx-tg { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rx-line); cursor: pointer; }
.rx-tg span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rx-tg b { font-weight: 650; font-size: .9rem; }
.rx-tg small { color: var(--rx-mute); font-size: .76rem; line-height: 1.3; }
.rx-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx-tg i { flex: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(127,127,127,.35); position: relative; transition: background .2s; }
.rx-tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.rx-tg input:checked + i { background: #22C55E; }
.rx-tg input:checked + i::after { transform: translateX(18px); }
.rx-tg input:focus-visible + i { outline: 2px solid var(--rx-acc); outline-offset: 2px; }

.rx-prof { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.rx-prof .rx-av { width: 52px; height: 52px; }
.rx-prof b { display: block; font: 800 1.08rem/1.2 var(--font-body, system-ui); }
.rx-prof small { color: var(--rx-mute); font-size: .8rem; }
.rx-sharecard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--rx-line); background: var(--rx-bg2); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.rx-sharecard > span:first-child { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(127,127,127,.18); color: var(--rx-mute); flex: none; }
.rx-sharecard.is-on > span:first-child { background: #2F80ED; color: #fff; }
.rx-sharecard > span:nth-child(2) { flex: 1; display: grid; }
.rx-sharecard b { font-size: .92rem; }
.rx-sharecard small { color: var(--rx-mute); font-size: .78rem; }
.rx-sharecard i { font-style: normal; font-size: 1.3rem; color: var(--rx-mute); }
.rx-av.is-share { background: #2F80ED; color: #fff; }

.rx-quicks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.rx-quicks-3 { grid-template-columns: repeat(3, 1fr); }
.rx-quick { display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 16px; border: 1px solid var(--rx-line); background: var(--rx-card); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.rx-quick span { font-size: 22px; line-height: 1.1; }
.rx-quick b { font-size: .9rem; }
.rx-quick small { color: var(--rx-mute); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rx-quick:hover { border-color: var(--rx-acc); }

.rx-plist { display: grid; gap: 4px; }
.rx-prow, .rx-frow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rx-line); }
.rx-prow-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; padding: 4px 0; font: inherit; }
.rx-frow > .rx-row-tx { flex: 1; }
.rx-prow-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.rx-mini { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--rx-mute); cursor: pointer; text-decoration: none; }
.rx-mini:hover { background: var(--rx-bg2); color: var(--rx-text); }
.rx-mini:disabled { opacity: .3; cursor: default; }
.rx-mini.is-go { color: #fff; background: var(--rx-acc); }
.rx-frow.is-in { background: rgba(229,37,53,.06); border-radius: 12px; padding: 8px; border: 0; margin-bottom: 4px; }
.rx-pill.is-fr { background: rgba(34,197,94,.15); color: #15803D; }
html[data-theme="dark"] .rx-pill.is-fr { color: #86EFAC; }
.rx-tall { max-height: 52vh; }
.rx-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rx-danger { color: #DC2626; }
.rx-alt em { display: block; font: 800 .66rem/1.2 var(--font-body, system-ui); font-style: normal; color: var(--rx-acc); margin-bottom: 3px; }
.rx-offer { display: grid; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #12151b; color: #fff; box-shadow: var(--rx-shadow); }
.rx-offer small { opacity: .85; }
.rx-offer span { display: flex; gap: 8px; margin-top: 4px; }
.rx-offer .rx-btn:not(.is-main) { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }

/* xəritə işarələri */
.rm-place { background: #fff; box-shadow: 0 0 0 2px #F5B301, 0 2px 6px rgba(0,0,0,.25); }
.rm-place span { background: none; font-size: 14px; }
.rm-rider.is-friend { box-shadow: 0 0 0 3px #22C55E, 0 3px 8px rgba(0,0,0,.3); }
.rm-rider em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 2px 6px; border-radius: 6px; font: 700 10px/1.2 var(--font-body, system-ui); font-style: normal; white-space: nowrap; color: #fff; background: #15803D; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- kompüter: solda yığcam menyu, yanında panel ---------- */
@media (min-width: 900px) {
  .rx { --rx-tab-h: 0px; --rx-rail: 80px; }
  .rx-tabs { right: auto; top: 0; bottom: 0; width: var(--rx-rail); height: auto; padding: 76px 0 16px; grid-template-columns: 1fr; grid-auto-rows: 70px; align-content: start; border-top: 0; border-right: 1px solid var(--rx-line); box-shadow: 4px 0 18px rgba(15,17,21,.06); }
  .rx-tab { font-size: .7rem; }
  .rx-tab.is-on::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rx-acc); }
  .rx-top { left: calc(var(--rx-rail) + 12px); width: 400px; z-index: 1006; }
  .rx-top .rx-close { position: absolute; left: calc(-1 * var(--rx-rail) - 12px + 17px); top: 0; width: 46px; height: 46px; box-shadow: none; background: var(--rx-bg2); }
  .rx.is-nav .rx-top { display: none !important; }
  .rx-results { left: calc(var(--rx-rail) + 12px); width: 400px; }
  .rx-sheet { left: calc(var(--rx-rail) + 12px); top: 70px; bottom: auto; width: 400px; max-height: calc(100% - 84px); }
  .rx.is-nav .rx-sheet { left: 12px; top: 12px; bottom: auto; }
  .rx.no-sheet .rx-sheet { transform: translateX(-30px); }
  .rx-chipbar { left: calc(var(--rx-rail) + 424px); right: 70px; top: 14px; }
  .rx.no-sheet .rx-chipbar { left: calc(var(--rx-rail) + 12px); top: 70px; }
  .rx-banner { left: calc(var(--rx-rail) + 424px); }
  .rx.no-sheet .rx-banner { left: calc(var(--rx-rail) + 12px); top: 70px; }
  .rx.is-nav .rx-banner { left: 424px; top: 12px; }
  .rx.is-nav .rx-chipbar { left: 424px; top: 120px; bottom: auto; }
  .rx-sos, .rx.no-sheet .rx-sos { left: auto; right: 14px; bottom: 120px; }
  .rx.is-nav .rx-sos { bottom: 120px; }
  .rx-speedo { left: auto; right: 82px; bottom: 120px; }
  .rx-pickbar { left: calc(var(--rx-rail) + 12px); width: 400px; }
  .rx .maplibregl-ctrl-bottom-right { bottom: 0; }
}
@media (max-width: 899px) {
  .rx-top .rx-close { width: 42px; height: 42px; }
}

/* ---------- naviqasiya səsləri ---------- */
.rx-voicecard { margin-top: 6px; }
.rx-voicecard > span:first-child { font-size: 18px; }
.rx-vprog { height: 6px; border-radius: 3px; background: var(--rx-bg2); overflow: hidden; margin: 8px 0 6px; }
.rx-vprog span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--rx-acc), #ff6b75); transition: width .3s; }
.rx-note { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: #FEF3C7; color: #78350F; font-size: .78rem; line-height: 1.4; }
.rx-vrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rx-line); }
.rx-vtx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rx-vtx b { font-weight: 650; font-size: .9rem; }
.rx-vtx small { font-size: .74rem; color: var(--rx-mute); }
.rx-vrow.is-has .rx-vtx small { color: #15803D; font-weight: 650; }
html[data-theme="dark"] .rx-vrow.is-has .rx-vtx small { color: #86EFAC; }
.rx-rec { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--rx-acc); color: #fff; font-size: 17px; cursor: pointer; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(229,37,53,.3); }
.rx-rec.is-rec { background: #12151b; animation: rxRec 1s ease-in-out infinite; }
@keyframes rxRec { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,37,53,.6); } 50% { box-shadow: 0 0 0 10px rgba(229,37,53,0); } }
.rx-head-sm { margin: 16px 0 4px; }
.rx-head-sm b { font-size: .9rem; }
.rx-head-sm .rx-link { padding: 4px 0; }
.rm-recent { background: #fff; box-shadow: 0 0 0 2px #9CA3AF, 0 2px 5px rgba(0,0,0,.2); opacity: .9; }
.rm-recent span { background: none; font-size: 12px; }
.rx-grab { height: 26px; touch-action: none; }
.rx-grab i { width: 48px; height: 6px; }
/* Qonaq rejimi */
.rx.is-guest [data-vote], .rx.is-guest [data-pp-alert], .rx.is-guest [data-go="alert"] { display: none !important; }
.rx-guest { margin: 10px 0 14px; padding: 14px; border-radius: 14px; background: rgba(229,37,53,.07); border: 1px solid rgba(229,37,53,.18); }
.rx-guest b { display: block; margin-bottom: 6px; font-size: .92rem; }
.rx-guest ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .86rem; }
.rx-guest small { display: block; margin-top: 8px; opacity: .7; font-size: .78rem; }
.rx-guest .rx-acts a { text-decoration: none; text-align: center; }
.rx.is-guest .rx-tabs { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .rx.is-guest .rx-tabs { grid-template-columns: 1fr; } }

/* dairəvi düymənin menyusu */
.rb.is-menu { transform: scale(.92); }
.rb-menu { position: fixed; z-index: 10035; min-width: 250px; padding: 6px; border-radius: 20px; background: var(--rx-card); color: var(--rx-text); box-shadow: 0 18px 44px rgba(0,0,0,.28); border: 1px solid var(--rx-line); display: grid; gap: 4px; animation: rbmIn .16s ease-out; font-family: var(--font-body, system-ui); }
@keyframes rbmIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.rb-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rb-menu button:hover, .rb-menu button:focus-visible { background: var(--rx-bg2); outline: none; }
.rb-menu button.is-on { background: rgba(229,37,53,.1); }
.rb-menu b { display: block; font-size: 15px; }
.rb-menu small { display: block; font-size: 12.5px; color: var(--rx-mute); margin-top: 1px; }
.rb-mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: var(--rx-bg2); flex: none; }
/* SOS: təcili məlumat kartı */
.rx-med { margin: 10px 0; padding: 12px; border-radius: 16px; background: rgba(229,37,53,.07); border: 1px solid rgba(229,37,53,.3); display: grid; gap: 8px; }
.rx-med-h { font-weight: 800; font-size: 14px; } .rx-med-h small { font-weight: 600; color: var(--rx-mute); }
.rx-med-blood { display: flex; align-items: baseline; gap: 10px; } .rx-med-blood small { color: var(--rx-mute); font-size: 12.5px; } .rx-med-blood b { font-size: 26px; font-weight: 900; color: var(--rx-sos); letter-spacing: -.02em; }
.rx-med-r { display: grid; grid-template-columns: 24px 82px 1fr auto; align-items: center; gap: 6px; font-size: 14px; }
.rx-med-r small { color: var(--rx-mute); font-size: 12.5px; } .rx-med-r b { font-weight: 700; word-break: break-word; }
.rx-medcta { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px; border-radius: 16px; border: 1px dashed rgba(229,37,53,.5); color: inherit; text-decoration: none; font-size: 20px; }
.rx-medcta span { flex: 1; } .rx-medcta b { display: block; font-size: 14.5px; } .rx-medcta small { display: block; font-size: 12.5px; color: var(--rx-mute); } .rx-medcta i { font-style: normal; font-size: 22px; color: var(--rx-mute); }


/* ===== Canlı yer: bir toxunuşla hamıya göstər ===== */
.rx-side .rx-ic[data-rx-share]{height:auto;min-height:50px;padding:7px 0 6px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.rx-ic-lbl{font:800 8.5px/1 var(--font-body,system-ui);letter-spacing:.05em;font-style:normal;opacity:.85}
.rx-ic[data-rx-share].is-on{background:#16A34A;color:#fff;animation:rxLive 1.8s ease-out infinite}
.rx-ic[data-rx-share].is-on .rx-ic-lbl{opacity:1}
@keyframes rxLive{0%{box-shadow:0 0 0 0 rgba(22,163,74,.6)}70%{box-shadow:0 0 0 12px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
.rx-chip2.is-live{background:#16A34A;color:#fff;font-weight:700}
.rm-rider.is-live{box-shadow:0 0 0 3px #16A34A,0 3px 10px rgba(0,0,0,.35)}
.rm-rider.is-live.is-friend{box-shadow:0 0 0 3px #22C55E,0 0 0 6px rgba(34,197,94,.35),0 3px 10px rgba(0,0,0,.35)}
.rm-rider.is-live em{background:#16A34A;color:#fff}
@media (prefers-reduced-motion:reduce){.rx-ic[data-rx-share].is-on{animation:none}}
/* «CANLI» düyməsinə diqqət: sınanana qədər nəbz + izah */
.rx-ic[data-rx-share].is-hint{background:#FFF7ED;color:#C2410C;animation:rxHint 1.6s ease-out infinite}
@keyframes rxHint{0%{box-shadow:0 0 0 0 rgba(249,115,22,.65)}70%{box-shadow:0 0 0 14px rgba(249,115,22,0)}100%{box-shadow:0 0 0 0 rgba(249,115,22,0)}}
.rx-tip{position:absolute;z-index:30;transform:translateY(-50%);max-width:min(250px,calc(100vw - 90px));padding:10px 12px;border:0;border-radius:14px;background:#111827;color:#fff;text-align:left;font:500 12.5px/1.35 var(--font-body,system-ui);box-shadow:0 12px 30px -8px rgba(0,0,0,.45);cursor:pointer;animation:rxTipIn .35s ease;transition:opacity .35s,transform .35s}
.rx-tip b{display:block;font-size:14px;margin-bottom:3px}
.rx-tip span{opacity:.85}
.rx-tip::after{content:'';position:absolute;right:-6px;top:50%;width:12px;height:12px;background:#111827;transform:translateY(-50%) rotate(45deg);border-radius:2px}
.rx-tip.out{opacity:0;transform:translate(10px,-50%)}
@keyframes rxTipIn{from{opacity:0;transform:translate(10px,-50%)}to{opacity:1;transform:translateY(-50%)}}
.rx-chip2.is-golive{background:linear-gradient(135deg,#F97316,#E52535);color:#fff;font-weight:700;box-shadow:0 6px 16px -6px rgba(229,37,53,.6)}
.rx-chip2.is-live.is-me{background:#15803D}
@media (prefers-reduced-motion:reduce){.rx-ic[data-rx-share].is-hint{animation:none}}