/* ============================================================================
   Evotic — Map (/map) · Phase 9 v2
   Leaflet full-screen sous header sticky + FAB post-signal + drawer sheet
   ============================================================================ */

.map-body {
  padding: 0;
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* Header (shared) — re-declared for isolation */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
  box-shadow: var(--shadow-header);
}
.app-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
.app-header-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.app-header-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hdr-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hdr-back:hover { background: var(--skeleton); }
.hdr-back:active { transform: scale(0.92); }

/* Map container fills viewport under fixed header */
.map-container {
  position: absolute;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────
   Leaflet tweaks
   ───────────────────────────────────────────────────────────────── */
.leaflet-container { font-family: var(--font); background: var(--skeleton); }

.leaflet-popup-content-wrapper {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 0;
  /* Dark-mode aware : Leaflet utilise white par défaut, on suit le thème. */
  background: var(--card-bg);
  color: var(--text);
}
.leaflet-popup-tip {
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}
.leaflet-popup-content {
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 14px;
  font-weight: 600;
  color: var(--text);
}
.leaflet-popup-content .popup strong { color: var(--primary); font-weight: 900; }
.leaflet-popup-content .popup p { margin: 4px 0; color: var(--text-soft); }

.leaflet-control-zoom a {
  border-radius: var(--r-sm) !important;
  font-family: var(--font) !important;
  font-weight: 900 !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--primary-bg) !important;
  color: var(--primary) !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: var(--card-bg) !important;
  color: var(--text-muted) !important;
  border-radius: var(--r-xs) 0 0 0 !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: var(--primary) !important; }

/* Leaflet popup close (×) — Leaflet par défaut = noir/foncé, invisible en dark. */
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}
.leaflet-popup-close-button:hover { color: var(--text) !important; }

/* ─────────────────────────────────────────────────────────────────
   Page-level FAB (post signal) — bottom-center floating
   ───────────────────────────────────────────────────────────────── */
.page-fab {
  position: fixed;
  left: 50%;
  bottom: max(var(--sp-5), calc(var(--safe-bottom) + var(--sp-4)));
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-primary-lg);
  z-index: 100;
  padding: 0;
  margin: 0;
  transition: transform var(--t-spring), box-shadow var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.page-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  pointer-events: none;
}
.page-fab:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(103, 80, 164, 0.45);
}
.page-fab:active { transform: translateX(-50%) scale(0.94); }

/* Hide post-signal FAB when route panel is open (it overlaps "Démarrer GPS") */
body.has-route-panel .page-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px) scale(0.8);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}

/* ─────────────────────────────────────────────────────────────────
   Drawer + sheet-form (mirror of directory.css v2 for parity)
   ───────────────────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.drawer.open { visibility: visible; opacity: 1; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}
.drawer-card {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  padding: var(--sp-3) var(--sp-5) max(var(--sp-5), calc(var(--safe-bottom) + var(--sp-5)));
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.drawer.open .drawer-card { transform: translateY(0); }
.drawer-handle {
  width: 44px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--skeleton-strong);
  margin: 0 auto var(--sp-3);
}
.drawer-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.01em;
}
.drawer-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.drawer-head-row .drawer-title { flex: 1; }
.drawer-x {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--skeleton);
  color: var(--text-soft);
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.drawer-x:hover { background: var(--skeleton-strong); }
.drawer-x:active { background: var(--red-bg); color: var(--red); transform: scale(0.92); }

.sheet-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.sheet-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sheet-field .auth-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sheet-field .auth-label i { color: var(--primary); font-size: 11px; width: 14px; text-align: center; }
.sheet-field textarea,
.sheet-field input[type="text"],
.sheet-field input[type="file"] {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  resize: vertical;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.sheet-field input::placeholder,
.sheet-field textarea::placeholder { color: var(--text-faint); font-weight: 500; }
.sheet-field textarea:focus, .sheet-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-bg-soft);
  box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.10);
}
.sheet-form .btn { margin-top: var(--sp-2); width: 100%; }
.sheet-form .hint {
  margin: 0;
  padding: 9px 12px;
  background: var(--primary-bg);
  border-radius: var(--r-md);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.sheet-form .hint i { color: var(--primary); flex-shrink: 0; }

.err { color: var(--red); font-size: 13px; font-weight: 600; margin: 0; }

/* ─────────────────────────────────────────────────────────────────
   Route panel (?dest= handler) — fixed bottom card with stats + next step
   ───────────────────────────────────────────────────────────────── */
