﻿.map-div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 32px;
}

#map {
    width: 100%;
    height: 450px;
    pointer-events: none;
}

.map-div:active #map {
    pointer-events: auto;
}

.title-map {
    color: var(--color-black);
    font-family: Inter;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.map-iframe {
    width: 100%;
    height: 350px;
}

.mk-map-view {
    border-radius: 8px;
}

.wrap-map.blur-active:before {
    background: none;
    backdrop-filter:inherit;
}

.buttonSeeMap {
    display: none;
}

.closeMap {
    display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {

    .wrap-scea-map {
        gap: 32px;
    }

    #map {
        height: 250px;
    }

    .map-div {
        width: 100%;
    }

}


@media (max-width: 768px)
 {

    .map-div {
        width: 100% !important;
        margin-right: 0 !important;
        gap: 16px;
    }

    .map-div canvas, .mk-map-node-element, .mk-map-view {
        width: 100% !important;
        height: 200px;
    }

    #map {
        width: 100%;
        height: 200px;
    }

    /* Flou sur le bouton uniquement en mobile */
    .wrap-map.blur-active {
        display: block;
        position: relative;
        overflow: hidden;
    }

    .wrap-map.blur-active::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(1px);
        z-index: 10;
    }

    .wrap-map.blur-active .buttonSeeMap {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 20;
        padding: 16px 28px;
        background: rgba(255,255,255,0.75);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-black);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        pointer-events: auto;
        cursor: pointer;
        text-align: center;
    }

    .wrap-map.blur-active #map {
        pointer-events: none;
        filter: none;
    }

    .wrap-map.fullscreen {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        padding: 0 !important;
        margin: 0 !important;
        animation: fadeIn 0.2s;
    }

    .wrap-map.fullscreen #map {
        width: 100vw !important;
        height: 100vh !important;
        pointer-events: auto !important;
    }

    .wrap-map.fullscreen .closeMap {
        display: block;
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 10001;
        background: rgba(255,255,255,0.8);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 2rem;
        font-weight: bold;
        color: #222;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
        cursor: pointer;
        transition: background 0.2s;
    }

    .wrap-map.fullscreen .closeMap:active {
        background: #f2f2f2;
    }

    /* Quand la map est en plein écran mobile, on masque le bouton "Voir la carte" */
    .wrap-map.fullscreen .buttonSeeMap {
        display: none !important;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }


}