.girls-filter {
    margin-bottom: 20px;
}

.girls-filter__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.girls-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffbfa7;
    border: 1px solid rgba(139, 48, 80, 0.25);
    border-radius: 20px;
    color: #5a2030;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s, color .2s;
}

.girls-filter__toggle:hover,
.girls-filter__toggle[aria-expanded="true"] {
    border-color: #8b3050;
    background: #8b3050;
    color: #fff;
}

.girls-filter__toggle svg{
    fill: #5a2030;
    width: 24px;
    height: 24px;
}
.girls-filter__toggle:hover svg,
.girls-filter__toggle[aria-expanded="true"] svg{
    color: rgb(243, 171, 122);
}

.girls-filter__badge {
    width: 8px;
    height: 8px;
    background: rgb(243, 71, 8);
    border-radius: 50%;
}

.girls-filter__reset {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color .2s;
}

.girls-filter__reset:hover {
    color: #ffbfa7;
}

/* Обёртка для анимации */
.girls-filter__body-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
}

.girls-filter__body-wrap.is-open {
    max-height: 2000px;
    transition: max-height .5s ease;
}

.girls-filter__body {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: #ffbfa7;
    border: 1px solid rgba(139, 48, 80, 0.18);
    border-radius: 16px;
}

.girls-filter__group {
    border: none;
    padding: 0;
    margin: 0;
}

.girls-filter__legend {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #7a3a2e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.girls-filter__range-label {
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    color: #8b3050;
}

.girls-filter__range-wrap {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.girls-filter__range-wrap::before,
.girls-filter__range-wrap::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 4px;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.girls-filter__range-wrap::before {
    background: rgba(139, 48, 80, 0.2);
}

.girls-filter__range-wrap::after {
    background: #8b3050;
    left: calc(10px + (100% - 20px) * var(--range-min-pct, 0) / 100);
    right: calc(10px + (100% - 20px) * (100 - var(--range-max-pct, 100)) / 100);
}

.girls-filter__range-wrap input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    height: 32px;
}

.girls-filter__range-wrap input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 4px;
}

.girls-filter__range-wrap input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
    height: 4px;
}

.girls-filter__range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b3050;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -8px;
}

.girls-filter__range-wrap input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b3050;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: auto;
}

.girls-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(139, 48, 80, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #5a2030;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip.is-active,
.chip:hover {
    border-color: #8b3050;
    color: #fff;
    background: #8b3050;
}

.girls-filter__sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.girls-filter__footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.girls-filter__apply {
    padding: 10px 24px;
    background: #8b3050;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.girls-filter__apply:hover {
    background: #6e2440;
}

.girls-list.is-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity .2s;
}

.chips-group {
    width: 100%;
    margin-bottom: 6px;
}

.chips-group__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a3a2e;
    margin-bottom: 6px;
}

.chips-group__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 8px;
    border-left: 2px solid rgba(139, 48, 80, 0.2);
}

.girls-filter__badge[hidden],
.girls-filter__reset[hidden] {
    display: none !important;
}

.girls-list__empty {
    list-style: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.girls-list__empty a {
    color: #ffbfa7;
    text-decoration: underline;
}
