#interactive-map-container .e-con-inner {
    max-width: none;
}

#interactive-map-component {
    position: relative;
    height: 550px;
    width: 100%;
    overflow: hidden;
}

#interactive-map {
    height: 100%;
    width: 100%;
    background-color: var(--blue-icon);
}

#interactive-map-title {
    display: none;
}

/* Marqueurs */
.custom-marker {
    background-color: var(--yellow);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--yellow);
}

.marker-cluster-small {
    background-color: var(--yellow-semi-transparent);
}

.marker-cluster-small div {
    background-color: var(--yellow-bar);
}

/* Contrôles Leaflet */
.leaflet-control-container .leaflet-bottom.leaflet-right {
    bottom: 10%;
    right: 10%;
}

.leaflet-control-container .leaflet-bottom.leaflet-right .leaflet-bar {
    border: white 1px solid;
    border-radius: 12px;
    width: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--blue-icon);
}

.leaflet-control-container .leaflet-bottom.leaflet-right .leaflet-bar a {
    color: var(--white);
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10px;
    background: var(--blue-icon);
}

.leaflet-control-container .leaflet-bottom.leaflet-right .leaflet-bar a:first-of-type {
    border-bottom: 1px solid white;
}

.leaflet-control-container .leaflet-control-attribution {
    display: none;
}

/* Plugin Search */

.leaflet-control-container .leaflet-top.leaflet-right {
    top: 10%;
    right: 10%;
}

.leaflet-container .leaflet-control-search {
    border-radius: 100px;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    overflow: visible;
}

.leaflet-control-search .search-input {
    border: none;
    padding: 8px 12px;
    outline: none;
    background: white;
    font-size: var(--font-size-16);
    color: var(--black);
    flex: 1;
    order: 1;
}

.leaflet-control-search .search-tooltip {
    font-size: var(--font-size-14);
    box-shadow: none;
    border-radius: 4px;
}

.leaflet-control-search .search-tooltip .search-tip {
    margin-right: 10px;
    font-family: "Barlow";
    background: var(--white);
}

.leaflet-control-search .search-button {
    border: none;
    font-size: var(--font-size-16);
    border-radius: 100px;
    background: url("/wp-content/themes/oceanwp-child-theme/assets/images/icon-search.webp") no-repeat center center;
    background-size: 15px 15px;
    flex-shrink: 0;
    order: 2;
}

/* Bloque l'effet hover par défaut du bouton de recherche */
.leaflet-control-search:hover .search-button {
    border: none;
    font-size: var(--font-size-16);
    border-radius: 100px;
    background: url("/wp-content/themes/oceanwp-child-theme/assets/images/icon-search.webp") no-repeat center center;
    background-size: 15px 15px;
}

/* Filtres personnalisés */
#interactive-filters-btn {
    position: absolute;
    bottom: 15%;
    left: 15%;
    z-index: 2;
    background: var(--white);
    border: none;
    padding: 0px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#interactive-filters-btn:hover {
    background: var(--grey-100);
}

