

/* Start:/local/components/dmcg/apartment.detail/templates/.default/style.css?177115381310422*/
.section-apartments {
    background: #0E2B42 url("/local/templates/barkli-dan/images/sec_31_bg.png") center top repeat;
    background-size: contain;
    color: #fff;
    padding-top: 125px;
    padding-bottom: 50px;
}

/* === ФОН НА ВСЮ ШИРИНУ === */
.flat-container-bg {
    background: #E7E7E1;
    border-radius: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.flat-container {

    padding: 20px;
    margin: 0 auto;
}

/* === H1 === */
.flat-h1 {
    text-align: center;
    font-size: 36px;
    color: #0F2C47;
    margin-bottom: 8px;
}

.flat-h1-sub {
    text-align: center;
    color: #967A79;
    font-family: "SangBleu Sunrise", serif;
    font-size: 18px;
    margin-bottom: 40px;
}


/* SEO */
.flat-seo {
    margin-top: 50px;
    line-height: 1.6;
    font-size: 20px;
    color: #1E4B6E;
}


.flat-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0px;
    position: relative;
}


.flat-left {
    position: relative;
}

.flat-image-wrap {
    background: white;
    border-radius: 0px;
    padding: 20px;
}

.flat-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    max-height: 504px;
    margin: 0 auto;
    cursor: zoom-in;
    padding-bottom: 100px;

}

.flat-switch-bar {
    position: absolute;
    bottom: 35px;
    left: 40px;
    display: flex;
    gap: 12px;
}

.switch-btn {
    background: #D8D8D2;
    padding: 10px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.switch-btn.active {
    background: #956B4A;
    color: #fff;
}

.flat-floor-thumb {
    position: absolute;
    bottom: 25px;
    right: 40px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.flat-floor-thumb img {
    width: 110px;
    margin: 0 auto;
    border-radius: 10px;
    cursor: zoom-in;
}

.floor-caption {
    padding-top: 10px;
    font-size: 13px;
    margin-top: -14px;
    opacity: 1;
}

/* ПРАВАЯ СТОРОНА */

.flat-right {
    background: #D9D9D6;
    border-radius: 0px;
    padding: 35px;
    color: #0E2B42;
}

.flat-medal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 22px;
}

.flat-medal img {
    width: 69px !important;
    height: 69px !important;
    margin-left: -15px;
}

.flat-params h3 {
    margin-bottom: 25px;
    color: #1E4B6E;
    font-size: 25px;
    font-weight: 500;
}

.param-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 20px;
}

.flat-price {
    font-size: 32px;
    font-weight: 700;
    margin: 25px 0;
}

.flat-order-btn {
    background: #70534a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: 0.3s ease;
}

.popup-form {
    background: #fff;
    color: #70534a;
    font-family: "Isabella Sans", sans-serif;
    padding: 20px;
    border-radius: 12px;
    width: min(420px, 90vw);
    text-align: left;
}

.popup-form h3 {
    font-size: 22px;
    font-family: "SangBleu Sunrise", serif;
    margin-bottom: 10px;
}

.popup-sub {
    font-size: 15px;
    color: #9c7c6c;
    margin-bottom: 20px;
}

.popup-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #d4bfa1;
    border-radius: 6px;
    font-size: 15px;
    color: #70534a;
}

.popup-input:focus {
    outline: none;
    border-color: #70534a;
}



.popup-privacy {
    display: flex;
    align-items: center;
    font-size: 13px;
    gap: 6px;
    margin-bottom: 20px;
}

.popup-privacy a {
    color: #70534a;
    text-decoration: underline;
}

.btn-send {
    background: #70534a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: 0.3s ease;
}

.btn-send:hover {
    background: #8a6d61;
}
.flat-order-btn:hover {
    background: #8a6d61;
}


.flat-ipoteka {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flat-ipoteka img {
    width: 32px;
}

.flat-price-box {
    margin: 22px 0 28px;
}

.flat-price-label {
    color: #c45a3d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.flat-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flat-price-new {
    font-size: 30px;
    color: #162d3d;
}

.flat-price-old {
    font-size: 20px;
    color: #9ca3a9;
    text-decoration: line-through;
}

.flat-price-discount {
    font-size: 16px;
    font-weight: 600;
    color: #c45a3d;
}

.flat-ipoteka-month {
    font-size: 20px;
    color: #2c2c2c;
}

.flat-ipoteka-month span {
    opacity: .8;
    font-size: 15px;
    display: block;
    margin-top: 4px;
}

.flat-recommend-title {
    font-size: 28px;
    font-weight: 600;
    margin: 60px 0 25px;
    color: #162d3d;
}

.flat-recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.flat-rec-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px 22px 25px;
    display: block;
    text-decoration: none;
    color: #162d3d;
    transition: transform .2s ease;
    position: relative;
}

