.wsl-map{
  width:100%;
  height:280px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
}
.wsl-map.wsl-map--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:#6b7280;
  background:#f8fafc;
}

.wsl-map-note{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(255,255,255,.9);border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;font-size:12px;color:#374151;}
.wsl-map{position:relative;}

/* IMPORTANT (WordPress theme compatibility)
   Many themes apply: img{max-width:100%; height:auto;}
   This breaks Leaflet tiles and can cause a gray map.
*/
.wsl-map .leaflet-container img{max-width:none !important;max-height:none !important;}
.wsl-map .leaflet-tile{display:block !important;}


/* Fix theme/overlay interference with Leaflet controls */
.wsl-map { position: relative; z-index: 10; pointer-events: auto !important; }
.wsl-map .leaflet-container { pointer-events: auto !important; }
.wsl-map .leaflet-pane,
.wsl-map .leaflet-control-container { pointer-events: auto !important; z-index: 30; }
.wsl-map .leaflet-top,
.wsl-map .leaflet-bottom { pointer-events: none; }
.wsl-map .leaflet-control { pointer-events: auto !important; }
.wsl-map .leaflet-control-zoom a { pointer-events: auto !important; cursor: pointer !important; }


/* ================================
   WSL Modal Close (X) Button — Always Blue
   ================================ */

.wsl-modal .wsl-modal-close,
.wsl-modal [data-wsl-close],
.wsl-modal .modal-close,
.wsl-modal button.close,
.wsl-modal .close {
  background: #1e73e8 !important;
  color: #ffffff !important;
  border: 0 !important;
  opacity: 1 !important;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .2s ease-in-out, opacity .2s ease-in-out;
}

.wsl-modal .wsl-modal-close:hover,
.wsl-modal [data-wsl-close]:hover,
.wsl-modal .modal-close:hover,
.wsl-modal button.close:hover,
.wsl-modal .close:hover {
  background: #4a90ff !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.wsl-modal .wsl-modal-close:focus,
.wsl-modal [data-wsl-close]:focus,
.wsl-modal .modal-close:focus,
.wsl-modal button.close:focus,
.wsl-modal .close:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wsl-modal .wsl-modal-close svg,
.wsl-modal [data-wsl-close] svg,
.wsl-modal .modal-close svg,
.wsl-modal button.close svg,
.wsl-modal .close svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.wsl-map{background:#f8fafc;}
.wsl-map svg{display:block;width:100%;height:100%;}
.wsl-map image{max-width:none !important;height:auto !important;}


.wsl-map-controls{
  position:absolute;
  top:12px;
  right:12px;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.wsl-map-zoom{
  width:38px;
  height:38px;
  border:1px solid #d1d5db;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:24px;
  line-height:1;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.wsl-map-zoom:hover{background:#fff;border-color:#9ca3af;}
.wsl-map-zoom:focus{outline:none;box-shadow:0 0 0 3px rgba(30,115,232,.18),0 6px 18px rgba(0,0,0,.12);}


/* County map visible marker overlay. This is intentionally HTML-based so theme SVG/CSS rules cannot hide dots. */
.wsl-map .wsl-map-html-points{position:absolute;inset:0;z-index:35;pointer-events:none;}
.wsl-map .wsl-map-html-dot{position:absolute;width:18px;height:18px;border-radius:999px;border:3px solid #fff;box-shadow:0 2px 8px rgba(15,23,42,.38);transform:translate(-50%,-50%);pointer-events:auto;display:block;text-indent:-9999px;overflow:hidden;padding:0;margin:0;}
.wsl-map .wsl-map-html-dot.is-listing{background:#f97316;}
.wsl-map .wsl-map-html-dot.is-event{background:#2563eb;}
.wsl-map .wsl-map-html-dot.is-discount{background:#16a34a;}
.wsl-map button.wsl-map-html-dot{cursor:default;}
.wsl-map a.wsl-map-html-dot{cursor:pointer;}
.wsl-map .wsl-map-svg-dot{pointer-events:auto;}
/* v1.9.574: native county map marker renderer fallback - no D3 dependency required */
.wsl-map .wsl-map-native-tiles img{display:block!important;max-width:none!important;max-height:none!important;width:256px!important;height:256px!important;}
.wsl-map .wsl-map-html-points{position:absolute!important;inset:0!important;z-index:35!important;pointer-events:none!important;}
.wsl-map .wsl-map-html-dot{position:absolute!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;border-radius:999px!important;border:3px solid #fff!important;box-shadow:0 2px 8px rgba(15,23,42,.45)!important;transform:translate(-50%,-50%)!important;pointer-events:auto!important;display:block!important;text-indent:-9999px!important;overflow:hidden!important;padding:0!important;margin:0!important;opacity:1!important;visibility:visible!important;z-index:40!important;}
.wsl-map .wsl-map-html-dot.is-listing{background:#f97316!important;}
.wsl-map .wsl-map-html-dot.is-event{background:#2563eb!important;}
.wsl-map .wsl-map-html-dot.is-discount{background:#16a34a!important;}


/* v1.9.576: native county map panning cursor/touch behavior */
.wsl-map{cursor:grab;touch-action:none;user-select:none;}
.wsl-map.wsl-map--dragging{cursor:grabbing;}
.wsl-map .wsl-map-controls,.wsl-map .wsl-map-controls *{cursor:auto;}
.wsl-map .wsl-map-html-dot{cursor:pointer;}

/* v1.9.577: keep map gestures inside the preview map. */
.wsl-map{overscroll-behavior:contain;touch-action:none;}


/* v1.9.578: dedicated full county map page */
.wsl-county-full-map-page{max-width:1200px;margin:0 auto;padding:18px 14px 28px;}
.wsl-county-full-map-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;}
.wsl-county-full-map-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#2563eb;margin-bottom:4px;}
.wsl-county-full-map-head h1{margin:0;font-size:28px;line-height:1.15;color:#111827;}
.wsl-county-full-map-head p{margin:6px 0 0;color:#6b7280;font-size:14px;}
.wsl-county-full-live-map{height:calc(100vh - 190px);min-height:560px;border-radius:18px;border:1px solid #d1d5db;box-shadow:0 14px 35px rgba(15,23,42,.12);}
@media(max-width:700px){.wsl-county-full-map-head{display:block}.wsl-county-full-map-head .wsl-county-map-btn{display:inline-flex;margin-top:12px}.wsl-county-full-live-map{height:72vh;min-height:420px;border-radius:14px}}


/* v1.9.579: mobile app/full-map touch capture fix */
.wsl-map,
.wsl-map .wsl-map-native-tiles,
.wsl-map .wsl-map-native-tiles img{
  touch-action:none!important;
  -ms-touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-user-drag:none!important;
}
.wsl-map .wsl-map-native-tiles,
.wsl-map .wsl-map-native-tiles img{
  pointer-events:none!important;
}
.wsl-map .wsl-map-controls,
.wsl-map .wsl-map-controls *{
  pointer-events:auto!important;
  touch-action:manipulation!important;
}

/* Build 30: protect WeSoLocal native map tiles from page/theme CSS */
.wsl-map .wsl-map-native-tiles{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  overflow:hidden!important;
  pointer-events:none!important;
  touch-action:none!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.wsl-map .wsl-map-native-tiles img{
  position:absolute!important;
  display:block!important;
  width:256px!important;
  height:256px!important;
  min-width:256px!important;
  min-height:256px!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
  object-fit:fill!important;
}
.wsl-map .wsl-map-html-points{
  z-index:35!important;
}
.wsl-map .wsl-map-zoom-controls{
  z-index:45!important;
}

/* Build 31: preserve native map marker fills after page-specific CSS resets */
.wsl-map .wsl-map-html-dot.is-discount{background:#16a34a!important;}
.wsl-map .wsl-map-html-dot.is-listing{background:#f97316!important;}
.wsl-map .wsl-map-html-dot.is-event{background:#2563eb!important;}

