

/* Start:/local/components/custom/apartments.filter/templates/.default/style.css?177269138620687*/
/* Apartments Filter Component Styles */

.apartments-wrap {
    padding: 20px 0 60px;
}

.apartments-wrap .wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.apartments-wrap .main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

@media (max-width: 767px) {
    .apartments-wrap .main-title {
        font-size: 32px;
    }
}

/* Filter header — на десктопе скрыт (только кнопка мобильного фильтра) */
.filter-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.count-info {
    font-size: 14px;
    color: #666;
}

/* Filter toggle button - hidden on desktop */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #008b3b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: #006b2d;
}

.filter-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.filter-toggle-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #fff;
    color: #008b3b;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .filter-toggle-btn {
        display: flex;
    }

    .filter-header {
        margin-bottom: 12px;
    }
}

/* Filter section */
.apartment-search-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Кнопки всегда вместе — не расползаются по разным строкам */
.filter-btns {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .filter-btns {
        width: 100%;
        flex-direction: column;
        margin-top: 8px;
    }
}

.apartment-search-info .select-wrap {
    min-width: 124px;
    flex-grow: 1;
}

.apartment-search-info .select-wrap.full {
    min-width: 180px;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 1300px) {
    .apartment-search-info .select-wrap {
        min-width: 200px;
    }
}

/* MOBILE: Hide filter by default, show when open */
@media (max-width: 767px) {
    .apartment-search-info {
        display: none !important;
        flex-wrap: wrap;
        justify-content: space-between;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .apartment-search-info.filter-open {
        display: flex !important;
    }

    .apartment-search-info .select-wrap {
        width: calc((100% - 15px) / 2);
        margin: 0;
        margin-bottom: 15px;
        flex-grow: 0;
    }

    .apartment-search-info .select-wrap.full {
        width: 100%;
        max-width: none;
    }
}

.apartment-search-info .select-wrap label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Filter group */
.filter-group {
    min-width: 150px;
}

.filter-divider {
    display: none;
}

@media (max-width: 767px) {
    .filter-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: #e4e4e4;
        margin: 5px 0 15px;
    }
}

/* Rooms buttons */
.rooms-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.room-btn {
    min-width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 8px;
}

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

.room-btn.active {
    background: #008b3b;
    color: #fff;
}

/* Range slider */
.range-info {
    flex-grow: 1;
}

/* Этаж — до 3 цифр: "999" */
.range-info.range-size-small {
    min-width: 180px;
    flex-basis: 180px;
}

/* Площадь — до 6 символов: "999.99" */
.range-info.range-size-medium {
    min-width: 240px;
    flex-basis: 240px;
}

/* Цена — до 12 цифр: "99 999 999" */
.range-info.range-size-large {
    min-width: 360px;
    flex-basis: 360px;
}

@media (max-width: 767px) {
    .range-info {
        width: 100%;
        margin: 0;
        margin-bottom: 15px;
    }

    .range-info.range-size-small,
    .range-info.range-size-medium,
    .range-info.range-size-large {
        min-width: 100%;
        flex-basis: 100%;
    }
}

.range-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.range-info .inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e4e4e4;
    border-radius: 50px;
    height: 50px;
    position: relative;
    transition: 0.3s;
}

.range-info .input-wrap {
    width: calc(50% - 15px);
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    color: rgb(20, 20, 20);
    font-size: 17px;
    gap: 4px;
    flex: 1;
    min-width: 100px;
    padding: 7px 16px;
}

.range-info .inputs::after {
    content: "";
    width: 1px;
    height: 24px;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(228, 228, 228);
    position: absolute;
}

.range-info .input-wrap .input-prefix {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.range-info .input-wrap input {
    flex: 1;
    min-width: 28px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    color: rgb(20, 20, 20);
    margin: 0px 5px;
    width: 29px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Этаж: "999" ≈ 25px */
.range-info.range-size-small .input-wrap input {
    min-width: 28px;
}

/* Площадь: "999.99" ≈ 45px */
.range-info.range-size-medium .input-wrap input {
    min-width: 48px;
}

/* Цена: "99 999 999" ≈ 75px */
.range-info.range-size-large .input-wrap input {
    min-width: 78px;
}

.range-info .input-wrap input:focus {
    outline: none;
}

/* Range slider track */
.range-slider {
    position: relative;
    height: 20px;
    margin: 8px 0 5px;
}

.range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
    right: 8px;
    width: calc(100% - 16px) !important;
    height: 4px;
    background: #e4e4e4;
    border-radius: 2px;
    cursor: pointer;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: #008b3b;
    border-radius: 2px;
}

.range-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #008b3b;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.range-thumb:active {
    cursor: grabbing;
}

