svg > g > g {
    fill: #369;
    stroke: #fff;
    stroke-width: 1;
    -webkit-transition: all 300ms ease-out 0s;
    -o-transition: all 300ms ease-out 0s;
    transition: all 300ms ease-out 0s;
}

svg > g > g.adm {
    fill: #999;
}


svg > g > g.kontur {
    fill: #ddd;
}

svg > g > g.strelki {
    fill: #f00;
}

svg > g > g.icons,
svg > g > g.ikons,
svg > g > g.kontur,
svg > g > g.walls,
svg > g > g.logo,
svg > g > g.strelki {
    pointer-events: none;
}

svg > g > g:not(.adm):hover {
    fill: #ccd;
}


svg .free {
    fill: #f00;
}


svg.selected > g > g:not(.-active):not(.kontur) {
    fill: #ccc;
}


.-active {
    background: red;
    color: white;
    -webkit-transition: all 500ms ease-in-out 0s;
    -o-transition: all 500ms ease-in-out 0s;
    transition: all 500ms ease-in-out 0s;
}

.-hide {
    display: none;
}


.list {
    display: inline-block;
}


.list-wrap {
    background: #ed2020;
    display: inline-block;
    border-radius: 5px;
    padding: 3px 20px;
}

.list-wrap .title {
    color: #fff;
    display: inline-block;
    padding: 5px 0px;
    padding-right: 20px;
}

.list button {
    outline: none;
    border: none;
    padding: 10px;
    margin: 3px 0;
    color: red;
    background: #fff;
    -box-shadow: 0 1px 0 #ba9000;
}

.list button.-active {
    color: #fff;
    background: #b11414;
}
svg .free-buyers{
    fill: gray;
}


.map-page {
    position: relative;
}
.plan {
    background: rgba(244, 244, 244, 1);
    position: relative;
    min-height: calc(100vh - 114px);
}
.plan-floors__item {
    display: none;
    width: 100%;
}
.plan-floors__item.active {
    display: block;
    height: 100%;
}
.plan-floors__item svg {
    width: 100%;
    height: 100%;
}

.map-page .breadcrumbs {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}
/*
.plan-sidebar {
    position: absolute;
    top: 90px;
    left: calc(50% - 710px);
    overflow: auto;
    max-height: calc(100% - 90px);
    width: 100%;
    max-width: 400px;
    z-index: 10;
}*/
.plan-sidebar {
    position: relative;
    padding-top: 90px;
    margin-left: calc(50% - 710px);
    overflow: auto;
    /* max-height: calc(100% - 90px); */
    width: 100%;
    max-width: 400px;
    z-index: 10;
}
.plan-sidebar .stocks__title {
    padding-bottom: 25px;
}
.plan-sidebar-card {
    padding: 32px;
    background: #ffffff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 16px;
    margin-bottom: 16px;
}
.plan-sidebar-categories {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: auto;
    max-height: 290px;
    gap: 7px;
}
.plan-sidebar-card.active .plan-sidebar-categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.plan-sidebar-categories__item {
    border: 1px solid rgba(235, 235, 235, 1);
    border-radius: 5px;
    font-size: 14px;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px 30px 8px 12px;
    line-height: 120%;
    position: relative;
}
.plan-sidebar-categories__item-color {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 8px;
    top: calc(50% - 8px);
    border-radius: 5px;
}
.plan-sidebar-categories__item:hover {
    color: #e31e24;
    border-color: #e31e24;
}
.plan-sidebar-categories__item.active {
    background: #f4f4f4;
    color: #141212;
    border-color: #f4f4f4;
}

.plan-floor-selector {
    position: absolute;
    top: 90px;
    right: calc(50% - 710px);
    max-height: calc(100% - 90px);
    z-index: 10;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column-reverse;
}
.plan-floor-selector__item {
    color: rgba(168, 168, 168, 1);
    font-size: 14px;
    padding: 0 12px;
    font-weight: 600;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    line-height: 100%;
    cursor: pointer;
    border: 1px solid rgba(216, 216, 216, 1);
    background: #ffffff;
    width: auto;
    height: 42px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
}
.plan-floor-selector__item:nth-child(1){
    border-radius: 0 0 10px 10px;
}
.plan-floor-selector__item:last-child {
    border-radius: 10px 10px 0 0;
}
.plan-floor-selector__item:hover {
    color: rgba(227, 30, 36, 1);
}
.plan-floor-selector__item.active {
    z-index: 5;
    background: rgba(227, 30, 36, 1);
    color: #ffffff;
    border-color: rgba(227, 30, 36, 1);
}

