/**
 * Lassarat Map — France modal
 *
 * Standalone stylesheet so the existing lassarat-map.css doesn't need to
 * be hand-merged. Loaded after lassarat-map.css (see wp_register_style
 * dependency in lassarat-map.php).
 */

.lassarat-map-wrap {
    position: relative;
}

.leaflet-container {
    background: transparent !important;
}
.lassarat-map-france-canvas {
    backdrop-filter: blur(5px);
}

.lm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lm-modal[hidden] {
    display: none;
}

.lm-modal__overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(20, 24, 22, 0.15); */
}

.lm-modal__panel {
    position: relative;
    width: min(720px, 100%);
    height: min(720px, 100%);

    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
}

.lm-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #343534;
}

.lm-modal__close:hover,
.lm-modal__close:focus-visible {
    background: #fff;
}


.lm-modal:not([hidden]) {
    animation: lm-modal-fade 0.25s ease;
}

.lm-modal:not([hidden]) .lm-modal__panel {
    animation: lm-modal-pop 0.25s ease;
}

@keyframes lm-modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lm-modal-pop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* @media (prefers-reduced-motion: reduce) {
    .lm-modal:not([hidden]),
    .lm-modal:not([hidden]) .lm-modal__panel {
        animation: none;
    }
} */







/* .lm-marker[data-category="intervention"] {
    animation: lm-marker-pulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes lm-marker-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
} */

/* @media (prefers-reduced-motion: reduce) {
    .lm-marker[data-category="intervention"] {
        animation: none;
    }
} */



.lm-marker__ping {
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
    animation: lm-marker-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes lm-marker-ping {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    75%,
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
/* 
@media (prefers-reduced-motion: reduce) {
    .lm-marker[data-category="intervention"] .st5 {
        animation: none;
    }
} */
.lm-marker[data-category="implantation"] {
    transform-box: fill-box;
    transform-origin: center;
    animation: lm-marker-float 3.6s ease-in-out infinite;
}

@keyframes lm-marker-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}








.lassarat-map-france-canvas {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

/* Prevent the page from scrolling behind an open modal */
body.lm-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .lm-modal {
        padding: 0;
    }

    .lm-modal__panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

#CARTE_FRANCE > .st0 {
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.18));
}
@media (min-width: 769px) {
    .lassarat-map-wrap .leaflet-control-zoom {
        display: none !important;
    }
}
