

/* Start:/bitrix/templates/ShenResidence/css/filter.css?176102924024603*/
/* Font imports */
@import url('https://fonts.cdnfonts.com/css/satoshi');
@import url('https://fonts.googleapis.com/css2?family=YourArianAMU'); /* Замени на реальный URL для Arian AMU; fallback to sans-serif */

/* Базовые стили */
* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, a {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: #FAFAFA;
    overflow-x: hidden;
}

.main-content {
    margin-top: 40px;
    display: flex;
    width: 1440px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin: 0 auto;
    background: #FAFAFA;
}

/* Первый раздел */
.first-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.section-title {
    color: #2D2D2D;
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 120% */
    letter-spacing: -0.72px;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.filter-label {
    color: #9CA8AE;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 138.462% */
}

/* Первый filter-item: Building */
.building-filter {
    /* Уже наследует общие стили */
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.building-btn {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2D2D2D;
    font-family: 'Arian AMU', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.building-btn:hover {
    background: #E1E1E1;
}

.building-btn.active {
    background: #2D2D2D;
    color: #FAFAFA;
}

/* Второй filter-item: Total area */
.area-filter {
    width: 226px;
}

/* Третий filter-item: Floors */
.floors-filter {
    width: 203px;
}

/* Room type */
.room-filter {
    /* Уже наследует общие стили */
}

.room-btn {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2D2D2D;
    font-family: 'Arian AMU', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.room-btn:hover {
    background: #E1E1E1;
}

.room-btn.active {
    background: #2D2D2D;
    color: #FAFAFA;
}

/* Пятый filter-item: Price (m²) */
.price-filter {
    width: 410px;
}

/* Шестой filter-item: View toggle */
.view-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.view-btn {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #2D2D2D;
}

.view-icon {
    width: 20px;
    height: 20px;
    transition: filter 0.2s ease;
}

.view-btn.active .view-icon {
    filter: brightness(0) invert(1);
}

.range-container {
    display: flex;
    height: 40px;
    padding: 6px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 0 0;
    border-radius: 20px;
    border: 1px solid #181818;
    position: relative;
    background: #FAFAFA;
    width: 100%;
}

.range-labels {
    display: flex;
    width: 100%;
    height: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    z-index: 2;
}

.range-from,
.range-to {
    display: flex;
    height: 20px;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.range-text {
    color: #9CA8AE;
    font-family: 'Arian AMU', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 153.846% */
}

.range-value {
    color: #181818;
    font-family: 'Arian AMU', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background: transparent;
    border: none;
    text-align: left;
    width: 36px;
    outline: none;
}

.range-value.price-value {
    width: 60px;
}

.currency {
    color: #9CA8AE;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-left: auto;
}

.range-value::-webkit-outer-spin-button,
.range-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-value {
    -moz-appearance: textfield;
}

.range-divider {
    width: 1px;
    height: 20px;
    background: rgba(23, 23, 23, 0.15);
    margin: 0 16px;
}

.range-thumb {
    position: absolute;
    bottom: -3px;
    width: 18px;
    height: 7px;
    border-radius: 10px;
    border: 1px solid #181818;
    background: #181818;
    cursor: pointer;
    transition: left 0.2s ease;
    z-index: 1;
    margin-left: -9px;
}

.left-thumb {
    left: 25%;
}

.right-thumb {
    left: 75%;
}

/* Стили для карточек */
.card {
    display: flex;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border-radius: 16px;
    border: 1px solid rgba(233, 233, 233, 0.40);
    background: #FFF;
}

.card-number {
    color: #4C8652;
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px; /* 177.778% */
    text-align: left;
    align-self: stretch;
}

.card-building {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.building-text {
    color: #2D2D2D;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
}

.room-type {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    color: #2D2D2D;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.card-image {
    display: flex;
    width: 100%;
    padding: 12px 9px;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.area-text,
.price-text {
    color: #2D2D2D;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.card-action {
    display: flex;
    padding-top: 16px;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    align-self: stretch;
}

.button-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.button-main {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    background: #2D2D2D;
    color: #FFF;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.button-icon {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #2D2D2D;
    transform: translateX(-8px);
    transition: transform 0.3s ease;
}

.button-icon img {
    width: 24px;
    height: 24px;
}

.button-container:hover .button-icon {
    transform: translateX(4px);
}

/* Стили для grid-view и list-view */
.grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    align-self: stretch;
}

.grid-section:not(.list-view) {
    display: grid;
}

.grid-section.list-view {
    display: none;
    flex-direction: column;
    width: 100%;
}

.view-btn.grid-btn.active ~ .grid-section:not(.list-view) {
    display: grid;
}

.view-btn.grid-btn.active ~ .grid-section.list-view {
    display: none;
}

.view-btn.list-btn.active ~ .grid-section:not(.list-view) {
    display: none;
}

.view-btn.list-btn.active ~ .grid-section.list-view {
    display: flex;
}

.table-header {
    display: flex;
    border-bottom: 1px solid rgba(23, 23, 23, 0.15);
}

.header-item {
    display: flex;
    min-height: 70px;
    padding: 18px 10px 19px 1px;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    color: #9CA8AE;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 138.462% */
    text-transform: uppercase;
}

.header-item.total-price {
    padding: 18px 1px 19px 1px;
    justify-content: flex-end;
    color: #181818;
    text-align: right;
}

.table-row {
    display: flex;
    border-bottom: 1px solid rgba(23, 23, 23, 0.15);
}

.row-item {
    display: flex;
    min-height: 60px;
    padding: 0 10px 1px 1px;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    color: #181818;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px; /* 130.769% */
    text-transform: uppercase;
}

.row-item.total-price {
    padding: 0 1px 1px 1px;
    justify-content: flex-end;
    text-align: right;
}

/* Стили для кнопки See more */
.see-more-btn {
    display: flex;
    width: 120px;
    padding: 15px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    margin: 0 auto 0;
    color: #181818;
    text-align: center;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px; /* 130.769% */
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
}

/* Стили для затемнения фона */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Tablet styles (768px–991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .main-content {
        width: 100%;
        padding: 16px 24px;
        margin-top: 32px;
        gap: 32px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .first-section {
        gap: 12px;
    }

    .title-filter-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .section-title {
        font-size: 18px;
        line-height: 22px;
    }

    .filters {
        display: none;
    }

    .filter-icon {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-icon img {
        width: 24px;
        height: 24px;
    }

    .filter-popup {
        display: none;
        padding: 16px 16px 32px 16px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px 20px 0 0;
        background: #FFF;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-popup.active {
        display: flex;
    }

    .filter-popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .filter-popup-title {
        color: #79736F;
        font-family: 'Satoshi', sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 133.333% */
        letter-spacing: -0.44px;
    }

    .filter-popup-close {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-popup-close img {
        width: 24px;
        height: 24px;
    }

    .filter-popup-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
    }

    .filter-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-self: stretch;
    }

    .filter-row .filter-item {
        flex: 1 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .filter-row .area-filter,
    .filter-row .floors-filter,
    .filter-row .price-filter {
        width: 100%;
        max-width: 100%;
    }

    .filter-row .price-filter .range-container {
        width: 100%;
    }

    .filter-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
    }

    .filter-apply-btn {
        display: flex;
        width: 100%;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        align-self: stretch;
        border-radius: 24px;
        background: #2D2D2D;
        color: #FFF;
        font-family: 'Satoshi', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 150% */
        border: none;
        cursor: pointer;
    }

    .results-container {
        display: flex;
        align-items: center;
        gap: 12px;
        align-self: stretch;
    }

    .results-dot {
        width: 8px;
        height: 8px;
        background: #2D2D2D;
        border-radius: 50%;
    }

    .results-text {
        color: #2D2D2D;
        font-family: 'Satoshi', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .grid-section:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .see-more-btn {
        width: 100px;
        padding: 12px;
        font-size: 12px;
        line-height: 16px;
    }
}

/* Small desktop styles (992px–1439px) */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    .main-content {
        width: 100%;
        padding: 20px 32px;
        margin-top: 36px;
        gap: 40px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .first-section {
        gap: 14px;
    }

    .title-filter-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .section-title {
        font-size: 19px;
        line-height: 23px;
    }

    .filters {
        display: none;
    }

    .filter-icon {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-icon img {
        width: 24px;
        height: 24px;
    }

    .filter-popup {
        display: none;
        padding: 16px 16px 32px 16px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px 20px 0 0;
        background: #FFF;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-popup.active {
        display: flex;
    }

    .filter-popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .filter-popup-title {
        color: #79736F;
        font-family: 'Satoshi', sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 133.333% */
        letter-spacing: -0.44px;
    }

    .filter-popup-close {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-popup-close img {
        width: 24px;
        height: 24px;
    }

    .filter-popup-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
    }

    .filter-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-self: stretch;
    }

    .filter-row .filter-item {
        flex: 1 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .filter-row .area-filter,
    .filter-row .floors-filter,
    .filter-row .price-filter {
        width: 100%;
        max-width: 100%;
    }

    .filter-row .price-filter .range-container {
        width: 100%;
    }

    .filter-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
    }

    .filter-apply-btn {
        display: flex;
        width: 100%;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        align-self: stretch;
        border-radius: 24px;
        background: #2D2D2D;
        color: #FFF;
        font-family: 'Satoshi', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 150% */
        border: none;
        cursor: pointer;
    }

    .results-container {
        display: flex;
        align-items: center;
        gap: 12px;
        align-self: stretch;
    }

    .results-dot {
        width: 8px;
        height: 8px;
        background: #2D2D2D;
        border-radius: 50%;
    }

    .results-text {
        color: #2D2D2D;
        font-family: 'Satoshi', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .grid-section:not(.list-view) {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .see-more-btn {
        width: 110px;
        padding: 14px;
        font-size: 13px;
        line-height: 17px;
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .main-content {
        width: 100%;
        padding: 16px;
        margin-top: 24px;
        gap: 24px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .first-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
    }

    .title-filter-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .section-title {
        color: #2D2D2D;
        font-family: 'Satoshi', sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 120% */
        letter-spacing: -0.72px;
    }

    .filters {
        display: none;
    }

    .filter-icon {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-icon img {
        width: 24px;
        height: 24px;
    }

    .filter-popup {
        display: none;
        padding: 16px 16px 32px 16px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px 20px 0 0;
        background: #FFF;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-popup.active {
        display: flex;
    }

    .filter-popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }

    .filter-popup-title {
        color: #79736F;
        font-family: 'Satoshi', sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 133.333% */
        letter-spacing: -0.44px;
    }

    .filter-popup-close {
        display: flex;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .filter-popup-close img {
        width: 24px;
        height: 24px;
    }

    .filter-popup-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        align-self: stretch;
    }

    .filter-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-self: stretch;
    }

    .filter-row .filter-item {
        flex: 1 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .filter-row .area-filter,
    .filter-row .floors-filter,
    .filter-row .price-filter {
        width: 100%;
        max-width: 100%;
    }

    .filter-row .price-filter .range-container {
        width: 100%;
    }

    .filter-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
    }

    .filter-apply-btn {
        display: flex;
        width: 100%;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        align-self: stretch;
        border-radius: 24px;
        background: #2D2D2D;
        color: #FFF;
        font-family: 'Satoshi', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; /* 150% */
        border: none;
        cursor: pointer;
    }

    .room-btn {
    display: flex;
    width: 35px;
    height: 35px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2D2D2D;
    font-family: 'Arian AMU', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.room-btn:hover {
    background: #E1E1E1;
}

.room-btn.active {
    background: #2D2D2D;
    color: #FAFAFA;
}

.building-btn {
    display: flex;
    width: 35px;
    height: 35px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid #2D2D2D;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2D2D2D;
    font-family: 'Arian AMU', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.building-btn:hover {
    background: #E1E1E1;
}

.building-btn.active {
    background: #2D2D2D;
    color: #FAFAFA;
}

    .results-container {
        display: flex;
        align-items: center;
        gap: 12px;
        align-self: stretch;
    }

    .results-dot {
        width: 8px;
        height: 8px;
        background: #2D2D2D;
        border-radius: 50%;
    }

    .results-text {
        color: #2D2D2D;
        font-family: 'Satoshi', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .grid-section:not(.list-view) {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .grid-section.list-view {
        display: none;
    }

    .see-more-btn {
        width: 100px;
        padding: 12px;
        font-size: 12px;
        line-height: 16px;
    }
}

/* Desktop styles (1440px+) */
@media screen and (min-width: 1440px) {
    .filter-popup {
        display: none;
    }

    .filter-icon {
        display: none;
    }

    .results-container {
        display: none;
    }
}
/* End */
/* /bitrix/templates/ShenResidence/css/filter.css?176102924024603 */
