/* Container carte */
.fdp-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fafafa;
}

/* Message d'erreur discret */
.fdp-map__error {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 14px; color: #666;
}

/* Popup */
.fdp-popup {
    display: flex;
    flex-direction: row;
    width: 321px;
    height:170px
}
.leaflet-popup-content{margin:0;}
.leaflet-popup-content-wrapper{padding:0;}
.fdp-popup__img img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.fdp-popup__content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.fdp-popup__title {
    font-weight: bold;
    font-size: 19px;
    margin-bottom: 5px;
}

.fdp-popup__desc {
    font-size: 15px;
    flex: 1;
    margin-bottom: 10px;
}

.fdp-popup__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fdp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border-radius: 5px;
    border:solid 1px #f0f0f0;
    text-decoration: none;
    font-size: 14px;
    color: #333;
}
.fdp-icon i{
    color: #333;
}
.fdp-icon:hover{
    background: var( --e-global-color-secondary );
}
.fdp-icon:hover i{
    color: #FFF;
}

.fdp-popup__btn {
    background: var( --e-global-color-secondary );
    color: #fff !important;
    font-weight:bold;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;  /* centre verticalement texte + icône */
    gap: 6px;
}
.fdp-popup__btn:hover {
    background: var( --e-global-color-primary );
}

.fdp-btn__icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle; /* évite que l’image soit coupée */
}
/* Marqueur discret (rendu via L.divIcon) */
.fdp-marker {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var( --e-global-color-secondary );
    border: 1px solid rgba(178, 46, 40,.25);
    box-shadow: 0 0 0 3px rgba(178, 46, 40,.12);
}
.leaflet-marker-icon.fdp-marker:hover {
    box-shadow: 0 0 0 4px rgba(178, 46, 40,.18);
}

/* Clusters sobres (fond clair, contour fin) */
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: #f5f5f6;
    color: #111;
    border: 1px solid #ddd;
    box-shadow: none;
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
    background: transparent;
}

/* Arrondis sur le popup core Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
}
.leaflet-popup-tip {
    border-radius: 2px;
}
