﻿.filters {
    width: 100%;
    height: calc(100vh - 130px);
    min-height: 0;
    background: #111;
    border-radius: 20px;
    color: white;
    font-family: 'Raleway', sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 18px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filters h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.filters h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.filters-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.filters-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px 24px;
    scrollbar-width: thin;
}

.filter-section-title {
    margin-top: 28px;
    margin-bottom: 18px;
}

.filter-section-title:first-child {
    margin-top: 0;
}

.filter-subsection-title {
    margin-top: 18px;
    margin-bottom: 10px;
}

.filter-subsection-title h3 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 14px;
}

.filter-row label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #C3C3C3;
    user-select: none;
}

.filter-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.filter-row input[type="checkbox"]:checked {
    background: #9D6A69;
    border-color: #9D6A69;
}

.filter-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filters-reset {
    width: 100%;
    margin-top: 24px;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #161616;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .filters {
        height: auto;
    }

    .filters-scroll {
        overflow: visible;
    }
}