/* Buttons */
.green-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #008b3b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.green-btn:hover {
    background: #006b2d;
}

.grey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #f5f5f5;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.grey-btn:hover {
    background: #e5e5e5;
}

.grey-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .filter-btns .green-btn,
    .filter-btns .grey-btn {
        width: 100%;
    }
}

/* View controls row — всегда виден под фильтром */
.view-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

@media (max-width: 767px) {
    .view-controls-row {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .count-info {
        order: 2;
        width: 100%;
        font-size: 13px;
    }

    .tab-menu {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .tab-menu li {
        flex: 1;
    }

    .tab-menu li button {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}

/* Tab menu */
.tab-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-menu li {
    list-style: none;
}

.tab-menu li button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-menu li button:hover {
    background: #e5e5e5;
}

.tab-menu li.active button {
    background: #008b3b;
    color: #fff;
}

.tab-menu li button svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.tab-menu li.active button svg {
    fill: #fff;
}

.tab-menu li button .text {
    font-size: 14px;
    display: none;
}

@media (max-width: 767px) {
    .tab-menu li button .text {
        display: inline;
    }
}

/* Loading */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e4e4e4;
    border-top-color: #008b3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Grid view - Плитка */
.apartments-items2 {
    margin-top: 20px;
}

.apartments-items2 .grey-btn {
    display: block;
    margin: 30px auto 0;
    width: auto;
}

.favorites-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .favorites-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .favorites-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .favorites-items {
        grid-template-columns: 1fr;
    }
}

.favorites-item {
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: left;
}

@media (max-width: 1024px) {
    .favorites-item {
        border-color: #e4e4e4;
    }
}

.favorites-item:hover {
    border-color: #008b3b;
}

.favorites-item:hover .img-wrap img {
    transform: scale(1.05);
}

.favorites-item .img-wrap {
    display: flex;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.favorites-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

/* Zoom overlay при наведении */
.favorites-item .img-wrap .img-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.favorites-item .img-wrap:hover .img-zoom-overlay {
    opacity: 1;
}

.favorites-item .img-wrap:hover img {
    transform: scale(1.05);
}

.favorites-item .text-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.favorites-item .text-wrap b {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #000;
}

.favorites-item .text-wrap b a {
    color: inherit;
    text-decoration: none;
}

.favorites-item .text-wrap b a:hover {
    color: #008b3b;
}

.favorites-item .text-wrap .favorite-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.favorites-item .text-wrap .favorite-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 14px;
}

.favorites-item .text-wrap .favorite-info-list li:last-child {
    border-bottom: none;
}

.favorites-item .text-wrap .favorite-info-list li span {
    color: #666;
}

.favorites-item .text-wrap .favorite-info-list li span.black {
    color: #000;
    font-weight: 500;
}

/* Кнопка "Запросить консультацию" */
.apt-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 10px 18px;
    background: #008b3b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.apt-consult-btn:hover {
    background: #006b2d;
}

/* List view - Список */
.apartments-items1 {
    margin-top: 20px;
    text-align: center;
}

.apartments-items1 .grey-btn.load-more {
    display: block;
    margin: 24px auto 0;
    width: auto;
}

.apartments-items1 .favorites-item2 {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: visible;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f9f9f9;
    margin-bottom: 16px;
    transition: 0.3s;
}

.apartments-items1 .favorites-item2:last-child {
    margin-bottom: 0;
}

.apartments-items1 .favorites-item2:hover {
    border-color: #e4e4e4;
}

.apartments-items1 .favorites-item2 .img-wrap {
    border-radius: 5px;
    overflow: hidden;
    min-width: 150px;
    width: 150px;
    height: 100px;
    display: flex;
    flex-shrink: 0;
    margin-right: 25px;
    position: relative;
    cursor: pointer;
}

.apartments-items1 .favorites-item2 .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.apartments-items1 .favorites-item2:hover .img-wrap img {
    transform: scale(1.05);
}

.apartments-items1 .favorites-item2 .text-wrap {
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.apartments-items1 .favorites-item2 .text-wrap b {
    display: block;
    font-size: 22px;
    line-height: 26px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.apartments-items1 .favorites-item2 .text-wrap .texts-info {
    display: flex;
}

.apartments-items1 .favorites-item2 .texts {
    display: flex;
    flex-direction: column;
    margin-right: 50px;
}

.apartments-items1 .favorites-item2 .texts:last-child {
    margin-right: 0;
}

.apartments-items1 .favorites-item2 .texts span {
    font-size: 15px;
    line-height: 18px;
    margin-bottom: 7px;
    color: #4f4f4f;
    display: inline-block;
    white-space: nowrap;
}

.apartments-items1 .favorites-item2 .texts span:last-child {
    margin-bottom: 0;
}

.apartments-items1 .favorites-item2 .texts span.black {
    color: #141414;
    font-weight: 500;
}

/* Кнопка консультации в list-view */
.apt-consult-wrap {
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
    margin-left: auto;
    flex-shrink: 0;
}

.apartments-items1 .favorites-item2 .apt-consult-wrap .apt-consult-btn {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 16px;
}

@media (max-width: 767px) {
    .apartments-items1 .favorites-item2 {
        padding: 12px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .apartments-items1 .favorites-item2 .img-wrap {
        min-width: 90px;
        width: 90px;
        height: 90px;
        border-radius: 8px;
        margin-right: 12px;
    }

    .apartments-items1 .favorites-item2 .text-wrap {
        flex: 1;
        min-width: 0;
    }

    .apartments-items1 .favorites-item2 .text-wrap b {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 6px;
    }

    .apartments-items1 .favorites-item2 .texts {
        margin-right: 20px;
    }

    .apartments-items1 .favorites-item2 .texts span {
        font-size: 13px;
        line-height: 18px;
        margin-bottom: 4px;
    }

    /* Кнопка — полная ширина внизу карточки */
    .apt-consult-wrap {
        display: flex;
        width: 100%;
        padding: 10px 0 0;
        margin-left: 0;
    }

    .apt-consult-wrap .apt-consult-btn {
        width: 100%;
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Модальное окно просмотра планировки */
.apt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: apt-modal-fade 0.2s ease;
}

@keyframes apt-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.apt-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    animation: apt-modal-scale 0.25s ease;
}

@keyframes apt-modal-scale {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.apt-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.apt-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.apt-modal-close:hover {
    background: #008b3b;
    color: #fff;
}

/* Модальное окно консультации */
.apt-consult-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apt-consult-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.apt-consult-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: none;
    transform: scale(0.93);
    transition: transform 0.25s ease;
}

.apt-consult-modal-overlay.is-open .apt-consult-modal-content {
    transform: scale(1);
}

.apt-consult-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.apt-consult-modal-close:hover {
    background: #008b3b;
    color: #fff;
}

.apt-consult-modal-header {
    margin-bottom: 20px;
    padding-right: 40px;
}

.apt-consult-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px;
    line-height: 1.3;
}

.apt-consult-modal-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.apt-consult-modal-body {
    min-height: 60px;
}

.apt-consult-modal-body .b24-form-control-not-empty + .b24-form-control-label,
.apt-consult-modal-body .b24-form-control-select-label,
.apt-consult-modal-body .b24-form-control:focus + .b24-form-control-label {
    top: 14px;
}

@media (max-width: 767px) {
    .apt-consult-modal-content {
        padding: 28px 20px;
    }
}

.b24-form-control-not-empty+.b24-form-control-label, .b24-form-control-select-label, .b24-form-control:focus+.b24-form-control-label {
    top: 5px !important;
}

.b24-form-control-list .b24-form-control-label, .b24-form-control-string .b24-form-control-label, .b24-form-control-text .b24-form-control-label {
    padding-left: 15px;
}


.b24-form-padding-side {
    padding: 0 !important;
}

.b24-form-wrapper.b24-form-shadow{
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
/* End */
/* /local/components/custom/apartments.filter/templates/.default/style.css?177269138620687 */
