/* ==============================================
   Cartes Leaflet — reprend le rendu des anciennes cartes Google Maps.
   Chargé uniquement sur les pages qui affichent une carte
   (list/layout.blade.php, single/ad.blade.php) via @section('extraCss').
   ============================================== */

/* Neutralise le carré blanc bordé que .leaflet-div-icon peint derrière l'épingle SVG. */
.mfgp-marker {
    background: none;
    border: 0;
}

.leaflet-container {
    font-family: inherit;
    background: #f2f2f2;
}

/* Popup façon InfoWindow Google. Padding symétrique : le contenu est centré,
   la croix se pose au-dessus du padding haut-droit. */
.leaflet-popup-content-wrapper {
    padding: 15px 26px 14px;
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.leaflet-popup-content {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.leaflet-popup-tip {
    background: #fff;
}

.leaflet-container a.leaflet-popup-close-button {
    width: 24px;
    height: 24px;
    padding: 3px 0 0 0;
    font-size: 16px;
    color: #9eaab2;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #234188;
}

/* -- Contenu de la popup --------------------------------------------------
   Tout est posé explicitement : les classes Bootstrap du thème donnaient un
   bouton bleu sur bleu (`.leaflet-container a { color:#0078A8 }`, du CSS de
   Leaflet, l'emporte sur le blanc de `.btn-primary`) et un prix à 7,5px. */
.map-popup {
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    text-align: center;
    white-space: nowrap;
    line-height: 1.35;
}

.map-popup-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #3a464e;
}

.map-popup-meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #838893;
}

/* Reprend le gabarit de `.button` du thème (fond #234188, survol #ee3647).
   Sélecteur avec le nom de balise pour passer devant `.leaflet-container a`. */
.leaflet-popup-content a.map-popup-link {
    display: inline-block;
    margin-top: 11px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #234188;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.15s linear;
}

.leaflet-popup-content a.map-popup-link:hover,
.leaflet-popup-content a.map-popup-link:focus {
    color: #fff;
    background-color: #ee3647;
    text-decoration: none;
}

/* Message « Ctrl + molette pour zoomer », équivalent du gestureHandling Google. */
.site-map-hint {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800; /* au-dessus des panes Leaflet, qui plafonnent à 700 */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: rgba(35, 65, 136, 0.6);
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.site-map-hint.is-visible {
    opacity: 1;
}

.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.75);
}

.leaflet-control-attribution a {
    color: #838893;
}