.flat-rec-card:hover {
    transform: translateY(-4px);
}

.flat-rec-img {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flat-rec-img img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.flat-rec-top {
    font-size: 15px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.flat-rec-rooms {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.flat-rec-price {
    font-size: 22px;
    font-weight: 700;
}
.flat-image-wrap {
    position: relative;
}

.flat-reserved-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 51, 0.65); /* тёмно-синий Barkli */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.flat-reserved-overlay span {
    color: #fff;
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 18px 32px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

@media (max-width: 992px) {

    .flat-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flat-right {
        max-width: 100%;
        border-radius: 20px;
    }

    .flat-main-image {
        max-height: 420px;
        padding-bottom: 60px;
    }

    .flat-switch-bar {
        bottom: 20px;
        left: 20px;
    }

    .flat-floor-thumb {
        bottom: 15px;
        right: 20px;
    }

    .flat-rec-img {
        height: 300px;
    }
}

@media (max-width: 768px) {

    .flat-container-bg {
        padding: 10px;
        border-radius: 15px;
    }

    .flat-container {
        padding: 10px;
    }

    .flat-h1 {
        font-size: 26px;
        line-height: 1.25;
        padding: 0 10px;
    }

    .flat-h1-sub {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .flat-main-image {
        max-height: 360px;
    }

    .switch-btn {
        color: black;
        padding: 10px;
        font-size: 13px;
    }

    .flat-right {
        padding: 22px;
        border-radius: 15px;
    }


    .flat-medal span {
        font-size: 18px;
    }

    .flat-params h3 {
        font-size: 20px;
    }

    .param-row {
        font-size: 18px;
        margin-bottom: 22px;
    }

    .flat-price-new {
        font-size: 26px;
    }

    .flat-order-btn {
        font-size: 16px;
        padding: 14px;
    }

    .flat-ipoteka-month {
        font-size: 18px;
    }

    .flat-ipoteka-month span {
        font-size: 13px;
    }

    /* рекомендованные */
    .flat-recommend-list {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-right: 0;
    }

    .flat-rec-img {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .flat-rec-img img {
        max-height: 200px;
    }

    .flat-h1 {
        font-size: 22px;
    }

    .flat-main-image {
        max-height: 300px;
    }



    .flat-right {
        padding: 18px 18px 25px;
    }

    .flat-medal span {
        font-size: 16px;
    }

    .param-row {
        font-size: 16px;
    }

    .flat-price-new {
        font-size: 22px;
    }

    .flat-rec-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .flat-left {
        background-color: white;
        padding-bottom: 30px;
    }

    .flat-medal img {
        margin-left: 0;
        width: 52px; /* опционально — уменьшаем, чтобы не рвало строку */
    }

    .flat-medal {
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {

    /* растягиваем белый фон на весь экран */
    .flat-image-wrap {
        background: white;
        padding: 15px 0; /* убираем боковые паддинги */

        border-radius: 0;
    }

    /* картинка тоже по центру */
    .flat-main-image {
        width: 100%;
        max-height: 300px;
        object-fit: contain;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {

    /* Переключатель под фото — блочный, центрированный */
    .flat-switch-bar {
        position: static; /* убираем absolute */
        margin-top: 5px;
        margin-bottom:15px;
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }



    /* этаж переносим вниз под переключатель */
    .flat-floor-thumb {
        position: static; /* убираем absolute */
        margin-top: 12px;
        text-align: center;
    }

    .flat-floor-thumb img {
        width: 90px;
        margin: 0 auto;
    }

    .floor-caption {
        margin-top: 4px;
    }

    /* уменьшаем отступ под фото, раз кнопки больше не absolute */
    .flat-main-image {
        padding-bottom: 0;
        max-height: 280px;
    }
}

/* End */
/* /local/components/dmcg/apartment.detail/templates/.default/style.css?177115381310422 */
