/* МОДАЛКА */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* КОНТЕНТ */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 60vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    touch-action: none;
    transform: translateY(60px) scale(0.95);
    opacity: 0;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

/* bounce анимация */
.modal.active .modal-content {
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes modalBounce {
    0% {
        transform: translateY(80px) scale(0.9);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* КНОПКА */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 40px;
    color: #cf5c22;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000;
}

/* КАРТА */
#map {
    width: 100%;
    height: 100%;
}

.leaflet-attribution-flag {
    display: none;
    width: 0;
    height: 0;
}

/* АДАПТИВ */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        height: 40vh;
    }
}

.leaflet-control-container {
    display: none;
}