/* selector */

.selector-flats-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 860/545;
    max-height: 545px;
    /*max-width: 1920px;*/
    /*margin: 0 auto;*/
}

#selector-flats {
    height: inherit;
    position: relative;
    overflow: hidden;
    /*
    max-height: 895px;
    position: relative;
    overflow: hidden;
     */
}

#selector-flats .layer {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.flat-walls.abscover {
    z-index: 10;
    pointer-events: none;
}

.floors {
    display: none;
}
.floors.active {
    display: block;
}


#flat-areas-svg g polygon {
    fill: var(--color-green-light);
    fill-opacity: 0.2;
    transition: 0.4s ease-in-out;
}

#flat-areas-svg g polygon:hover, #flat-areas-svg .flat-areas > g.active polygon {
    cursor: pointer;
    fill-opacity: 0.8;
}

#flat-areas-svg .flat-areas g.status2 polygon,
#flat-areas-svg .flat-areas g.status3 polygon {
    fill: #000;
    fill-opacity: 0.15;
}

#flat-areas-svg .flat-areas g.status2 polygon:hover,
#flat-areas-svg .flat-areas g.status3 polygon:hover {
    cursor: auto;
}


#flat-info {
    position: fixed;
    background-color: var(--color-green-light);
    color: #fff;
    z-index: 13;
    padding: 16px 20px;
    line-height: 1.8;
    opacity: 0;
    pointer-events: none;
    transform: translate(20px, 20px);
    transition: opacity 0.3s;
    /*min-width: 200px;*/
    /*min-height: 130px;*/
    box-sizing: border-box;
    /*display: none;*/
}

#flat-info.show {
    opacity: 1;
    /*display: block;*/
}

#flat-info .name {
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

#flat-info .area {
    white-space: nowrap;
}

#flat-info .price {
    white-space: nowrap;
}

#flat-info .pipe {
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
}

@media screen and (max-width: 900px ) {
    #flat-areas-svg {
        width: 100%;
        height: auto;
    }
}