:root {
  color-scheme: dark;
  --is-mobile: 0;

  /* Background depth layers */
  --bg-base: #0B0F14;
  --bg-surface: #0F1621;
  --bg-card: #131C2B;
  --bg-elevated: #182235;
  --bg-hover: #1E2A3D;

  /* Brand colors */
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --accent: #2DB978;
  --accent-hover: #4ADE80;

  /* Text hierarchy */
  --text-primary: #E6EDF6;
  --text-secondary: #9FB0C7;
  --text-muted: #6B7C93;
  --text-disabled: #4B5565;
  --text-placeholder: #6B7C93;

  /* Borders */
  --border-subtle: #243041;
  --border-strong: #334155;
  --border-divider: #1F2937;
  --border-focus: #3B82F6;

  /* States */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #06B6D4;

  /* Glass panel recipe */
  --glass-bg: rgba(19, 28, 43, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(14px);

  /* Glows */
  --glow-primary: 0 0 20px rgba(59,130,246,0.30), 0 0 60px rgba(59,130,246,0.10);
  --glow-accent: 0 0 20px rgba(45,185,120,0.30), 0 0 60px rgba(45,185,120,0.10);

  /* Pin colors */
  --pin-rent: #3B82F6;
  --pin-drop: #EF4444;
  --pin-search: #06B6D4;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  overflow: hidden;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

/* dvh fix — accounts for mobile browser chrome (address bar, nav bar).
   100vh on mobile includes browser UI; 100dvh is the actual visible area. */
#root > div {
  height: 100vh;
  height: 100dvh;
}

/* ── Glass panel ─────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  pointer-events: auto;
}

/* ── Search + filter panel ───────────────────────────────────────────────── */
.search-wrapper {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(520px, calc(100vw - 120px));
  pointer-events: auto;
}
.filter-panel-open {
  pointer-events: auto !important;
  z-index: 1001 !important;
}

/* ── Share button label helpers ──────────────────────────────────────────── */
.btn-short-label { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
  outline: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 38px;
  font-size: 13px;
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-icon {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-icon.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--primary-hover);
}

.btn-destructive {
  background: var(--error);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Form elements ───────────────────────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-placeholder);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

/* Force dark background on all select options */
.form-select option,
select option {
  background-color: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
}
select {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ── Pill / chip selectors ───────────────────────────────────────────────── */
.pill-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill-item {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.12s ease;
}
.pill-item:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.pill-item.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: rgba(59,130,246,0.2);
  border-color: var(--primary);
}
.toggle-switch input:checked + .toggle-track::before {
  background: var(--primary);
  transform: translateX(14px);
}

/* ── Rent marker pill ────────────────────────────────────────────────────── */
.rent-pill-marker {
  height: 26px;
  background: rgba(10, 15, 28, 0.93);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 0 0 1px rgba(59,130,246,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rent-pill-marker:hover {
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.65), 0 0 0 1.5px rgba(59,130,246,0.4);
  border-color: rgba(59,130,246,0.5);
}
.rent-pill-marker.high-value {
  background: rgba(30, 10, 10, 0.93);
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 0 0 1px rgba(239,68,68,0.15);
}
.rent-pill-marker.high-value:hover {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 4px 14px rgba(0,0,0,0.65), 0 0 0 1.5px rgba(239,68,68,0.5);
}
.rent-pill-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0 10px;
}

/* ── Help bar button ─────────────────────────────────────────────────────── */
.help-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  height: 32px;
  border-radius: var(--radius-pill);
  padding: 0 14px;
  font-size: 12px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: rgba(167,139,250,0.9);
  box-shadow: 0 0 14px rgba(99,102,241,0.12);
  transition: all 0.15s ease;
}
.help-bar-btn:hover { filter: brightness(1.2); }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes searchPulse {
  0% { transform: translate(-50%,-50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}
.search-pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  border: 2px solid var(--info);
  border-radius: 50%;
  animation: searchPulse 1.6s ease-out infinite;
}

@keyframes searchPulseOuter {
  0%   { transform: translate(-50%,-50%) scale(0.3); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}
@keyframes searchPulseInner {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}
.search-pulse-outer {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  border: 2px solid rgba(6,182,212,0.5);
  border-radius: 50%;
  animation: searchPulseOuter 1.8s ease-out infinite;
}
.search-pulse-inner {
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  border: 2px solid rgba(6,182,212,0.7);
  border-radius: 50%;
  animation: searchPulseInner 1.8s ease-out 0.4s infinite;
}

@keyframes pinDrop {
  0% { transform: translateY(-18px) scale(0.7); opacity: 0; }
  65% { transform: translateY(3px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.pin-drop-anim {
  animation: pinDrop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInBottom {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-8px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.animate-slide-right  { animation: slideInRight  0.25s ease forwards; }
.animate-slide-bottom { animation: slideInBottom 0.22s ease forwards; }
.sheet-enter          { animation: slideUp       0.25s ease forwards; }

@keyframes hintSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hint-banner { animation: hintSlideDown 0.2s ease forwards; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Search input placeholder ────────────────────────────────────────────── */
.search-input::placeholder {
  color: rgba(148, 163, 184, 0.6) !important;
  font-weight: 400;
}
.search-input:focus::placeholder {
  color: rgba(148,163,184,0.4) !important;
}

/* ── Arrondissement label markers ────────────────────────────────────────── */
.leaflet-marker-icon div[style*="148,163,184"] {
  pointer-events: none !important;
}

/* Force crosshair in add-mode — overrides leaflet-grab and leaflet-interactive pointer */
.leaflet-container.cursor-crosshair-mode,
.leaflet-container.cursor-crosshair-mode .leaflet-grab,
.leaflet-container.cursor-crosshair-mode .leaflet-interactive,
.leaflet-container.cursor-crosshair-mode .leaflet-marker-icon,
.leaflet-container.cursor-crosshair-mode * {
  cursor: crosshair !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

/* ── Transit tooltips ────────────────────────────────────────────────────── */
.transit-tooltip {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  box-shadow: var(--glass-shadow) !important;
}
.transit-tooltip::before,
.leaflet-tooltip::before { display: none !important; }
.station-dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.station-tooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}
.station-tooltip::before { display: none !important; }

/* ── Leaflet overrides ───────────────────────────────────────────────────── */
.leaflet-container {
  background: var(--bg-base) !important;
  font-family: inherit;
}
.leaflet-top.leaflet-left {
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 0 !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  margin-left: 10px !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 16px !important;
  background: rgba(15, 22, 40, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.8) !important;
}

.leaflet-control-zoom-in {
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.leaflet-control-zoom-out {
  border-radius: 0 0 8px 8px !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background: rgba(37, 99, 235, 0.3) !important;
  color: white !important;
}
.leaflet-control-attribution {
  background: rgba(8,10,14,0.7) !important;
  color: var(--text-disabled) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }
.leaflet-attribution-flag { display: none !important; }
.leaflet-popup-content-wrapper {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--glass-shadow) !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 16px !important; width: auto !important; }
.leaflet-popup-tip { background: var(--bg-elevated) !important; }
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  top: 8px !important; right: 10px !important;
}
.leaflet-popup-close-button:hover { color: var(--text-primary) !important; }

/* ============================================
   DESKTOP LAYOUT — positioning classes
   ============================================ */

/* --- Lang/theme top-right buttons --- */
.top-right-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Right-side action button stack (desktop base) --- */
.right-button-stack {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 148px;
}

/* --- HelpBar (desktop base) --- */
.help-bar-container {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  white-space: nowrap;
}

/* --- Add Rent Form (desktop base) --- */
.rent-form-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 340px;
  z-index: 1001;
}

/* ============================================
   ICON-ONLY / LABEL TOGGLE (desktop default)
   ============================================ */
.btn-icon-only {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.btn-label {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

/* ============================================
   MOBILE LAYOUT — complete override (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  :root { --is-mobile: 1; }

  /* App uses dynamic viewport height */
  #root > div {
    height: 100dvh !important;
  }

  /* Search bar — full width minus EN button */
  .search-container-wrapper,
  .search-wrapper {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: 72px !important;
    width: auto !important;
    transform: none !important;
    z-index: 1000 !important;
  }

  /* Hide zoom controls on mobile */
  .leaflet-top.leaflet-left {
    display: none !important;
  }

  .leaflet-container {
    height: 100% !important;
  }

  .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 32px) !important;
  }

  /* ---- RIGHT BUTTON STACK: square icon buttons ---- */
  .right-button-stack {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    width: 52px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  /* All direct buttons become squares */
  .right-button-stack > button,
  .right-button-stack > div > button {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    padding: 0 !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: unset !important;
  }

  /* Show icon only on mobile */
  .btn-icon-only { display: inline-flex !important; font-size: 22px !important; }
  .btn-label     { display: none !important; }

  /* Hide desktop logo on mobile */
  .app-logo-wrapper { display: none !important; }

  /* Transit wrapper fits stack width */
  .right-button-stack > div {
    width: 52px !important;
  }

  /* Transit sub-panel — compact */
  .right-button-stack .transit-sub-panel {
    width: 52px !important;
    min-width: unset !important;
    padding: 6px 4px !important;
  }

  .right-button-stack .transit-sub-panel button {
    height: 28px !important;
    min-height: unset !important;
    padding: 0 !important;
    font-size: 10px !important;
    gap: 4px !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }

  /* ---- HELPBAR: move up from bottom ---- */
  .help-bar-container {
    position: absolute !important;
    bottom: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1002 !important;
    white-space: nowrap !important;
  }

  .help-bar-pill {
    font-size: 12px !important;
  }

  .help-left-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }

  .help-right-link {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }

  /* ---- HINT BANNER ---- */
  .hint-banner {
    top: 72px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* ---- RENT FORM: slide up from bottom ---- */
  .rent-form-panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 1001 !important;
  }

  /* ---- MISC ---- */
  .rent-pill-marker {
    height: 22px !important;
    border-radius: 11px !important;
    min-width: 44px;
  }

  .rent-pill-text {
    font-size: 11px !important;
  }

  .transit-sub-panel {
    min-width: 120px;
  }
}

/* ============================================
   VERY SMALL PHONES (< 390px)
   ============================================ */
@media (max-width: 390px) {
  .right-button-stack {
    right: 6px !important;
  }

  .help-left-btn,
  .help-right-link {
    padding: 5px 8px !important;
    font-size: 10px !important;
  }
}

/* ============================================
   WELCOME MODAL — small screens
   ============================================ */
@media (max-width: 480px) {
  .welcome-modal-card {
    padding: 18px 14px 16px !important;
    border-radius: 16px !important;
  }
}

/* ============================================
   SAFE AREA — notched iPhones
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .help-bar-container {
      bottom: max(60px, calc(env(safe-area-inset-bottom) + 44px)) !important;
    }

    .rent-form-panel {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}

/* ============================================
   STATS MODAL
   ============================================ */

/* ── Shimmer skeleton ── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stats-skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* ── Modal overlay + container ── */
.stats-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.stats-modal {
  background: #1a1f2e;
  border-radius: 16px;
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  /* overflow: clip preserves border-radius corners without creating a
     scroll/clip context that would cut off Recharts SVG label overflow */
  overflow: clip;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.06);
  animation: statsModalIn 0.2s ease forwards;
}

@keyframes statsModalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.stats-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-divider);
  flex-shrink: 0;
  gap: 12px;
}

.stats-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 28px;
  overscroll-behavior: contain;
}

