.new-map {
    position: relative;
}

html.new-map-fullscreen-open,
body.new-map-fullscreen-open {
    overflow: hidden;
}

.new-map__fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94) url(/local/templates/aspro_next/images/svg/full-screen.svg) center/24px 24px no-repeat;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.new-map__fullscreen-btn:hover {
    background-color: #fff;
}

.new-map--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    background: #fff;
}

.new-map.new-map--fullscreen .bx-yandex-view-map,
.new-map.new-map--fullscreen .bx-yandex-map {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
}

.new-map.new-map--fullscreen .new-map__fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
}

#panel ~ div .new-map.new-map--fullscreen .new-map__fullscreen-btn {
    top: 50px;
}

.new-map .ymaps-b-balloon__close {
    background-image: url(/local/templates/aspro_next/components/bitrix/map.yandex.view/new/images/close.svg) !important;
}

.new-map .ymaps-b-balloon {
    padding: 35px 40px;
    background-color: #FBFBFB;
    border-radius: 24px;
    width: 370px !important;
    overflow: hidden;
}

.new-map .ymaps-b-balloon__close {
    right: 10px;
    top: 10px;
    background-position: center;
}

.custom-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background-color: #FBFBFB;
}

.custom-hint__title {
    font-family: 'Golos Text', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    vertical-align: middle;
    text-transform: uppercase;
    color: #444444;
    opacity: 0.75;
}

.custom-hint__body {
    font-family: 'Verdana', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    color: #444444;
}

@media (max-width: 992px) {
    .new-map {
        height: 420px !important;
    }

    .new-map .bx-yandex-view-map,
    .new-map .bx-yandex-map {
        height: 420px !important;
    }

    .new-map__fullscreen-btn {
        display: block;
    }
}

@media (min-width: 993px) {
    .new-map .bx-yandex-view-map,
    .new-map .bx-yandex-map {
        height: 719px !important;
    }

    .new-map__fullscreen-btn {
        display: none;
    }
}

.new-map.new-map--fullscreen,
.new-map.new-map--fullscreen .bx-yandex-view-map,
.new-map.new-map--fullscreen .bx-yandex-map {
    height: 100vh !important;
    height: 100dvh !important;
}

@media (max-width: 767px) {
    .bx-yandex-view-layout.new-map:before {
        content: unset;
    }
}

@media (max-width: 576px) {
    .new-map .ymaps-b-balloon {
        width: 280px !important;
    }
}
