/* ═══════════════════════════════════════════════════════
   GeoFlota — Mobile-first PWA CSS
   ═══════════════════════════════════════════════════════ */
:root {
  --bg:       #0B1120;
  --surface:  #111827;
  --card:     #1F2937;
  --card2:    #253141;
  --border:   #2D3748;
  --accent:   #3B82F6;
  --accent2:  #6366F1;
  --success:  #10B981;
  --warning:  #F59E0B;
  --danger:   #EF4444;
  --text:     #F9FAFB;
  --muted:    #9CA3AF;
  --subtle:   #6B7280;
  /* safe areas para iPhone */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
  /* layout */
  --topbar-h:  56px;
  --bottomnav-h: 60px;
  --sidebar-w: 260px;
  --radius:    14px;
  --radius-sm: 10px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent }
html { height:100%; scroll-behavior:smooth }
body { height:100%; background:var(--bg); color:var(--text);
       font-family:'Inter',system-ui,-apple-system,sans-serif; font-size:15px;
       -webkit-font-smoothing:antialiased; overflow-x:hidden }
a { color:inherit; text-decoration:none }
button { font-family:inherit }
input,select,textarea { font-family:inherit; font-size:16px; /* evita zoom en iOS */ }

/* ─── LOGIN ─────────────────────────────────────────── */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:16px; background:radial-gradient(ellipse at 30% 20%, #1e3a5f 0%, var(--bg) 65%) }
.login-card { background:var(--surface); border:1px solid var(--border); border-radius:24px;
  padding:40px 28px; width:100%; max-width:420px; box-shadow:0 32px 80px #00000066 }
.login-logo { font-size:30px; font-weight:900; color:var(--accent); text-align:center;
  margin-bottom:6px; letter-spacing:-1px }
.login-sub { text-align:center; color:var(--muted); margin-bottom:32px; font-size:13px }

/* ─── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom:16px }
.form-group label { display:block; font-size:12px; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:.7px; margin-bottom:8px }
.form-group input, .form-group select, .form-group textarea {
  width:100%; background:var(--card); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 16px; color:var(--text); transition:.15s; outline:none; appearance:none }
.form-group input:focus, .form-group select:focus { border-color:var(--accent); box-shadow:0 0 0 3px #3b82f622 }
.form-group .hint { font-size:12px; color:var(--muted); margin-top:6px }
select option { background:var(--card) }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:12px 20px; border-radius:var(--radius-sm); font-size:14px; font-weight:600;
  border:none; cursor:pointer; transition:.15s; white-space:nowrap; text-decoration:none }
.btn:active { transform:scale(.96) }
.btn-primary { background:var(--accent); color:#fff }
.btn-primary:hover { background:#2563eb }
.btn-success { background:var(--success); color:#fff }
.btn-success:hover { background:#059669 }
.btn-danger  { background:var(--danger);  color:#fff }
.btn-ghost   { background:transparent; color:var(--muted); border:1.5px solid var(--border) }
.btn-ghost:hover { background:var(--card); color:var(--text) }
.btn-sm  { padding:8px 14px; font-size:13px; border-radius:8px }
.btn-xs  { padding:5px 10px; font-size:12px; border-radius:7px }
.btn-full { width:100% }
.btn-icon { width:40px; height:40px; padding:0; border-radius:50% }
.alert-err { background:#EF444420; border:1px solid var(--danger); color:#fca5a5;
  padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:16px; font-size:13px }

/* ─── BADGES ─────────────────────────────────────────── */
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px;
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; white-space:nowrap }
.badge-green  { background:#10b98122; color:#34d399 }
.badge-red    { background:#ef444422; color:#f87171 }
.badge-yellow { background:#f59e0b22; color:#fbbf24 }
.badge-blue   { background:#3b82f622; color:#60a5fa }
.badge-gray   { background:#6b728022; color:#9ca3af }
.badge-purple { background:#6366f122; color:#a5b4fc }

/* ─── STATUS DOT ──────────────────────────────────────── */
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:4px; flex-shrink:0 }
.dot-green  { background:var(--success); box-shadow:0 0 6px var(--success) }
.dot-yellow { background:var(--warning); box-shadow:0 0 6px var(--warning) }
.dot-red    { background:var(--danger) }
.dot-gray   { background:var(--muted) }

/* ─── LAYOUT MOBILE (default) ────────────────────────── */
.layout { display:flex; min-height:100vh }

/* Sidebar — solo en desktop */
.sidebar { display:none }

/* Main area */
.main { flex:1; display:flex; flex-direction:column; min-height:100vh;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom)) }

/* TOP BAR (mobile app bar) */
.topbar { position:sticky; top:0; z-index:200; height:var(--topbar-h);
  background:var(--surface); border-bottom:1px solid var(--border);
  display:flex; align-items:center; padding:0 16px;
  padding-top:var(--safe-top); gap:12px }
.topbar-title { font-size:17px; font-weight:700; flex:1; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap }
.topbar-actions { display:flex; gap:8px; align-items:center; flex-shrink:0 }
.topbar-back { background:none; border:none; color:var(--muted); cursor:pointer;
  font-size:20px; padding:4px; margin-right:4px }

/* CONTENT */
.content { padding:16px; flex:1 }

/* BOTTOM NAV */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:200;
  background:var(--surface); border-top:1px solid var(--border);
  height:calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom:var(--safe-bottom);
  display:flex; align-items:stretch; }
.bn-item { flex:1; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:3px; cursor:pointer; text-decoration:none;
  color:var(--muted); padding:6px 4px; transition:.15s; border:none; background:none }
.bn-item:active { opacity:.6 }
.bn-item.active { color:var(--accent) }
.bn-icon { width:22px; height:22px; display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.bn-icon svg { width:22px; height:22px; transition:inherit }
.bn-label { font-size:10px; font-weight:600; letter-spacing:.3px; margin-top:1px }
/* stream status badge */
.stream-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 12px;
  border-radius:20px; font-size:12px; font-weight:600; letter-spacing:.5px }
.stream-badge.offline { background:rgba(239,68,68,.12); color:#ef4444 }
.stream-badge.connecting { background:rgba(234,179,8,.12); color:#eab308 }
.stream-badge.live { background:rgba(34,197,94,.12); color:#22c55e }
.stream-badge.live::before { content:''; width:8px; height:8px; border-radius:50%;
  background:#22c55e; animation:pulse-dot 1.5s infinite }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.stream-viewport { position:relative; background:#000; border-radius:12px; overflow:hidden;
  aspect-ratio:16/9; display:flex; align-items:center; justify-content:center }
.stream-placeholder { display:flex; flex-direction:column; align-items:center; gap:12px;
  color:var(--muted); user-select:none }
.stream-placeholder svg { width:56px; height:56px; opacity:.3 }
.stream-overlay-info { position:absolute; top:10px; left:10px; background:rgba(0,0,0,.6);
  border-radius:8px; padding:4px 10px; font-size:11px; font-weight:600; color:#fff;
  display:none }
/* Botón central FAB en bottom nav */
.bn-fab { background:var(--accent); border-radius:50%; width:52px; height:52px;
  margin-top:-18px; box-shadow:0 4px 14px #3b82f666; font-size:24px; flex-shrink:0 }
.bn-fab:active { transform:scale(.93) }

/* ─── CARDS ──────────────────────────────────────────── */
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px }
.card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px }
.card-title { font-size:15px; font-weight:700 }

/* ─── STAT CARDS ─────────────────────────────────────── */
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px; display:flex; align-items:center; gap:14px }
.stat-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center;
  justify-content:center; font-size:20px; flex-shrink:0 }
.stat-num { font-size:26px; font-weight:800; line-height:1 }
.stat-label { font-size:11px; color:var(--muted); margin-top:3px }

/* ─── LIST ITEMS (reemplazan tablas en mobile) ───────── */
.list-item { background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:14px 16px; margin-bottom:10px; display:flex; align-items:center; gap:14px;
  cursor:pointer; transition:.15s }
.list-item:active { opacity:.7 }
.list-item-icon { width:42px; height:42px; border-radius:12px; display:flex; align-items:center;
  justify-content:center; font-size:20px; flex-shrink:0 }
.list-item-body { flex:1; min-width:0 }
.list-item-title { font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.list-item-sub { font-size:12px; color:var(--muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.list-item-right { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:4px }
.list-item-chevron { color:var(--subtle); font-size:16px }

/* Swipe-action container */
.swipe-actions { display:flex; gap:6px; margin-top:8px }

/* ─── SECTION HEADER ────────────────────────────────── */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px }
.section-title { font-size:13px; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:.7px }

/* ─── BOTTOM SHEET MODAL ─────────────────────────────── */
.sheet-backdrop { position:fixed; inset:0; background:#00000077; z-index:500;
  opacity:0; pointer-events:none; transition:opacity .25s; backdrop-filter:blur(2px) }
.sheet-backdrop.open { opacity:1; pointer-events:all }
.sheet { position:fixed; bottom:0; left:0; right:0; z-index:501;
  background:var(--surface); border-radius:20px 20px 0 0;
  padding:0 20px calc(20px + var(--safe-bottom));
  transform:translateY(100%); transition:transform .3s cubic-bezier(.4,0,.2,1);
  max-height:92vh; overflow-y:auto }
.sheet.open { transform:translateY(0) }
.sheet-handle { width:36px; height:4px; background:var(--border); border-radius:2px;
  margin:12px auto 20px; flex-shrink:0 }
.sheet-title { font-size:18px; font-weight:700; margin-bottom:20px; padding-top:4px }

/* Legacy modal (solo desktop) */
.modal-backdrop { position:fixed; inset:0; background:#00000088; z-index:500;
  display:none; align-items:center; justify-content:center; padding:20px }
.modal-backdrop.open { display:flex }
.modal { background:var(--card); border:1px solid var(--border); border-radius:20px;
  padding:28px; width:100%; max-width:520px; max-height:90vh; overflow-y:auto }
.modal-title { font-size:18px; font-weight:700; margin-bottom:20px }
.modal-foot { display:flex; gap:10px; justify-content:flex-end; margin-top:20px }

/* ─── MAP ─────────────────────────────────────────────── */
#map { border-radius:var(--radius); overflow:hidden }
.map-full { height:calc(100vh - var(--topbar-h) - var(--bottomnav-h) - var(--safe-top) - var(--safe-bottom) - 8px) }

/* ─── PHOTO GRID ──────────────────────────────────────── */
.photo-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px }
.photo-item { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm);
  overflow:hidden; cursor:pointer; transition:.15s; -webkit-tap-highlight-color:transparent }
.photo-item:active { opacity:.75 }
.photo-item img { width:100%; height:130px; object-fit:cover; display:block }
.photo-info { padding:8px 10px }
.photo-info .time { font-size:11px; color:var(--muted) }

/* Vehicle photo cards */
.vpc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.vehicle-photo-card { background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:.2s }
.vehicle-photo-card:active { opacity:.7 }
.vehicle-photo-card.no-cam { opacity:.6; cursor:default }
.vehicle-photo-card:not(.no-cam):active { border-color:var(--accent) }
.vpc-preview { height:120px; background:var(--bg); display:flex; align-items:center;
  justify-content:center; overflow:hidden }
.vpc-preview img { width:100%; height:100%; object-fit:cover }
.vpc-no-img { font-size:36px }
.vpc-info { padding:10px 12px }
.vpc-name { font-weight:700; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.vpc-driver { font-size:11px; color:var(--muted); margin:2px 0 6px }
.vpc-meta { display:flex; gap:4px; flex-wrap:wrap }
.vpc-action { font-size:12px; color:var(--accent); font-weight:600; margin-top:6px }
.vpc-action-warn { font-size:11px; color:var(--warning); margin-top:6px }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state { text-align:center; padding:60px 20px; color:var(--muted) }
.empty-state .empty-icon { font-size:52px; margin-bottom:14px }
.empty-state .empty-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:6px }
.empty-state .empty-desc { font-size:13px; max-width:280px; margin:0 auto }

/* ─── MISC ───────────────────────────────────────────── */
.flex { display:flex }
.flex-col { flex-direction:column }
.items-center { align-items:center }
.justify-between { justify-content:space-between }
.gap-2 { gap:8px } .gap-3 { gap:12px } .gap-4 { gap:16px }
.mt-3 { margin-top:12px } .mt-4 { margin-top:16px } .mt-5 { margin-top:20px }
.mb-3 { margin-bottom:12px } .mb-4 { margin-bottom:16px }
.text-muted { color:var(--muted) }
.text-sm { font-size:12px }
.text-xs { font-size:11px }
.font-bold { font-weight:700 }
.mono { font-family:monospace }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px }
.w-full { width:100% }
.avatar { width:36px; height:36px; border-radius:50%; background:var(--accent2);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px;
  flex-shrink:0; color:white }

/* Info row */
.info-row { display:flex; align-items:baseline; justify-content:space-between;
  padding:12px 0; border-bottom:1px solid var(--border) }
.info-row:last-child { border-bottom:none }
.info-label { font-size:13px; color:var(--muted); flex-shrink:0; margin-right:12px }
.info-value { font-size:13px; font-weight:600; text-align:right; min-width:0; word-break:break-all }

/* Filter bar */
.filter-bar { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px;
  margin-bottom:16px; -webkit-overflow-scrolling:touch; scrollbar-width:none }
.filter-bar::-webkit-scrollbar { display:none }
.filter-chip { padding:7px 14px; border-radius:20px; font-size:13px; font-weight:600;
  white-space:nowrap; border:1.5px solid var(--border); background:var(--card);
  color:var(--muted); cursor:pointer; transition:.15s }
.filter-chip.active { background:var(--accent); border-color:var(--accent); color:white }

/* FAB global */
.fab { position:fixed; right:16px; bottom:calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
  z-index:190; width:56px; height:56px; border-radius:50%;
  background:var(--accent); color:white; border:none; cursor:pointer; font-size:24px;
  box-shadow:0 4px 20px #3b82f666; display:flex; align-items:center; justify-content:center;
  transition:.15s }
.fab:active { transform:scale(.93) }

/* Pill info (top of detail pages) */
.page-hero { background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:14px 16px; margin-bottom:16px }

/* ─── TABLE (solo visible en desktop via media query) ─── */
.table-wrap { overflow-x:auto }
table { width:100%; border-collapse:collapse }
thead th { padding:10px 16px; text-align:left; font-size:11px; font-weight:700;
  color:var(--muted); text-transform:uppercase; letter-spacing:.7px; border-bottom:1px solid var(--border) }
tbody td { padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:middle }
tbody tr:last-child td { border-bottom:none }
tbody tr:hover { background:#ffffff05 }

/* Ocultar tablas en mobile, mostrar list-items */
.mobile-list { display:block }
.desktop-table { display:none }

/* ─── LIGHTBOX ───────────────────────────────────────── */
.lightbox { position:fixed; inset:0; z-index:900; background:#000000cc;
  display:none; align-items:center; justify-content:center; padding:16px }
.lightbox.open { display:flex }
.lightbox img { max-width:100%; max-height:85vh; border-radius:10px; object-fit:contain }
.lightbox-close { position:fixed; top:16px; right:16px; background:var(--danger);
  border:none; color:white; width:36px; height:36px; border-radius:50%;
  cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center }
.lightbox-info { position:fixed; bottom:calc(16px + var(--safe-bottom)); left:16px; right:16px;
  text-align:center; color:white; font-size:13px; background:#00000088;
  padding:8px 14px; border-radius:8px }

/* ─── TOAST ──────────────────────────────────────────── */
.toast { position:fixed; bottom:calc(var(--bottomnav-h) + var(--safe-bottom) + 12px);
  left:50%; transform:translateX(-50%) translateY(20px); z-index:800;
  background:var(--card2); color:var(--text); border:1px solid var(--border);
  padding:12px 20px; border-radius:12px; font-size:14px; font-weight:600;
  opacity:0; transition:.3s; white-space:nowrap; pointer-events:none;
  box-shadow:0 8px 24px #00000066 }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0) }
.toast.toast-error { background:#ef4444 }

/* ─── DESKTOP OVERRIDES (≥ 768px) ───────────────────── */
@media (min-width: 768px) {
  .sidebar { display:flex; flex-direction:column; width:var(--sidebar-w);
    background:var(--surface); border-right:1px solid var(--border);
    position:fixed; top:0; left:0; height:100vh; overflow-y:auto; z-index:100 }
  .sidebar-logo { padding:24px 20px 16px; font-size:22px; font-weight:900;
    color:var(--accent); letter-spacing:-1px }
  .sidebar-logo span { color:var(--muted); font-size:11px; font-weight:400;
    display:block; letter-spacing:.5px }
  .nav-section { padding:8px 12px 4px; font-size:11px; font-weight:700;
    color:var(--muted); text-transform:uppercase; letter-spacing:.9px; margin-top:8px }
  .nav-item { display:flex; align-items:center; gap:10px; padding:10px 16px;
    border-radius:10px; margin:2px 8px; color:var(--muted); font-weight:500; transition:.15s }
  .nav-item:hover { background:var(--card); color:var(--text) }
  .nav-item.active { background:#3b82f618; color:var(--accent); font-weight:600 }
  .nav-item svg { width:18px; height:18px; flex-shrink:0 }
  .sidebar-foot { margin-top:auto; padding:16px; border-top:1px solid var(--border) }

  .main { margin-left:var(--sidebar-w); padding-bottom:0 }
  .bottom-nav { display:none }
  .fab { display:none }

  .topbar { padding:0 28px; height:60px }
  .topbar-title { font-size:20px }
  .content { padding:28px }

  .stat-grid { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px }
  .photo-grid { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)) }
  .vpc-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)) }

  .mobile-list { display:none }
  .desktop-table { display:block }
  .modal-backdrop { display:none }
  .modal-backdrop.open { display:flex }

  .sheet { max-width:540px; left:50%; right:auto; transform:translateX(-50%) translateY(100%); border-radius:20px; bottom:20px }
  .sheet.open { transform:translateX(-50%) translateY(0) }
}

/* ─── LEAFLET DARK THEME ─────────────────────────────── */
.leaflet-container { background:#0B1120; font-family:'Inter',sans-serif }
.leaflet-control-zoom { border:none !important; box-shadow:0 4px 20px #00000088 !important; border-radius:12px !important; overflow:hidden }
.leaflet-control-zoom a { background:var(--card) !important; color:var(--text) !important; border:1px solid var(--border) !important; width:38px !important; height:38px !important; line-height:38px !important; font-size:18px !important }
.leaflet-control-zoom a:hover { background:var(--card2) !important }
.leaflet-control-zoom-in  { border-bottom:1px solid var(--border) !important }
.leaflet-bar a:first-child { border-radius:12px 12px 0 0 !important }
.leaflet-bar a:last-child  { border-radius:0 0 12px 12px !important }
.leaflet-control-attribution { background:#00000099 !important; backdrop-filter:blur(4px); color:var(--subtle) !important; font-size:9px !important; border-radius:8px 0 0 0 !important; padding:3px 8px !important }
.leaflet-control-attribution a { color:var(--muted) !important }
.leaflet-popup-content-wrapper { background:var(--card) !important; border:1px solid var(--border) !important; border-radius:14px !important; box-shadow:0 8px 28px #00000099 !important; padding:0 !important; color:var(--text) !important }
.leaflet-popup-content { margin:0 !important; padding:0 !important }
.leaflet-popup-tip { background:var(--card) !important }
.leaflet-popup-close-button { color:var(--muted) !important; font-size:18px !important; top:6px !important; right:10px !important }
.leaflet-popup-close-button:hover { color:var(--text) !important }

/* ─── VEHICLE INFO CARD (floating) ───────────────────── */
.mvc { position:absolute; bottom:0; left:0; right:0; z-index:400;
  padding:12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events:none }
.mvc-card { background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:14px 16px; display:flex; align-items:center; gap:12px;
  box-shadow:0 -4px 20px #00000066; pointer-events:all;
  transform:translateY(120%); transition:.3s cubic-bezier(.4,0,.2,1) }
.mvc-card.show { transform:translateY(0) }
.mvc-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:2px }
.mvc-info { flex:1; min-width:0 }
.mvc-name { font-weight:700; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.mvc-meta { font-size:12px; color:var(--muted); margin-top:3px }
.mvc-close { background:none; border:none; color:var(--muted); font-size:20px; cursor:pointer; padding:4px }

/* ─── MAP PAGE: zero padding ─────────────────────────── */
.map-page .content { padding:0 }
#map.edge { border-radius:0; height:calc(100dvh - 56px - calc(60px + env(safe-area-inset-bottom))) }

/* Map recenter btn */
.map-recenter-btn { position:absolute; right:12px; bottom:calc(12px + 60px + env(safe-area-inset-bottom) + 80px);
  z-index:400; width:44px; height:44px; background:var(--card); border:1px solid var(--border);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:20px; box-shadow:0 4px 16px #00000066 }
.map-recenter-btn:active { transform:scale(.9) }

@media(min-width:768px){
  #map.edge { border-radius:var(--radius); height:calc(100vh - 90px) }
  .mvc { padding:16px }
  .map-recenter-btn { bottom:80px; right:16px }
}
