#content .inner {
    width: 100%;
}

#genplan {
    width: 100%;
    height: 0;
    padding-bottom: 66.7%;
    position: relative;
}

#genplan svg {
    position: absolute !important;
    width: 100%;
    height: 100%;
}

/*#cam1 {*/
/*   opacity: 0 !important;*/
/*    display: none;*/
/*}*/
/*#cam1.hover {*/
/*    opacity: 0.36 !important;*/
/*    display: inline;*/
/*}*/
/*#cam2 {*/
/*    opacity: 0 !important;*/
/*    display: none;*/
/*}*/
/*#cam2.hover {*/
/*    opacity: 0.36 !important;*/
/*    display: inline;*/
/*}*/

/*#cam3 {*/
/*    opacity: 0 !important;*/
/*    display: none;*/
/*}*/


/*#cam3.hover {*/
/*    opacity: 0.36 !important;*/
/*    display: inline;*/
/*}*/


#genplan .trace {
    opacity: 0 !important;
    display: none !important;
}

#genplan .trace.hovered {
    opacity: 0.36 !important;
    display: inline !important;
}

#pos1, #pos2, #pos3, #pos4, #pos5, #pos6, #pos7, #pos20, #pos3_1, #pos6_1, #pos4_1, #pos5_1, #pos9, #pos10 {
    opacity: 0.4 !important;
    cursor: pointer;
}

/*Контуры позиций в БД (IZ-720), цвет задаётся в genplan.php по статусу продаж (IZ-756)*/
#genplan .pos-polygon {
    stroke-opacity: 1;
}

#genplan #pos1, #genplan #pos2, #genplan #pos3 {
    stroke-width: 2.5;
}

#cam-trace, #cam-trace2, #cam-trace3, #cam-trace5, #cam-trace8 {
    display: none;
    transition: .3s all;

}

#cam-group2:hover #cam-trace2, #cam-group:hover #cam-trace-group, #cam-group3:hover #cam-trace3, #cam-group5:hover #cam-trace5, #cam-group8:hover #cam-trace8 {
    display: block;
}

#genplan .inner {
    display: none;
}

.pos-group {
    display: inline-flex;
    position: absolute;
}

.pos-group:hover .pos_info_block, .pos-group.hover .pos_info_block {
    display: flex;
    animation: .5s linear slidein;
    animation-fill-mode: forwards;

}

.pos-group .pos_num {
    width: 47px;
    height: 47px;
    background: #DF282A;
    border: 2px solid #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    color: #FFFFFF;
}

.pos-group.op .pos_num, .pos-group.yk .pos_num {
    background: #df282a;
}

.pos_info_block {
    z-index: 5;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.5);
    background: #FFFFFF;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 35px;
    transform: translateY(-50%);
    display: none;
    opacity: 0;
    transition: .3s all;
}

.pos_img {
    width: 100%;
    height: 150px;
    background: #d8d8d8;
    border-radius: 5px 5px 0px 0;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;

}

.pos_text_block {
    display: flex;
    flex-direction: column;
    padding: 0 13px;
    background: transparent;
    margin-bottom: 16px;
    position: relative;
    height: calc(100% - 150px);
    justify-content: space-between;
    width: 100%;
}

.pos_text_block > div {
    text-align: center;
    margin-bottom: 6px;
}

.pos_status {
    position: absolute;
    background: #F94244;
    border-radius: 2px 0px 0px 2px;
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 500;
    font-size: 11.6364px;
    line-height: 14px;
    padding: 5px 7px;
    top: 11px;
    right: 0;
    color: #FFFFFF;
}

.pos_title {
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    margin: 17px 0 6px 0;
    color: #191919;
}

.pos_address {
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;

    color: #636363;
}

.pos_info {
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 14px;

    color: #191919;
}

.pos_descr {
    position: absolute;
    background: #3396e2e8;
    border-radius: 2px 0px 0px 2px;
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 500;
    font-size: 11.6364px;
    line-height: 14px;
    padding: 5px 7px;
    top: 40px;
    right: 0;
    color: #FFFFFF;
}

.pos_phone a {
    font-family: Fira Sans;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 17px;
    /* identical to box height */


    color: #454545;
}

.link_btn {
    width: 111px;
    height: 23.02px;
    margin: 0 auto;
    background: #59B457;
    border-radius: 1.64444px;
    transition: .3s all;
    margin-top: 15px;
}

.link_btn a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 500;
    font-size: 9.34235px;
    line-height: 11px;
    /* identical to box height */
    text-transform: uppercase;

    color: #FFFFFF;
}