.map-route-panel {
  position: fixed;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: max(var(--sp-4), calc(var(--safe-bottom) + var(--sp-4)));
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  animation: mrpIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 4px solid var(--primary);
}
@keyframes mrpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mrp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.mrp-dest {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}
.mrp-dest i {
  color: var(--primary);
  font-size: 13px;
}
.mrp-close {
  width: 30px; height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: var(--skeleton);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.mrp-close:hover { background: var(--red-bg); color: var(--red); }
.mrp-close:active { transform: scale(0.92); }

.mrp-stats {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.mrp-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--primary-bg);
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.mrp-stat i { font-size: 10px; }

.mrp-next {
  margin: 0;
  padding: 9px 12px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mrp-next i { color: var(--primary); font-size: 11px; }

/* ─────────────────────────────────────────────────────────────────
   Profile pills (Voiture / Piéton) — Phase 11.1
   ───────────────────────────────────────────────────────────────── */
.mrp-profile-pills {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--skeleton);
  border-radius: var(--r-pill);
}
.mrp-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.mrp-pill i { font-size: 12px; }
.mrp-pill:hover { color: var(--text); }
.mrp-pill.active {
  background: var(--card-bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.mrp-pill:active { transform: scale(0.97); }

/* ─────────────────────────────────────────────────────────────────
   CTA "Démarrer GPS" — Phase 11.1
   ───────────────────────────────────────────────────────────────── */
.mrp-cta-nav {
  margin-top: 4px;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-primary-sm);
  transition: transform var(--t-spring), box-shadow var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.mrp-cta-nav i { font-size: 13px; }
.mrp-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(103, 80, 164, 0.4);
}
.mrp-cta-nav:active { transform: scale(0.97); }

/* ============================================================================
   NAVIGATION OVERLAY — Phase 11.1
   Fullscreen GPS-like mode over /map. Activated by .mrp-cta-nav.
   ============================================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  background: var(--bg);
  transition: opacity var(--t-base), visibility var(--t-base);
  overflow: hidden;
}
.nav-overlay.open {
  visibility: visible;
  opacity: 1;
}
.nav-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ─── HUD top (current maneuver) ─── */
.nav-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: max(var(--sp-3), calc(var(--safe-top) + var(--sp-2))) var(--sp-3) 0;
  pointer-events: none;
}
.nav-instr-card {
  pointer-events: auto;
  background: var(--card-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 4px solid var(--primary);
  animation: navHudIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes navHudIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-primary-sm);
}
.nav-instr-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dist {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.nav-instr {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ─── HUD bottom (speed + ETA + actions) ─── */
.nav-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: var(--sp-3) var(--sp-3) max(var(--sp-4), calc(var(--safe-bottom) + var(--sp-3)));
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.nav-bottom-row {
  pointer-events: auto;
  background: var(--card-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-3) var(--sp-3);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
  width: calc(100% - 0px);
}
.nav-speed-card {
  flex-shrink: 0;
  background: var(--primary-grad);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 6px 14px;
  text-align: center;
  min-width: 76px;
  box-shadow: var(--shadow-primary-sm);
}
.nav-speed-val {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav-speed-unit {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-top: 2px;
}
.nav-eta-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-eta-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dest-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-action-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--skeleton);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.nav-action-btn:hover { background: var(--skeleton-strong); color: var(--text); }
.nav-action-btn:active { transform: scale(0.92); }
.nav-action-btn.muted { background: var(--red-bg); color: var(--red); }

.nav-stop-btn {
  pointer-events: auto;
  border: none;
  background: var(--card-bg);
  color: var(--red);
  font-family: var(--font);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  border: 1.5px solid var(--red-bg);
  transition: background var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.nav-stop-btn:hover { background: var(--red-bg); }
.nav-stop-btn:active { transform: scale(0.97); }
.nav-stop-btn i { font-size: 13px; }

/* ─── User marker (arrow) inside nav-map ─── */
.nav-arrow-marker {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* JS sets --nav-heading: <deg>; */
}
.nav-arrow-marker .nav-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 26px solid var(--primary);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transform: rotate(var(--nav-heading, 0deg));
  transform-origin: 50% 70%;
  transition: transform 0.3s ease-out;
}
.nav-dest-marker-dot {
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(239, 83, 80, 0.55);
}

/* ============================================================================
   Phase 11.6 — Signal markers (category icon + color + verified badge)
   ============================================================================ */
.signal-marker {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  background: var(--cat-color, #616161);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  border: 3px solid #fff;
  transform: rotate(-45deg);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.signal-marker > i { transform: rotate(45deg); }
.signal-marker:hover {
  transform: rotate(-45deg) translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}
.signal-marker-verified {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2E7D32;
  color: #fff;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

/* ============================================================================
   Phase 11.6 — Signal detail drawer (full sheet)
   ============================================================================ */
.signal-detail-drawer .drawer-card {
  max-height: 92vh;
  max-height: 92dvh;
  padding: var(--sp-2) var(--sp-4) max(var(--sp-4), calc(var(--safe-bottom) + var(--sp-4)));
}
.sd-photo-wrap {
  margin: 0 calc(-1 * var(--sp-4)) var(--sp-3);
  background: var(--skeleton);
  overflow: hidden;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.sd-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.sd-cat-badge {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--cat-color, #616161);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-cat-badge i { font-size: 11px; flex-shrink: 0; }
.sd-cat-badge span { overflow: hidden; text-overflow: ellipsis; }
.sd-cat-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sd-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.sd-body {
  margin: 0 0 var(--sp-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.sd-body:empty { display: none; }
.sd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--sp-3);
}
.sd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-soft);
}
.sd-meta-item i { font-size: 10px; color: var(--text-muted); }

.sd-verify {
  margin: 0 0 var(--sp-3);
}
.sd-vote-counts {
  display: flex;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sd-vote-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.sd-vote-confirm { background: #E8F5E9; color: #2E7D32; }
.sd-vote-deny { background: #FFEBEE; color: #C62828; }

/* Comments section */
.sd-comments {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.sd-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--sp-2);
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sd-section-title i { color: var(--primary); font-size: 12px; }
.sd-comments-list {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}
.sd-comments-list li {
  margin: 0 0 var(--sp-2);
  padding: 9px 12px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.45;
}
.sd-comment-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.sd-comment-head strong {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}
.sd-comment-head small {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.sd-comment-body {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}
.sd-comments-list .sd-comments-loading,
.sd-comments-list .sd-comments-empty {
  color: var(--text-muted);
  font-style: italic;
  background: transparent;
  text-align: center;
  padding: var(--sp-2);
}
.sd-comments-err {
  margin: 0 0 var(--sp-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  min-height: 1em;
}
.sd-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sd-comment-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text);
}
.sd-comment-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.10);
}
.sd-comment-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-primary-sm);
  transition: transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.sd-comment-send:hover { transform: translateY(-1px); }
.sd-comment-send:active { transform: scale(0.94); }
.sd-comment-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Verify action buttons (Batch 4 will populate) */
.sd-verify-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.sd-verify-btn {
  flex: 1;
  border: 1.5px solid;
  background: var(--card-bg);
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.sd-verify-btn-confirm { border-color: #2E7D32; color: #2E7D32; }
.sd-verify-btn-confirm:hover { background: #E8F5E9; }
.sd-verify-btn-confirm.voted { background: #2E7D32; color: #fff; }
.sd-verify-btn-deny { border-color: #C62828; color: #C62828; }
.sd-verify-btn-deny:hover { background: #FFEBEE; }
.sd-verify-btn-deny.voted { background: #C62828; color: #fff; }
.sd-verify-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sd-verify-btn:active:not(:disabled) { transform: scale(0.97); }
.sd-verify-hint {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ============================================================================
   Phase 11.6 — Post sheet v2 (photo preview + 12-cat grid)
   ============================================================================ */
.sheet-post-v2 {
  max-height: 92vh;
  max-height: 92dvh;
}
.post-photo-preview {
  position: relative;
  margin: 0 calc(-1 * var(--sp-5)) var(--sp-3);
  background: var(--skeleton);
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.post-photo-preview.has-photo {
  height: 200px;
}
.post-photo-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.post-photo-replace {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.post-photo-replace:hover { background: rgba(0, 0, 0, 0.75); }
.post-photo-replace:active { transform: scale(0.96); }

.post-cat-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signal-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.signal-cat-tile {
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.signal-cat-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cat-color, #616161);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform var(--t-fast);
}
.signal-cat-tile-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.signal-cat-tile:hover {
  border-color: var(--cat-color, var(--primary));
  background: var(--bg-soft);
}
.signal-cat-tile.active {
  border-color: var(--cat-color, var(--primary));
  background: var(--cat-color, var(--primary));
}
.signal-cat-tile.active .signal-cat-tile-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}
.signal-cat-tile.active .signal-cat-tile-label {
  color: #fff;
  font-weight: 800;
}
.signal-cat-tile:active { transform: scale(0.96); }

@media (max-width: 360px) {
  .signal-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Resume nav modal (sessionStorage hand-off after refresh) ─── */
.nav-resume-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: nrmIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nrmIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nrm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}
.nrm-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.22));
  border-top: 4px solid var(--primary);
  animation: nrmCardIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nrmCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nrm-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--sp-3);
  display: inline-block;
}
.nrm-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 var(--sp-2);
  letter-spacing: 0.01em;
}
.nrm-text {
  margin: 0 0 var(--sp-4);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.4;
}
.nrm-text strong { color: var(--text); font-weight: 900; }
.nrm-actions {
  display: flex;
  gap: var(--sp-2);
}
.nrm-btn {
  flex: 1;
  border: none;
  font-family: var(--font);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.nrm-cancel {
  background: var(--skeleton);
  color: var(--text-soft);
}
.nrm-cancel:hover { background: var(--skeleton-strong); color: var(--text); }
.nrm-resume {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: var(--shadow-primary-sm);
}
.nrm-resume:hover { transform: translateY(-1px); }
.nrm-btn:active { transform: scale(0.96); }

/* ============================================================================
   Map POI filter panel (map-pois.js — 2026-05-20)
   Floating bottom-right toggle, expands to checkboxes + radius selector.
   ============================================================================ */
.map-poi-panel {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.map-poi-panel > * { pointer-events: auto; }
.map-poi-toggle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff;
  border: 0;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(103, 80, 164, 0.36), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s ease;
}
.map-poi-toggle:active { transform: scale(0.94); }
.map-poi-body {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: min(280px, calc(100vw - 28px));
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.20), 0 4px 12px rgba(0,0,0,0.08);
  padding: 14px;
  transform-origin: bottom right;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.18s ease;
  /* Hauteur totale clamped pour que le radius reste toujours visible en bas */
  max-height: min(72vh, 540px);
  display: flex;
  flex-direction: column;
}
.map-poi-panel.collapsed .map-poi-body {
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  pointer-events: none;
}
.map-poi-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text, #1C1C2E);
  flex-shrink: 0;          /* Header toujours visible */
}
.map-poi-close {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-muted, #6B6B7A);
  font-size: 16px; padding: 4px 6px;
}
.map-poi-checks {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
  /* Scrollable : prend l'espace restant en flex column de .map-poi-body, le radius
     reste visible en bas (flex-shrink:0 sur radius). */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
}
.map-poi-checks::-webkit-scrollbar { width: 4px; }
.map-poi-checks::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.map-poi-checks::-webkit-scrollbar-track { background: transparent; }
.map-poi-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  /* --cat-bg injecté en JS = pastel clair tinté (vert, rouge, bleu, peach…).
     Toujours clair quel que soit le thème → texte foncé hardcodé pour rester
     lisible aussi en dark mode. var(--text) deviendrait clair → invisible. */
  background: var(--cat-bg, var(--skeleton));
  cursor: pointer;
  transition: background 0.12s ease;
  font-size: 13px; font-weight: 700;
  color: #1C1C2E;
}
.map-poi-check:hover { filter: brightness(0.97); }
.map-poi-check input[type=checkbox] {
  margin: 0;
  accent-color: var(--cat-color, #6750A4);
  width: 16px; height: 16px;
  cursor: pointer;
}
.map-poi-check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cat-color, #6750A4);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.map-poi-check-label { flex: 1; }
.map-poi-radius {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  flex-shrink: 0;          /* Toujours visible (bas du panel) */
}
.map-poi-radius-head {
  font-size: 12px;
  color: var(--text-muted, #6B6B7A);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.map-poi-radius-head strong { color: #6750A4; font-weight: 800; margin-left: auto; }
.map-poi-radius-buttons {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.map-poi-rad-btn {
  background: var(--skeleton);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.map-poi-rad-btn:hover { background: var(--skeleton-strong, var(--border-strong)); }
.map-poi-rad-btn.active {
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff;
  border-color: #6750A4;
  box-shadow: 0 3px 8px rgba(103, 80, 164,0.28);
}

/* POI markers (Leaflet divIcon) */
.poi-marker {
  width: 34px; height: 42px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.poi-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--poi-color, #6750A4);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><path d='M12 0C5.4 0 0 5.4 0 12c0 7.5 12 18 12 18s12-10.5 12-18c0-6.6-5.4-12-12-12z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><path d='M12 0C5.4 0 0 5.4 0 12c0 7.5 12 18 12 18s12-10.5 12-18c0-6.6-5.4-12-12-12z' fill='black'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.poi-marker i {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  margin-top: -8px;
}

/* POI popup — refonte 2026-05-20 : header avec icône carrée + meta + distance */
/* Override Leaflet : élargit le wrapper pour donner du gap autour des boutons */
.leaflet-popup-content-wrapper:has(.poi-popup) {
  padding: 4px;
  border-radius: 14px;
}
.leaflet-popup-content:has(.poi-popup) {
  margin: 16px 18px;
  line-height: 1.4;
}
.poi-popup { font-family: inherit; min-width: 240px; max-width: 280px; }
.poi-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.poi-popup-cat-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
  flex-shrink: 0;
}
.poi-popup-cat-meta {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.poi-popup-cat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.poi-popup-cat-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.poi-popup-dist {
  background: #FFF3E0;
  color: #6750A4;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.poi-popup-dist i { margin-right: 3px; }

.poi-popup-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.poi-popup-loc, .poi-popup-hours {
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}
.poi-popup-loc { color: var(--text-muted); }
.poi-popup-loc i { color: #6750A4; margin-top: 2px; }
.poi-popup-hours { color: #2E7D32; font-weight: 600; }
.poi-popup-hours i { color: #2E7D32; margin-top: 2px; }

.poi-popup-phones {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 0;
}
.poi-popup-phone {
  background: #FFF3E0;
  color: #6750A4;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.15s ease;
}
.poi-popup-phone:hover { background: #FFE0B2; }
.poi-popup-phone i { font-size: 11px; }

.poi-popup-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.poi-popup-itin {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(103, 80, 164,0.32);
  transition: all 0.15s ease;
}
.poi-popup-itin > i { font-size: 15px; color: inherit; }
.poi-popup-itin:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(103, 80, 164,0.42); }
.poi-popup-itin:active { transform: translateY(0); }
/* ★ Avis : bouton secondaire outline (ne pas voler la weight du primary "Itinéraire") */
.poi-popup-avis {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px;
  background: var(--card-bg);
  color: #6750A4;
  border: 1.5px solid #6750A4;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.poi-popup-avis > i { font-size: 13px; color: #FFB300; }
.poi-popup-avis:hover { background: #FFF3E0; }
.poi-popup-avis:active { transform: translateY(1px); }
/* Override Leaflet popup default text-decoration */
.leaflet-popup-content .poi-popup-itin,
.leaflet-popup-content .poi-popup-phone { text-decoration: none; }

/* ============================================================================
   Map extras (refonte 2026-05-20) — search header + satellite toggle + 3-dots menu + biz form
   ============================================================================ */

/* Satellite/normal toggle — symétrique au map-poi-toggle (bottom-left mirror) */
/* .hdr-search-btn dupliqué depuis home.css car map.html ne charge pas home.css */
.hdr-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 10px rgba(103, 80, 164, 0.30);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hdr-search-btn:hover { box-shadow: 0 6px 14px rgba(103, 80, 164, 0.38); transform: scale(1.04); }
.hdr-search-btn:active { transform: scale(0.94); }

/* Même style orange dégradé que .map-poi-toggle pour cohérence UI */
.map-view-btn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  z-index: 700;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff;
  border: 0;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(103, 80, 164, 0.36), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s ease;
}
.map-view-btn:active { transform: scale(0.94); }
/* Indicateur mode satellite actif : petit dot vert top-right */
.map-view-btn.is-satellite::after {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #34D399;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Search row dans map header — hidden par défaut, expand au click sur loupe */
.map-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECECEC;
}
/* Le display:flex ci-dessus écrase l'attribut HTML `hidden` — il faut le restaurer
   avec un sélecteur de plus forte spécificité. Sinon la search reste visible toujours. */
.map-search-row[hidden] { display: none; }
.map-search-results[hidden] { display: none; }
.map-search-row-ic { color: #6750A4; font-size: 14px; }
.map-search-row input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
}
.map-search-row input::placeholder { color: #9CA3AF; }
.map-search-row button {
  background: transparent;
  border: 0;
  color: #6B6B7A;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 15px;
}

/* Search results dropdown */
.map-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 800;
  background: var(--card-bg);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.map-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F5F5F5;
  transition: background 0.12s ease;
}
.map-search-item:hover, .map-search-item:active { background: #FFF8F2; }
.map-search-item:last-child { border-bottom: 0; }
.map-search-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.map-search-meta { flex: 1; min-width: 0; }
.map-search-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.map-search-sub {
  font-size: 12px; color: #6B6B7A; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.map-search-empty {
  padding: 16px;
  text-align: center;
  color: #6B6B7A;
  font-size: 13px;
}

/* Business form sheet — fullscreen-ish */
.biz-sheet { max-height: 90vh; overflow-y: auto; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.biz-intro { font-size: 13px; color: #6B6B7A; margin: 0 0 14px; line-height: 1.45; padding: 0 4px; }
.biz-form { display: flex; flex-direction: column; gap: 14px; padding: 0 4px; }
.biz-field { display: flex; flex-direction: column; gap: 5px; }
.biz-field input, .biz-field select, .biz-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: var(--card-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.biz-field input:focus, .biz-field select:focus, .biz-field textarea:focus {
  border-color: #6750A4;
  box-shadow: 0 0 0 3px rgba(103, 80, 164,0.12);
}
.biz-field input[type=file] {
  padding: 8px;
  font-size: 13px;
}
.biz-field textarea { resize: vertical; min-height: 70px; }
.biz-geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.biz-geo-status {
  font-size: 12px;
  color: #6B6B7A;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.biz-hint { font-size: 11px; color: #6B6B7A; margin: 0; }
.biz-submit { margin-top: 10px; padding: 14px; font-size: 15px; }
.biz-disclaimer {
  font-size: 11px;
  color: #6B6B7A;
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.45;
}
.biz-disclaimer i { color: #6750A4; }
