@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.lock {
    position: relative;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    min-height: 100dvh;
    z-index: 9999;
    overflow-y: auto;
    visibility: hidden;
}

.modal.open {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

.modal__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    min-height: 100dvh;
    background-color: rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.modal__container {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    width: 480px;
    max-width: 100%;
}

.modal-map .modal__container {
    width: 840px;
}

.modal__header {
    position: relative;
    padding-bottom: 20px;
    padding-right: 40px;
}

.modal__title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.modal__close {
    position: absolute;
    top: -7px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6L18 18' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.modal__close:hover,
.modal__close:focus {
    opacity: 1;
}

.modal-map__map {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow-y: hidden;
}

.custom-placemark {
    position: relative;
    transform: translate(-20px, -52px);
}

.custom-placemark svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}