.leaflet-marker-icon {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.page-id-6 p{
    margin-bottom: 5px;
}

.page-id-6 .wp-block-separator{
    margin: 0px 0px;
}

/*PasseJa*/
.leaflet-bottom.leaflet-right{
    display: none;
}


.map-layout {
    display: flex;
    height: 100vh; /* ← plein écran */
}

#map {
    flex: 1;
    position: relative;
    z-index: 1 !important;
}

#map-list {
    height: 100%;
    width: 300px; /* largeur de la colonne droite */
    overflow-y: auto; /* ← seule la liste scrolle */
    padding: 10px;
    background: #f7f7f7;
    border-left: 1px solid #ddd;
}

/* quand on masque la liste */
.map-layout.map-list-hidden .map-list {
  display: none;
}

.map-layout.map-list-hidden .map-list {
  flex: 1 1 100%;
}

.toggle-listing {
  position: absolute;
  z-index: 999999 !important;
  top: 10px;
  right: 10px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
}


.map-item {
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.map-item.active{
    background-color: #d371d28a;
}

.map-item:hover {
    font-size: 14px;
    background: #eef3ff;
}

.map-item-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--wp--preset--color--primary);
}

.map-item-pratique {
    color: var(--wp--preset--color--accent);
    font-style: italic;
}

.map-item-lieux{
    
    color: var(--wp--preset--color--secondary);
}

.map-item-hours {
    font-size: 10px;
    color: var(--wp--preset--color--secondary);
}

.map-item-rdv{
}

.map-item-link {
    display: inline-block;
    color: var(--wp--preset--color--accent);
}

/* Ne surtout pas toucher aux positions, top, left, width ou height ici */
.custom-pin-container {
    display: block;
    width: 100%;
    height: 100%;
}

/* L'image prend simplement la taille du bloc calculé par Leaflet */
.custom-pin-container .pin-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Évite de déformer l'icône */
    display: block;
}

/* Positionne le nombre ACF par-dessus l'image */
.custom-pin-container .pin-number {
    position: relative;
    z-index: 2; /* Passe devant l'image */
    color: #FFFFFF; /* Couleur du texte (à ajuster selon votre pin) */
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-align: center;

    /* C'est ces 3 lignes Flexbox qui forcent le centrage parfait, même pour 1 seul chiffre */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */
    
    /* Sécurité supplémentaire pour le texte */
    text-align: center;
    
    /* Ajustements pour centrer le texte dans la tête de la pin */
    top:-68px;
    left: -18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Optionnel : ajoute une ombre pour lisibilité */
}



@media (max-width: 768px) and (orientation: portrait) {
    .conseil-paysage-mobile {
        display: block;
        background: var(--wp--preset--color--accent); /* Votre vert creusois par exemple ! */
        color: white;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        margin-bottom: 15px;
    }
    .icone-rotation {
        margin-right: 8px;
    }
}
