/* --- 1. Mise en page de la carte --- */
.fmp-map-container {
    width: 100%;
    height: 700px; /* Valeur par défaut, surchargée par Elementor */
    margin: 0 auto;
    position: relative;
}

.fmp-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}

/* --- 2. Styles des Popups (Ton design) --- */

/* Le fond global de la bulle Leaflet */
.leaflet-popup-content-wrapper {
    background: #FCF0DA !important;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

/* La petite flèche en bas de la bulle */
.leaflet-popup-tip {
    background: #FCF0DA !important;
}

/* Conteneur interne */
.fmp-popup {
    font-family: 'Rubik', sans-serif; /* Ajout de sans-serif par sécurité */
    background: #FCF0DA;
    padding: 5px;
}

.fmp-popup h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #225C54;
    line-height: 1.2;
}

.fmp-popup p {
    margin: 0 0 10px 0; /* Un peu d'espace avant le bouton */
    font-size: 14px;
    color: #BF211E;
}

.fmp-popup a {
    display: inline-block;
    background: #BF211E;
    color: #FCF0DA !important; /* Important pour surcharger les liens du thème */
    margin-top: 5px;
    padding: 6px 12px;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s ease;
    text-align: center;
}

.fmp-popup a:hover {
    background: #225C54;
    color: #FCF0DA !important;
}

.leaflet-bar a {
	background-color: #fcf0da;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: #bf211e;
	}

/* --- 3. Responsive (Mobiles) --- */
@media (max-width: 768px) {
    .fmp-map-container {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .fmp-map-container {
        height: 400px;
    }
}

/* --- 4. Correctifs Elementor --- */
.elementor-widget-full_map_producteurs {
    width: 100%;
}

/* Permet d'interagir avec la carte même dans l'éditeur Elementor */
.elementor-editor-active .fmp-map {
    pointer-events: all;
}