/* ── Vandeto Map · mod-marker-fix ─────────────────────────────
   Répare le marqueur AdForest qui affiche « Marker » en toutes
   lettres quand le CSS du thème n'est pas chargé.
   Stratégie : neutraliser le texte alternatif + réinjecter un pin
   SVG propre en ::before. Autonome, aucune modif du thème.
   ───────────────────────────────────────────────────────────── */

:root{ --vdm-mfix:#ff1700; }

/* La divIcon AdForest : on la vide de tout fond/texte parasite. */
.leaflet-modern-marker{
  background:none !important;
  border:none !important;
  /* Neutralise l'affichage du texte « Marker » (alt de Leaflet). */
  font-size:0 !important;
  color:transparent !important;
  text-indent:-9999px;
  overflow:visible;
}

/* Pin propre injecté (teinte pilotée par --vdm-mfix via mask). */
.leaflet-modern-marker::before{
  content:'';
  display:block;
  width:32px;height:42px;
  text-indent:0;
  background-color:var(--vdm-mfix,#ff1700);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 42'%3E%3Cpath d='M16 0C7.16 0 0 7.16 0 16c0 12 16 26 16 26s16-14 16-26C32 7.16 24.84 0 16 0z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 42'%3E%3Cpath d='M16 0C7.16 0 0 7.16 0 16c0 12 16 26 16 26s16-14 16-26C32 7.16 24.84 0 16 0z'/%3E%3C/svg%3E") no-repeat center/contain;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.3));
  position:relative;
}
/* Point blanc central du pin. */
.leaflet-modern-marker::after{
  content:'';
  position:absolute;top:9px;left:50%;transform:translateX(-50%);
  width:13px;height:13px;border-radius:50%;
  background:#fff;opacity:.96;
  z-index:1;pointer-events:none;
}

/* Garde-fou générique : tout marqueur Leaflet en image cassée dont
   le texte alternatif « Marker » s'afficherait. On masque le texte
   alt sans casser les marqueurs images valides (qui gardent leur src). */
img.leaflet-marker-icon[alt="Marker"]:not([src]),
img.leaflet-marker-icon[alt="Marker"][src=""]{
  font-size:0;
  color:transparent;
  text-indent:-9999px;
}
