.map-parent {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    z-index: 1;
}
.cmap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f4f5;
    border-radius: 10px;
}
.base-svg {
    z-index: 1;
}
.interactive-svg {
    z-index: 2;
}
.interactive-svg path {
    fill: transparent;
    stroke: #000;
    stroke-opacity: 0;
    cursor: pointer;
}
.interactive-svg path.highlighted {
    stroke: #ee8e51 !important;
    stroke-opacity: 1 !important;
    stroke-width: 3px !important;
    fill-opacity: 0.2 !important;
}
.base-svg, .interactive-svg {
    width: 100%;
    height: 100%;
}
.leaflet-overlay-pane svg.leaflet-image-layer {
    pointer-events: none !important; /* Отключаем события указателя для базового слоя */
}
.leaflet-overlay-pane svg.leaflet-image-layer.interactive-svg, .leaflet-overlay-pane svg.leaflet-image-layer.interactive-svg * {
    pointer-events: auto !important; /* Включаем события указателя только для интерактивного слоя */
}

/* Скрываем стандартную иконку маркера */
.leaflet-marker-icon {
    border: none !important;
    background: transparent !important;
}
/* Дополнительная стилизация подсказки (по желанию) */
.leaflet-tooltip {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.leaflet-marker-icon {
    background: linear-gradient(180deg, #ee8e51 0%, #ff6300 100%) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.3s ease-in-out; /* Добавим плавность изменения прозрачности */
}
.leaflet-marker-icon.hidden {
    opacity: 0; /* Изначально скрываем */
}
.leaflet-marker-icon.visible {
    opacity: 1;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #ee8e51;
    text-align: center;
    color: #ffffff;
    box-shadow: none;
    max-width: 150px;
}
.r_title {
    font-size: 16px;
    font-family: 'Manrope';
    font-weight: bold;
    line-height: 120%;
    margin-bottom: 4px;
}
.r_category {
    font-size: 12px;
    font-family: 'Manrope';
    font-weight: bold;
    line-height: 120%;
    opacity: 0.75;
}
.leaflet-popup-content {
    margin: 8px 12px;
}
circle[id^="marker_"] {
    display: none;
}
/*
        .map_search {
            margin-bottom: 10px;
            display: flex;
        }
        .map_search_input {
            flex-grow: 1;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px 0 0 5px;
        }
        .map_search_clear {
            background-color: #f0f0f0;
            color: #333;
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-left: none;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
        }

        .map_filter {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
        }
        .map_filter_item {
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
            background-color: #f9f9f9;
        }
        .map_filter_item.active {
            background-color: #ee8e51;
            color: white;
            border-color: #ee8e51;
        }*/
.map_floor_switcher {
    display: flex;
    margin-bottom: 10px;
    position: absolute;
    z-index: 600;
    right: 16px;
    top: 134px;
    flex-direction: column;
}
.map_floor_button {
    cursor: pointer;
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    border: 1px solid #D9DEE1;
    transition: 0.2s;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -1px;
}
.map_floor_button:hover {
    color: #ee8e51;
}
.map_floor_button.active {
    background-color: #ee8e51;
    color: white !important;
    border-color: #ee8e51;
}
.map_floor_button:nth-child(1) {
    border-radius: 12px 12px 0 0;
}
.map_floor_button:last-child {
    border-radius: 0 0 12px 12px;
}

.leaflet-popup {
    pointer-events: none;
}
.leaflet-control-container .leaflet-top.leaflet-left {
    left: auto;
    top: 16px;
    right: 16px;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control {
    margin: 0;
    border: none;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in, .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out {
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    font-size: 0;
    border: 1px solid #D9DEE1;
    transition: 0.2s;
    background: #ffffff;
    position: relative;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in {
    border-radius: 12px 12px 0 0;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out {
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in:before, .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: calc(50% - 7px);
    left: calc(50% - 7px);
    transition: 0.2s;
    pointer-events: none;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M7.99939 1L7.99939 15L7.99939 7.99398M7.99939 7.99398L1 7.99398M7.99939 7.99398L15 7.99398" stroke="%23002037" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="2" viewBox="0 0 16 2" fill="none"><path d="M15 1.00586L8.00061 1.00586L1 1.00586" stroke="%23002037" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in:hover:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M7.99939 1L7.99939 15L7.99939 7.99398M7.99939 7.99398L1 7.99398M7.99939 7.99398L15 7.99398" stroke="%23ee8e51" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out:hover:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="2" viewBox="0 0 16 2" fill="none"><path d="M15 1.00586L8.00061 1.00586L1 1.00586" stroke="%23ee8e51" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.gc-pop .tenant__row {
    flex-wrap: wrap;
}
.gc-pop .tenant__row .tenant__content {
    width: 100%;
}
.gc-pop .tenant__row .tenant__content .tenant__image {
    width: 140px;
    margin: 0;
}
.gc-pop .tenant__row .tenant__title h1 {
    font-size: 32px;
}
.gc-pop .tenant__tag {
    font-size: 12px;
}
.gc-pop .tenant__aside {
    width: 100%;
}

.leaflet-popup {
    margin-bottom: 10px;
}
.leaflet-marker-icon {
    pointer-events: none !important;
}


@media (max-width: 1641px) {
    .map-parent {
        padding-bottom: 60%;
    }
}

@media(max-width: 1159px) {

}

@media(max-width: 535px) {
    .container.map_page {
        max-width: 100% !important;
    }
    .tenants__aside {
        max-width: 344px;
        margin: auto;
        width: 100%;
    }
    .map-parent {
        width: calc(100% + 32px);
        margin-left: -16px;
        box-sizing: border-box;
        padding: 0;
        height: 440px;
    }
    .cmap {
        border-radius: 0;
    }
    .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-in, .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control .leaflet-control-zoom-out {
        width: 42px;
        height: 42px;
    }
    .map_floor_button {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    .map_floor_switcher {
        top: 112px;
    }

}