#yandex-map,
.single-object-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f5;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 360px;
    min-height: 360px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f5;
}

.greers-map-zoom,
.greers-map-zoom * {
    height: auto !important;
    box-sizing: border-box;
}

.greers-map-zoom {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 64px !important;
    overflow: visible;
    background: transparent;
    transform: translateY(-50%);
}

.greers-map-zoom button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #444;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.greers-map-zoom button:hover {
    background: #f2f2f2;
}

.single-object-map {
    height: 420px;
}

.greers-balloon {
    position: relative;
    width: 280px;
    max-width: calc(100vw - 60px);
    padding: 18px 42px 18px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.greers-balloon__body {
    font-size: 14px;
    line-height: 1.45;
    color: #2d2d2d;
}

.greers-balloon__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
}

.greers-balloon__meta {
    margin-top: 4px;
    color: #666;
}

.greers-balloon__meta a {
    color: #c62828;
    text-decoration: none;
}

.greers-balloon__meta.greers-balloon__region a,
.greers-balloon__meta.greers-balloon__region a:visited,
.greers-balloon__meta a.greers-balloon__region-link,
.greers-balloon__meta a.greers-balloon__region-link:visited {
    color: #363636;
    text-decoration: none;
}

.greers-balloon__close {
    position: absolute;
    top: 7px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.greers-balloon__close:hover {
    background: #f2f2f2;
    color: #111;
}

.greers-balloon__arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.greers-balloon__arrow:hover {
    background: #a51f1f;
    transform: translateX(2px);
}

.greers-balloon__route {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #c62828;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.greers-balloon__route:hover {
    background: #a51f1f;
    color: #fff;
}

@media (max-width: 767px) {
    #yandex-map,
    .single-object-map {
        height: 360px;
    }

    .contact-map {
        height: 280px;
        min-height: 280px;
    }

    .greers-map-zoom {
        left: 8px;
        height: 60px !important;
    }

    .greers-map-zoom button {
        width: 28px !important;
        height: 28px !important;
    }

    .greers-balloon {
        width: 240px;
        padding: 15px 38px 15px 15px;
    }
}

.block-item-map__map .ymaps-2-1-79-controls__toolbar,
.block-item-map__map .ymaps-2-1-79-controls__toolbar_left,
.block-item-map__map .ymaps-2-1-79-controls__toolbar_right,
.block-item-map__map .ymaps-2-1-79-controls__control_toolbar,
.block-item-map__map .ymaps-2-1-79-controls__control {
    height: auto !important;
}

.block-item-map__map .ymaps-2-1-79-controls-pane {
    pointer-events: none;
}

.block-item-map__map .ymaps-2-1-79-controls__toolbar,
.block-item-map__map .ymaps-2-1-79-controls__toolbar_left,
.block-item-map__map .ymaps-2-1-79-controls__toolbar_right,
.block-item-map__map .ymaps-2-1-79-controls__control_toolbar,
.block-item-map__map .ymaps-2-1-79-controls__control {
    pointer-events: auto;
}

.block-item-map__map .greers-balloon,
.block-item-map__map .greers-balloon__content,
.block-item-map__map .greers-balloon__body,
.block-item-map__map .greers-balloon__title,
.block-item-map__map .greers-balloon__meta,
.block-item-map__map .greers-balloon__route {
    height: auto !important;
}