.link_btn:hover {
    background: #469d44;
}

.pos-group.op .link_btn:hover, .pos-group.yk .link_btn:hover {
    background: #2184d0;
}


.pos-group.op .link_btn, .pos-group.yk .link_btn {
    background: #3396E2;
}

.cam_btn {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    left: 10px;
    border-radius: 100%;
    background: red;
    border: 0.785714px solid #FFFFFF;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.cam_btn:before {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url(/i/icon-camhand.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes slidein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.pos_ot {
    left: 35%;
    bottom: 47%;
}

.pos_yk {
    top: 3%;
    left: 28%;
}


.pos1 {
    top: 49.5%;
    left: 18%;
}

.pos2 {
    top: 57.5%;
    left: 27%;


}

.pos3 {
    left: 30%;
    top: 45%;
}

.pos5 {
    top: 37%;
    left: 30%;
}

.pos6 {
    top: 27%;
    left: 32%;
}

.pos {
    content: "";
    display: block;
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid #FFF;
    background-size: cover;
    z-index: 5;
    background-color: #e12325;
    border-radius: 100%;
    cursor: pointer;
    transition: .3s all;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    line-height: 1;
    font-weight: 600;
    color: #FFF;
    font-size: 18px;
}

.pos.other {
    width: 35px;
    height: 35px;
    background-color: #89cfe9;
    background-image: url(/i/svg/webcam.svg);
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    position: absolute;
    cursor: pointer;
}

.pos.other.cam1 {
    left: 37%;
    bottom: 54%;
    width: 25px;
    height: 25px;
    background-size: cover;
}

.pos.other.cam1:hover {
    background-image: url(/i/svg/webcam.svg);
    background-color: #fff;
}

.pos.other.cam2 {
    left: 36%;
    bottom: 43%;
    width: 25px;
    height: 25px;
    background-size: cover;
}

.pos.other.cam2:hover {
    background-image: url(/i/svg/webcam.svg);
    background-color: #fff;
}


.pos.other.cam3 {
    left: 33.5%;
    bottom: 53%;
    width: 25px;
    height: 25px;
    background-size: cover;
}

.pos.other.cam3:hover {
    background-image: url(/i/svg/webcam.svg);
    background-color: #fff;
}


@media screen and (max-width: 1000px) {

    .pos-group .pos_num {
        width: 35px;
        height: 35px;
        font-size: 12px
    }

}

@media screen and (max-width: 740px) {
    .pos.other.cam1 {
        display: none;
    }

    #genplan > .pos-group {
        display: none;
    }

    #genplan .inner {
        display: block;
    }

    .pos-group {
        position: relative;
        top: unset;
        left: unset;
        right: unset;
        bottom: unset;
    }

    .sale_block, .sold-block, .ot_uk_block {
        display: flex;
        flex-wrap: wrap;
        margin-left: -20px;
        justify-content: center;
        margin-bottom: 20px;
        width: 100%;
    }

    /* Отключаю временно заголовок Сданные дома с проданными квартирами */
    .sold-block.sold {
        display: none;
    }

    .sale_title, .sold_title {
        margin-bottom: 15px;
        width: 100%;
        margin-left: 20px;
        font-size: 20px;
        font-weight: 400;
    }

    #genplan {
        padding-bottom: 0 !important;
        height: unset !important;
        display: flex;
        flex-wrap: wrap;
        width: 90% !important;
        margin: 0 auto;
        justify-content: center;
    }

    #genplan svg {
        display: none;
    }

    #genplan image {
        display: none;
    }

    .pos_info_block {
        display: flex;
        position: unset;
        left: unset;
        transform: unset;
        opacity: 1;
        width: 100%;
        box-shadow: 2px 5px 6px 0px rgba(0, 0, 0, 0.5)
    }

    .pos-group .pos_num {
        display: none;
    }

    .pos-group {
        margin-left: 20px;
        margin-bottom: 20px;
        width: calc(33% - 20px);
        min-width: 168px;
    }

    .pos-group:hover .pos_info_block, .pos-group.hover .pos_info_block {
        animation: unset;
    }

    #genplan .pos1 {
        left: auto;
        top: auto;
    }

    #genplan .pos2 {
        left: auto;
        top: auto;
    }

    #genplan .pos3 {
        left: auto;
        top: auto;
    }

    /*.webcams-frame, .webcams-frame2 {*/
    /*    position: absolute;*/
    /*    top: 0% !important;*/
    /*    left: 50% !important;*/
    /*    transform: translate(-50%, 0%);*/
    /*    height: auto !important;*/
    /*    width: 100% !important;*/
    /*}*/
}

