/* Protège la carte des styles typographiques du thème (.editor img, etc.)
   Ex. : `.editor img:first-child { margin-top: .4375rem }` décalait la 1re tuile Leaflet. */
#carte img,
#carte .leaflet-tile {
    margin: 0 !important;
    max-width: none !important;
    float: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Le thème met `svg { max-width:100% }` : dans un pane Leaflet (largeur 0),
   le SVG des markers collapse à 0 → sites invisibles après éclatement d'un cluster. */
#carte svg {
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
}

/* Popups : neutralise les styles de table du thème (.editor table) qui rendent
   le popup plus haut que la carte -> il etait coupe / hors champ. */
#carte .leaflet-popup-content {
    max-height: 300px;
    overflow-y: auto;
    margin: 12px 16px;
}
#carte .leaflet-popup-content table {
    margin: 0 !important;
    width: auto !important;
    border-collapse: collapse !important;
    display: table !important;
}
#carte .leaflet-popup-content tr {
    border: none !important;
    display: table-row !important;
}
#carte .leaflet-popup-content th,
#carte .leaflet-popup-content td {
    all: unset;
    display: table-cell !important;
    padding: 3px 8px !important;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    text-align: left;
    vertical-align: top;
}
#carte .leaflet-popup-content th {
    font-weight: 600;
    white-space: nowrap;
}
