/* Wrapper + filtres */
.ad-dealers-map-wrap { position: relative; z-index: 1; }
.ad-dealers-filters{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.ad-field label{ display:block; font-weight:600; margin-bottom:6px; }
.ad-field select{ width:100%; min-height: 40px; }
#ad-filter-cats{ min-height: 90px; }
.ad-hint{ font-size: 12px; opacity: .7; margin-top: 6px; }
.ad-actions{ display:flex; }
#ad-filter-reset{ height: 40px; padding: 0 14px; cursor: pointer; }

.ad-dealers-map{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Divi/Thèmes: img max-width casse Leaflet */
#ad-dealers-map .leaflet-container img,
#ad-dealers-map img.leaflet-tile,
#ad-dealers-map img.leaflet-marker-icon,
#ad-dealers-map img.leaflet-marker-shadow{
  max-width: none !important;
  max-height: none !important;
}

/* Divi 5 / lazyload : tiles visibles */
#ad-dealers-map img.leaflet-tile,
#ad-dealers-map .leaflet-tile{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* Controls au-dessus */
#ad-dealers-map .leaflet-top,
#ad-dealers-map .leaflet-bottom,
#ad-dealers-map .leaflet-control{
  z-index: 9999 !important;
}

/* Popup scroll */
.ad-popup-wrap{ width: 320px; }
.ad-popup-title{ font-weight: 700; margin-bottom: 6px; }
.ad-popup-meta{ font-size: 12px; opacity: .75; margin-bottom: 8px; }
.ad-popup-body{ max-height: 220px; overflow: auto; padding-right: 8px; }