@media screen and (max-width: 600px) {


    .sale_title, .sold_title {
        font-size: 30px;
        margin-bottom: 40px;
        line-height: 1.3;
    }

    .sold_title {
        margin-top: 70px;
    }

    .pos-group {
        width: 400px;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 45px;
    }

    .sale_block, .sold-block, .sale_title, .sold_title, .ot_uk_block {
        margin-left: 0;
    }

    .pos_text_block {
        width: 90%;
    }

    .pos_img {
        height: 200px;
        background-size: cover;
        background-position: top;
        background-color: rgba(236, 236, 236, 0.64) !important;
        margin-bottom: 15px;
    }

    .pos_text_block {
        height: auto;
    }

    .pos_address {
        font-size: 15px;
    }

    .pos_info {
        font-size: 15px;
        line-height: 1.3;
    }

    .pos_info br {
        display: none;
    }

    .pos_status {
        font-size: 14px;
    }

    .link_btn {
        width: auto;
        padding: 10px 35px;
        height: auto;
    }

    .pos_text_block > div.link_btn {
        margin-top: 10px;
    }

    .link_btn a {
        font-size: 14px;
    }

    .cam_btn {
        width: 40px;
        height: 40px;
        top: -13px;
    }

}


#cam-trace {
    transition: .3s all;
}

#cam-group:hover #cam-trace {
    display: block;
    opacity: 0.7 !important;
}

#cam-group4:hover #cam-trace4 {
    display: block;
    opacity: 0.7 !important;
}

#cam-trace4 {
    display: none;
}

#cam-group9:hover #cam-trace9 {
    display: block;
    opacity: 0.7 !important;
}

#cam-trace9 {
    display: none;
}

.webcams-frame, .webcams-frame2 {
	display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 50vw;
    max-height: 90%;
    min-width: 320px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid red;
    z-index: 200;
    transition: .3s all;
    z-index: 1010;
}

.webcams-frame.web-open, .webcams-frame2.web-open {
    display: block;
    transition: .3s all;
}

.webcams-frame iframe, .webcams-frame2 iframe {
    width: 100%;
    height: 100%;
}

.close-btn-block {
    border-radius: 100%;
    border: 1px solid red;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.popup_close-btn.frame {
    cursor: pointer;
    font-size: 18px;
    color: #BABABA;
    background: url(/i/svg/cancel.svg) no-repeat center;
    width: 15px;
    height: 15px;
    background-size: 100%;
    padding: 0px 7px;
    transition: all 0.25s ease;
}

.popup_close-btn.frame:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 640px) {
    /*.webcams-frame {*/
    /*    width: 100%;*/
    /*    height: 100%;*/
    /*    top: 0;*/
    /*    left: 0;*/
    /*    padding: 0;*/
    /*}*/

    .webcams-frame iframe {
        margin: 0;
    }
}

@media screen and (max-width: 800px) {
    .uk-img, .sale-img {
        display: none
    }

    .uk-text, .sale-text {
        width: 200px;
        font-size: 15px;
    }
}

@media screen and (max-width: 640px) {


}

@media screen and (max-width: 900px) {
    /*        .pos-info{
                left: -5px;
                bottom: -5px;
            }*/
    .pos {
        width: 30px;
        height: 30px;
        font-size: 95%;
    }

    .pos-number > span {
        display: none;
    }

    .pos.other, .uk-icon, .sale-icon {
        width: 27px;
        height: 27px;
        font-size: 90%;
    }
}

@media screen and (max-width: 900px) {

}

@media screen and (max-width: 560px) {
    #content {
        overflow: hidden;
    }

    #content .inner {
        width: 145%;
    }

    .pos {
        width: 25px;
        height: 25px;
    }

    .pos.other, .uk-icon, .sale-icon {
        width: 20px;
        height: 20px;
        font-size: 80%;
    }


}

@media screen and (max-width: 425px) {
    .pos-group {
        width: 100%;
    }

    .pos_img {
        height: 300px;
    }
}

@media screen and (max-width: 360px) {
    .pos-number {
        font-size: 58%;
    }

    .pos {
        width: 15px;
        height: 15px;
    }

    .uk-icon, .sale-icon {
        width: 15px;
        height: 15px;
        font-size: 40%;
    }
}