/* ── Hero cards ── */
.stats-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stats-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stats-hero-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--bg-elevated);
}

/* ── Filter bar ── */
.stats-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 4px;
}

.stats-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.stats-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ── Charts grid ── */
.stats-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats-chart-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 14px 12px;
}

.stats-chart-full {
  grid-column: 1 / -1;
}

/* ── Arrondissement table ── */
.stats-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table thead th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-divider);
  white-space: nowrap;
}

.stats-table tbody tr {
  height: 36px;
  transition: background 0.1s ease;
}

.stats-table tbody tr:nth-child(odd)  { background: var(--bg-surface); }
.stats-table tbody tr:nth-child(even) { background: var(--bg-card); }

.stats-table tbody tr:hover { background: var(--bg-hover); }

.stats-table tbody td {
  padding: 8px 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-divider);
  white-space: nowrap;
}

.stats-table tbody tr:last-child td { border-bottom: none; }

.stats-table tbody tr.stats-row-max td {
  color: var(--error);
  background: rgba(239, 68, 68, 0.08) !important;
}
.stats-table tbody tr.stats-row-max td:first-child { font-weight: 700; }

.stats-table tbody tr.stats-row-min td {
  color: var(--success);
  background: rgba(34, 197, 94, 0.08) !important;
}
.stats-table tbody tr.stats-row-min td:first-child { font-weight: 700; }

/* ── Dual range slider ── */
.dual-range-slider {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 140px;
}

.dual-range-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
}

.dual-range-fill {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.dual-range-input {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}

.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}
.dual-range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }

.dual-range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
  .stats-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .stats-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    animation: statsModalInMobile 0.25s ease forwards;
  }

  @keyframes statsModalInMobile {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .stats-hero-cards {
    gap: 8px;
  }

  .stats-hero-card {
    padding: 14px 12px;
  }

  .stats-hero-card p:first-child {
    font-size: 20px !important;
  }

  .stats-charts-grid {
    grid-template-columns: 1fr;
  }

  .stats-filter-bar {
    gap: 12px 16px;
  }
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
