

/* Start:/local/templates/visotky/assets/css/page/genplan/flats.css?17900553758072*/
.flats {
    margin-top: 100px;
    width: 100%;
}

.flats__container {
    position: relative;
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.flats__container-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.flats__subtitle {
    font-size: 20px;
    color: rgba(45, 53, 64, 1);
}

/* flats__filter */
.flats__filter {
    color: rgba(45, 53, 64, 1);
    font-size: 18px;
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    gap: 20px;
}

.flats__filter-fillable {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;

}

.flats__filter-dropdown {
    position: relative;
    min-width: 320px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(198, 166, 105, 0.4);
}

.flats__dropdown-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    height: 52px;
}

.flats__filter-floor {
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.flats__filter-input {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.flats__filter-input input {
    width: 121px;
    text-align: center;
    align-content: center;
    font-size: 18px;
    border: none;
    background-color: rgba(198, 166, 105, 0.02);
    color: rgba(45, 53, 64, 1);
    height: 52px;
    border-bottom: 1px solid rgba(198, 166, 105, 0.4);
    outline: none;
}

.flats__filter-leaflet {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.flats__filter-leaflet div {
    color: rgba(45, 53, 64, 1);
    display: block;
    background-color: rgba(198, 166, 105, 0.02);
    width: 52px;
    height: 52px;
    text-align: center;
    align-content: center;
    border-bottom: 1px solid rgba(198, 166, 105, 0.4);
    cursor: pointer;
}

.flats__filter-leaflet div.active {
    background-color: rgba(198, 166, 105, 0.7);
}

.flats__filter-button.btn {
    width: 100%;
    max-width: 261px;
    display: flex;
    gap: 4px;
}


/* dropdown */

.dropdown-button {
    color: rgba(45, 53, 64, 1);
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: all .4s ease;
    width: 100%;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu .menu__link {
    color: rgba(45, 53, 64, 1);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: rgba(241, 239, 234, 0.89);
    border-bottom: 1px solid rgba(45, 53, 64, 1);
}

.dropdown-menu .menu__link:hover {
    background-color: rgba(198, 166, 105, 0.4);
}

.dropdown.active .dropdown-button svg {
    transform: rotate(0deg);
}

.dropdown-button svg {
    transform: rotate(-180deg);
    transition: all .4s ease;
}



/* block */

.flats__block {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    overflow: hidden;
    max-width: 1920px;
    /* margin: 0 auto; */
    justify-content: start;
    padding: 14px 0;
}

.flats__card {
    cursor: pointer;
    flex: 1 1 330px;
    padding: 24px;
    transition: all 0.3s ease;
    max-width: 420px;
}

.flats__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(198, 166, 105, 0.7);
}

.flats__card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flats__card-info-title.title {
    text-transform: none;
    font-size: 32px;
}

.flats__card-info-subtitle {
    font-size: 20px;
    color: rgba(45, 53, 64, 1);
}

.flats__card-info-price {
    font-size: 24px;
    text-transform: uppercase;
    color: var(--sand);
    margin-top: 20px;
}

.flats__card-pic {
    width: 100%;
}






/* flats__choice */

.flats__choice {
    display: none;
    flex-direction: column;
    gap: 40px;
}

.flats__choice-info {
    display: flex;
    flex-direction: column;
    gap: 16px;

}

.flats__choice-info.title {
    font-size: 32px;
}

.flats__choice-subtitle {
    font-size: 16px;
}

.flats__choice-button.btn {
    width: 100%;
}



.flats-more_btn {
    margin: 20px auto;
}



.article {
    margin-top: 40px;
    padding-bottom: 40px;
}

.article__container {
    max-width: 1920px;
}

.article__wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article__title {
    /* длинные слова заголовка иначе не переносятся на узких экранах
       и вызывают горизонтальный скролл всей страницы */
    overflow-wrap: break-word;
    word-break: break-word;
}

.article__subtitle {
    color: rgba(45, 53, 64, 1);
}

.article__mid span {
    font-weight: 600;
}

.article__mid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


@media(max-width: 1360px) {
    .flats__filter-fillable {
        width: 100%;
        justify-content: space-between;
    }

    .flats__filter {
        justify-content: center;
    }
}


@media(max-width: 1265px) {

    .flats__card-info-title.title {
        font-size: 24px;
        max-width: 272px;
    }

    .flats__card-info-subtitle {
        font-size: 16px;
    }

    .flats__card-info-price {
        font-size: 18px;
    }

    .article__title.title {
        font-size: 39px;
    }

}

@media(max-width: 1072px) {

    .flats__block {
        gap: 20px;
    }

    .flats .container {
        padding: 20px;
    }
}

@media(max-width: 992px) {
    .flats__filter-button.btn {
        bottom: 0;
        right: 0;
        max-width: unset;
        width: calc(100% - 296px);
    }

    .flats__filter-input input {
        width: 100%;
    }

    .flats {
        margin-top: 100px;
    }

    .article__title.title {
        font-size: 35px;
    }
}



@media(max-width: 924px) {
    .flats__filter-button.btn {
        position: absolute;
    }
}


@media(max-width: 710px) {
    .flats__filter-floor {
        width: unset;
    }


    .flats__filter-input {
        width: unset;
    }

    .flats__filter-input.input {
        width: 100%;
    }

    .flats__filter-dropdown {
        min-width: unset;
        width: 45%;
    }

    .flats__filter-floor {
        width: 45%;
        flex-wrap: wrap;
    }

    .flats-more_btn {
        width: 100%;
    }
}


@media (hover: none) {
    .flats__card:hover {
        transform: none;
        box-shadow: none;
    }
}





@media(max-width: 680px) {
    /* .flats__block{
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
        justify-content: center;
    }

    .flats__block .flats__card:nth-last-child(-n+9) {
        display: none;
    } */

    .flats__container {
        align-items: center;
    }

    .flats__title.title,
    .article__title.title {
        font-size: 32px;
    }

    .flats__choice {
        display: flex;
    }

    .flats__filter-dropdown {
        width: 100%;
    }

    .flats__filter-floor {
        width: 100%;
    }

    .flats__filter-button.btn {
        position: relative;
        width: 100%;
    }

    .flats__filter-leaflet {
        width: 100%;
    }

    .flats__filter-leaflet div {
        width: 100%;
    }

    .flats__filter-input {
        width: 100%;
    }
}
/* End */
/* /local/templates/visotky/assets/css/page/genplan/flats.css?17900553758072 */