.custom-zoom-controls {
    position: absolute;
    right: calc(50% - 710px);
    max-height: calc(100% - 90px);
    z-index: 10;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    bottom: 100px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.custom-zoom-controls button {
    color: rgba(168, 168, 168, 1);
    font-size: 18px;
    font-weight: 600;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    line-height: 100%;
    cursor: pointer;
    border: 1px solid rgba(216, 216, 216, 1);
    background: #ffffff;
    width: 42px;
    height: 42px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
}
.custom-zoom-controls button:last-child {
    border-radius: 0 0 10px 10px;
}
.custom-zoom-controls button:nth-child(1) {
    border-radius: 10px 10px 0 0;
}
.custom-zoom-controls button:hover {
    z-index: 5;
    color: rgba(227, 30, 36, 1);
}

g.-highlighted {
    fill: #e31e24;
    -webkit-animation: svg_blink 2s linear 0s infinite normal forwards;
    animation: svg_blink 2s linear 0s infinite normal forwards;
}

@-webkit-keyframes svg_blink {
    0% {
        fill: #e31e24;
    }

    50% {
        fill: #ffc4c6;
    }

    100% {
        fill: #e31e24;
    }
}

@keyframes svg_blink {
    0% {
        fill: #e31e24;
    }

    50% {
        fill: #ffc4c6;
    }

    100% {
        fill: #e31e24;
    }
}

.plan-floors {
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-left: 300px;
    box-sizing: border-box;
}

.plan-sidebar-card-head {
    position: relative;
}
.plan-sidebar-card.active .plan-sidebar-card-head {
    margin-bottom: 20px;
}

.plan-sidebar-card-hide {
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    background-image:url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6.66667C1 6.66667 6.33333 1.33334 7 1.33334C7.66667 1.33334 13 6.66667 13 6.66667' stroke='%23141212' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-position: calc(50% + 1px) calc(50% - 1px);
    background-repeat: no-repeat;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}
.plan-sidebar-card.active .plan-sidebar-card-hide {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.plan_sidebar_search {
    position: relative;
    height: 46px;
    width: calc(100% - 70px);
}
.plan_sidebar_search_input {
    width: 100%;
    height: 100%;
    position: relative;
}
.plan_sidebar_search_input input[type="text"] {
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    padding: 8px 28px 8px 46px;
    line-height: 100%;
}
.plan_sidebar_search_input::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%23E31E24' d='m23.706 22.294-5.97-5.97a10.016 10.016 0 1 0-1.413 1.415l5.969 5.969a1 1 0 0 0 1.414-1.414ZM9.999 18a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8Z'/%3E%3C/svg%3E");
    position: absolute;
    top: calc(50% - 10px);
    left: 12px;
    background-size: contain;
}

.plan_sidebar_search_clear {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: none;
}
.plan_sidebar_search_clear:hover path {
    stroke: #e31e24;
}
.plan_sidebar_search.active .plan_sidebar_search_clear {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.plan_sidebar_search_result {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: auto;
    max-height: 290px;
    position: absolute;
    background: #ffffff;
    z-index: 10;
    top: calc(100% + 20px);
    width: 100%;
}
.plan_sidebar_search.active+.plan_sidebar_search_result {
    height: 290px;
}
.plan-sidebar-card.active .plan_sidebar_search_result {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.plan_sidebar_search_result_item {
    cursor: pointer;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 10px 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(244, 244, 244, 1);
    gap: 16px;
    padding-right: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.item_floor {
    width: 52px;
    height: 52px;
    background: rgba(255, 233, 231, 1);
    border-radius: 8px;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0 3px;
    box-sizing: border-box;
}
.item_floor b {
    font-weight: 600;
    font-size: 9px;
    line-height: 100%;
    text-align: center;
}
.item_floor span {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
}
.plan_sidebar_search_result_item:hover .item_floor {
    background: #e31e24;
    color: #ffffff;
}
.item_content_name {
    font-weight: 600;
    line-height: 100%;
}
.item_content_category {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    margin-top: 6px;
    color: rgba(168, 168, 168, 1);
}
.plan_sidebar_search_result_item .details-link {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    color: #e31e24;
}
.plan_sidebar_search_result_item .item_content {
    width: calc(100% - 156px);
}

.scheme__card-info-item {
    font-size: 14px;
    font-weight: 400;
}
.room-info .scheme__card-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
}
.room-info .scheme__card-info b {
    margin-bottom: 7px;
    display: block;
}
.scheme__card {
    margin-bottom: 20px;
}

.plan-tooltip {
    z-index: 50;
    background: #ffffff;
    width: 300px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 18px;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
    box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
    font-size: 14px;
}
.plan-tooltip__param {
    margin-bottom: 10px;
    line-height: 120%;
}
.plan-tooltip__param:last-child {
    margin-bottom: 0;
}
.plan-tooltip__param b {
    color: #ff0000;
    margin-right: 8px;
}
.plan-tooltip__param span {
    display: block;
    margin-top: 4px;
}
.plan-tooltip:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #ffffff;
    left: calc(50% - 10px);
    bottom: -12px;
}
.scheme__card-info-item a {
    border-bottom: 1px solid;
}

.scheme__card-logo img {
    border-radius: 8px;
}

.clear_filter {
    position: absolute;
    right: calc(50% - 710px);
    width: 42px;
    height: 42px;
    z-index: 5;
    bottom: 30px;
    border: 1px solid rgba(216, 216, 216, 1);
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    background: #ffffff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.clear_filter path {
    fill: #a8a8a8;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
}
.clear_filter svg {
    width: 20px;
    height: 20px;
}
.clear_filter:hover path {
    fill: #e31e24;
}


@media(max-width: 1439px) {
    .plan-sidebar {
        margin-left: calc(50% - 590px);
    }
    .plan-floor-selector, .custom-zoom-controls {
        right: calc(50% - 590px);
    }
    .clear_filter {
        right: calc(50% - 590px);
    }
}
@media(max-width: 1199px) {
    .plan-sidebar {
        margin-left: calc(50% - 486px);
        max-width: 360px;
    }
    .plan-floor-selector, .custom-zoom-controls {
        right: calc(50% - 486px);
    }
    .clear_filter {
        right: calc(50% - 486px);
    }

}
@media(max-width: 991px) {
    .plan-sidebar {
        width: 100%;
        background: #ffffff;
        margin: 0;
        max-width: 100%;
        padding-top: 32px;
        overflow: visible;
    }
    .plan-sidebar .stocks__title {
        max-width: 748px;
        margin: auto;
    }
    .plan-sidebar-card {
        max-width: 748px;
        margin: auto;
        padding-left: 0;
        padding-right: 0;
    }
    .plan-floors {
        position: relative;
        height: calc(100vh - 250px);
        padding-left: 0;
    }

    .plan-floor-selector {
        right: 20px;
    }
    .plan-floor-selector__item {
        font-size: 12px;
        height: 34px;
    }
    .plan-floor-selector__item:last-child {
        border-radius: 10px 10px 0 0;
    }
    .plan-floor-selector__item:nth-child(1) {
        border-radius: 0 0 10px 10px;
    }
    .custom-zoom-controls {
        right: 20px;
        bottom: 76px;
    }
    .clear_filter {
        right: 20px;
        bottom: 20px;
    }

    .room-info {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }
    .room-info .scheme__card {
        width: 100%;
        margin-bottom: 12px;
        -webkit-box-shadow: 0 0 16px rgb(0 0 0 / 4%);
        box-shadow: 0 0 16px rgb(0 0 0 / 4%);
        margin-left: 12px;
    }
    .plan_sidebar_search_result {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        border-radius: 0 0 10px 10px;
    }
    .plan_sidebar_search.active+.plan_sidebar_search_result {
        padding: 0 20px 20px 20px;
        height: auto;
        -webkit-box-shadow: 0 6px 8px rgb(0 0 0 / 8%);
        box-shadow: 0 6px 8px rgb(0 0 0 / 8%);
    }


    /*g[class*="st_"] g[class*="st_"], g[class*="st_"] g[class*="st_"] polygon {
        pointer-events: none;
    }*/


}

@media(max-width: 767px) {
    .plan-sidebar {
        padding-left: 20px;
        padding-right: 20px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .plan_sidebar_search {
        width: calc(100% - 56px);
    }

    .plan-sidebar .stocks__title {
        padding-bottom: 0;
    }

    .plan-floor-selector {
        flex-wrap: wrap;
        gap: 6px;
        /* justify-content: center; */
        top: auto;
        right: auto;
        left: 5px;
        bottom: 8px;
        width: calc(100% - 68px);
        flex-direction: row;
    }

    .plan-floor-selector__item {
        border-radius: 10px !important;
        padding: 0 6px;
    }

}

@media(max-width: 575px) {
    .room-info .scheme__card {
        margin: 0;
        border-radius: 0;
        padding: 24px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .custom-zoom-controls {
        bottom: 50px;
        right: 6px;
        top: auto;
    }

    .custom-zoom-controls button {
        width: 38px;
        height: 38px;
    }

    .clear_filter {
        width: 38px;
        height: 38px;
        right: 6px;
        bottom: 6px;
    }

}