.filters-panel {
    position: absolute;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 3;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.filters-panel.open {
    left: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--blue-icon, #2c3e50);
    color: var(--white);
}

.filters-header h4 {
    margin: 0;
    font-size: var(--font-size-20);
    font-weight: bold;
    color: var(--white);
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: var(--font-size-26);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.filters-content {
    padding: 20px;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-title {
    margin: 0 0 12px 0;
    font-size: var(--font-size-14);
    font-weight: 600;
    text-transform: uppercase;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    font-size: var(--font-size-16);
    color: var(--grey-600);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 1px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked+.checkmark {
    background-color: var(--blue-icon, #2c3e50);
    border-color: var(--blue-icon, #2c3e50);
}

.checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    color: var(--white);
    font-size: var(--font-size-14);
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-apply,
.btn-reset {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-16);
}

.btn-apply {
    background: var(--blue-icon, #2c3e50);
    color: var(--white);
}

.btn-reset {
    background: #ecf0f1;
    color: #2c3e50;
}

.filters-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

a.leaflet-container a.leaflet-popup-close-button {
    top: 5px;
    right: 5px;
    color: var(--white);
}

/* ---------------------------------------------------------------- */
/* ---------------------- Popup personnalisé ---------------------- */
/* ---------------------------------------------------------------- */

/* Container principal de la popup */

.project-popup {
    width: 400px;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 400px;
    height: 250px;
    z-index: 3;
}

.project-data {
    overflow-y: auto;
    padding: 10px;
    max-height: 440px;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    border-radius: 6px;
    font-family: "Barlow", sans-serif;
    width: fit-content;
    height: fit-content;
}

.leaflet-popup-tip {
    background: var(--blue-icon);
    border: 2px solid var(--blue-icon);
}

/* Bouton de fermeture amélioré */
.leaflet-container a.leaflet-popup-close-button {
    top: 11px;
    right: 11px;
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 3;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Structure existante de la popup */
.project-popup {
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    color: #333;
    background: var(--white);
    border-radius: 6px;
    overflow: visible;
}

/* Titre avec fond coloré */
.project-popup h4 {
    margin: 0;
    padding: 12px 14px;
    background: var(--blue-icon-light);
    color: var(--white);
    font-size: var(--font-size-16);
    font-weight: 600;
    line-height: 1.2;
}

/* Description améliorée */
.project-popup p {
    margin: 0 0 8px 0;
    padding: 8px 8px 0 8px;
    font-size: var(--font-size-13);
    line-height: 1.3;
    color: #666;
    padding-bottom: 12px;
}

/* Conteneurs d'attributs - plus compacts */
.project-popup div[style*="margin: 8px 0"] {
    margin: 8px 0;
    padding: 0 14px;
    line-height: 1.2;
}

/* Labels d'attributs - inline avec le contenu */
.project-popup strong {
    font-size: var(--font-size-11);
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 6px;
    display: inline;
}

.project-popup .contact-buttons {
    padding: 8px 0px;
    border-top: 1px solid #eee;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.project-popup .contact-buttons a {
    display: flex !important;
    align-items: center !important;
    margin-right: 10px;
    font-size: 14px !important;
    text-decoration: none !important;
    color: var(--grey-600) !important;
}

.project-popup .contact-buttons a:hover {
    background-color: none !important;
    border: none !important;
    color: var(--blue-icon) !important;
}

.project-popup .contact-buttons i {
    position: relative;
    top: 2px;
}

/* Tags d'attributs - plus petits et compacts */
.attributs {
    display: inline-block;
    padding: 2px 5px;
    background: var(--yellow-bar);
    font-weight: 500;
    vertical-align: middle;
    margin: 2px 6px 2px 0px;
}


/* Zone de liens (footer) - plus compacte */
.project-popup div[style*="margin: 10px 0 0 0"] {
    margin: 0;
    padding: 10px 14px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Liens d'action principaux - plus compacts */
.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: var(--font-size-11);
    font-weight: 500;
    color: var(--white);
    background: var(--blue-icon);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid var(--blue-icon);
    white-space: nowrap;
}

.popup-link:hover {
    background: #34495e;
    border-color: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.popup-link img {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.popup-link:hover img {
    transform: translateX(2px);
}

/* Liens secondaires - plus compacts */
.project-popup a[href^="mailto:"],
.project-popup a[href^="http"]:not(.popup-link) {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    font-size: var(--font-size-11);
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.project-popup a[href^="mailto:"]:hover,
.project-popup a[href^="http"]:not(.popup-link):hover {
    color: var(--blue-icon);
    background: rgba(44, 62, 80, 0.05);
    border-color: rgba(44, 62, 80, 0.1);
}

#interactive-map-component .leaflet-popup-tip-container {
    display: none;
}

/* Responsive - encore plus compact sur mobile */
@media (max-width: 768px) {
    .leaflet-popup-content {
        min-width: 220px;
        max-width: 240px;
    }

    .project-popup h4 {
        padding: 10px 12px;
        font-size: var(--font-size-14);
    }

    .project-popup p {
        padding: 10px 12px 0 12px;
    }

    .project-popup div[style*="margin: 8px 0"] {
        padding: 0 12px;
    }

    .project-popup div[style*="margin: 10px 0 0 0"] {
        padding: 8px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .popup-link {
        justify-content: center;
    }

    element.style {
        color: var(--white);
    }
}

@media (min-width: 768px) {
    #interactive-map-title {
        display: block;
        position: absolute;
        top: 10%;
        left: 10%;
        z-index: 2;
        color: var(--white);
    }

    #interactive-map-title h3 {
        margin: 0 0 0 40px;
        font-size: var(--font-size-32);
        font-weight: bold;
        text-transform: uppercase;
        color: var(--white);
    }

    #interactive-map-title p {
        margin: 0;
        font-size: var(--font-size-22);
        font-weight: 400;
        color: var(--white);
    }
}