/* GAR Ride Tracker · σύστημα σχεδίασης
   Γραμματοσειρές: Roboto Condensed (τίτλοι, κουμπιά) + Manrope (κείμενο).
   Χρώματα: μαύρο GAR, μπλε #00AAFF, γκρι #A3A3A3. Κόκκινο μόνο για SOS. */
:root {
  --bg: #0A0B0D; --bg-2: #101215; --surface: #16181C; --surface-2: #1E2126; --surface-3: #262A30;
  --line: #2A2E35; --line-soft: #1E2126;
  --text: #F4F5F6; --text-2: #C7CCD2; --muted: #8E959E;
  --accent: #00AAFF; --accent-hover: #29B8FF; --accent-press: #0091DB; --accent-ink: #001A2A;
  --accent-soft: rgba(0,170,255,.12); --accent-line: rgba(0,170,255,.38);
  --sos: #F2484F; --sos-press: #D93A41; --sos-soft: rgba(242,72,79,.14); --sos-line: rgba(242,72,79,.45); --sos-bg: #120809;
  --warn: #FFB224; --warn-ink: #FFCB6B; --warn-soft: rgba(255,178,36,.13);
  --ok: #2FD47E; --ok-ink: #7EE6AE; --ok-soft: rgba(47,212,126,.12);
  --grey: #8E959E; --grey-soft: rgba(142,149,158,.14);
  --glass: rgba(16,18,21,.84); --glass-line: rgba(255,255,255,.07);
  --shadow: 0 10px 30px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --font-display: "Roboto Condensed", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.45; font-weight: 500;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
body { overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }
.hidden { display: none !important; }

/* Τυπογραφία */
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; line-height: 1.02; text-transform: uppercase; }
.h1 { font-size: 34px; }
.h2 { font-size: 26px; }
.h3 { font-size: 20px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 15px; color: var(--text-2); line-height: 1.5; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-feature-settings: "tnum" 1; }

/* Φόρμες */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .01em; }
.input, .field input, .field select, .field textarea {
  height: 52px; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); padding: 0 16px; font-size: 16px; font-weight: 600; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .field input::placeholder, textarea::placeholder { color: #5E656E; font-weight: 500; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input, .field textarea { height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.field input[type=file] { padding-top: 14px; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex-shrink: 0; border-radius: 7px;
  border: 1.5px solid #3A3F47; background: var(--bg-2); display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--accent-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* Κουμπιά */
.btn { height: 52px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-weight: 700; font-size: 15px; padding: 0 18px; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; transition: background .15s, transform .08s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--surface-3); }
.btn svg { flex-shrink: 0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:active { background: var(--accent-press); }
.btn.danger { background: var(--sos); border-color: var(--sos); color: #fff; }
.btn.danger:active { background: var(--sos-press); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #04210F; }
.btn.ghost { background: transparent; }
.btn.sm { height: 40px; font-size: 13px; padding: 0 12px; border-radius: 11px; }
.btn.lg { height: 58px; }
.btn.cta { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: .01em; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }

/* Κάρτες, chips, badges */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 16px; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow); }
.chip { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; letter-spacing: .01em; }
.chip .dot { width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.chip.sos { background: var(--sos-soft); color: #FF8A8F; }
.chip.check { background: var(--warn-soft); color: var(--warn-ink); }
.chip.grey { background: var(--grey-soft); color: #B9BFC6; }
.chip.ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip.info { background: var(--accent-soft); color: #7FD3FF; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.badge.sos { background: var(--sos); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex-shrink: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,212,126,.6); animation: live 2s infinite; display: inline-block; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,212,126,.55); } 70% { box-shadow: 0 0 0 7px rgba(47,212,126,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,126,0); } }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Ειδοποιήσεις μέσα στο app */
#toasts { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--safe-top)); z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { background: rgba(30,33,38,.96); border: 1px solid var(--line); color: var(--text); padding: 12px 16px;
  border-radius: 14px; font-size: 14px; font-weight: 600; max-width: 480px; width: 100%; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .35s, transform .35s; }
.toast.sos { background: rgba(58,14,17,.97); border-color: var(--sos-line); }
.toast.ok { border-color: rgba(47,212,126,.45); }
.toast.out { opacity: 0; transform: translateY(-8px); }

/* Χάρτης */
.leaflet-container { background: #DDE3D6; font-family: var(--font-body); }
.leaflet-tile { outline: 1px solid transparent; }
.leaflet-control-attribution { font-size: 9px; background: rgba(10,11,13,.6) !important; color: #9AA1AA; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: #C7CCD2; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { background: var(--glass) !important; color: var(--text) !important; border-color: var(--glass-line) !important;
  width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 18px !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.me-dot { width: 20px; height: 20px; border-radius: 10px; background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(0,170,255,.5), 0 2px 6px rgba(0,0,0,.4); animation: me 2.2s infinite; }
@keyframes me { 0% { box-shadow: 0 0 0 0 rgba(0,170,255,.5), 0 2px 6px rgba(0,0,0,.4); } 70% { box-shadow: 0 0 0 16px rgba(0,170,255,0), 0 2px 6px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 0 rgba(0,170,255,0), 0 2px 6px rgba(0,0,0,.4); } }
.rider-pin { border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.rider-pin.sel { border-width: 3.5px; box-shadow: 0 0 0 5px rgba(0,170,255,.35), 0 2px 6px rgba(0,0,0,.5); }
.rider-pin.pulse { animation: pulse 1.3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,72,79,.75); } 100% { box-shadow: 0 0 0 18px rgba(242,72,79,0); } }
.pin-label { background: rgba(10,11,13,.88); color: #fff; border: 0; border-radius: 8px; padding: 3px 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pin-label::before { display: none; }
.route-end { width: 14px; height: 14px; border-radius: 7px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
