﻿/* SVX Visitor Map CSS (Leaflet) — FINAL (dark-tinted tiles + SVX-safe overrides) */

.svx-visitmap{
  width:100%;
  background:#000;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:8px;
  overflow:hidden;
}

/* ==========================================================
   CRITICAL OVERRIDES
   Your theme has strong image rules like:
   #svx-feed img { max-width:100% !important; }
   table[width="800"] img { height:auto !important; }
   These break Leaflet tiles. We must beat the ID selector.
   ========================================================== */

#svx-feed .svx-visitmap img.leaflet-tile,
#svx-feed .svx-visitmap .leaflet-pane img,
.svx-visitmap img.leaflet-tile,
.svx-visitmap .leaflet-pane img{
  max-width: none !important;
  max-height: none !important;
  width: 256px !important;
  height: 256px !important;
}

/* Darken the base map to match SVX (no external dark tiles needed) */
#svx-feed .svx-visitmap .leaflet-tile-pane,
.svx-visitmap .leaflet-tile-pane{
  filter: brightness(0.85) contrast(1.15) saturate(0.85);
}

/* Leaflet container base */
.svx-visitmap .leaflet-container{
  background:#000;
}

/* Popups: match dark theme */
.leaflet-popup-content-wrapper{
  background:#000;
  color:#fff;
  border-radius:6px;
  box-shadow:none;
  border:1px solid rgba(255,255,255,0.15);
}
.leaflet-popup-tip{ background:#000; }
.leaflet-popup-content{
  margin:8px 10px;
  font-size:12px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Optional: slightly soften the control focus outline if any browser adds it */
.svx-visitmap *:focus{ outline: none; }
