/* ── Variables ─────────────────────────────────────────────────────────── */
.dreamnet-filter {
    --df-bg:      var(--dreamnet-filter-bg, #f3f7fb);
    --df-card:    var(--dreamnet-surface, #ffffff);
    --df-border:  var(--dreamnet-primary-border, #9ec2e6);
    --df-accent:  var(--dreamnet-primary, #0b4d8b);
    --df-accent2: #093b6b;
    --df-text:    var(--dreamnet-text, #1a1a1a);
    --df-muted:   var(--dreamnet-text-light, #6a7a90);
    --df-radius:  8px;

    background: var(--df-bg);
    border: 1px solid var(--df-border);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(11, 77, 139, 0.08);
    font-family: var(--dreamnet-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.dreamnet-filter__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.dreamnet-filter__section {
    border-bottom: 1px solid rgba(11, 77, 139, 0.1);
}

.dreamnet-filter__section:last-of-type {
    border-bottom: none;
}

.dreamnet-filter__section--always-open .dreamnet-filter__section-head {
    cursor: default;
    padding-bottom: 8px;
}

.dreamnet-filter__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    cursor: pointer;
    user-select: none;
}

.dreamnet-filter__section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--df-accent2);
}

.dreamnet-filter__toggle-icon {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--df-accent);
    transition: transform 0.2s ease;
    width: 20px;
    text-align: center;
}

.dreamnet-filter__section.is-open .dreamnet-filter__toggle-icon {
    transform: none;
}

.dreamnet-filter__section-body {
    padding-bottom: 12px;
}

/* ── Options (radio buttons) ───────────────────────────────────────────── */
.dreamnet-filter__options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.dreamnet-filter__options::-webkit-scrollbar {
    width: 4px;
}
.dreamnet-filter__options::-webkit-scrollbar-track {
    background: transparent;
}
.dreamnet-filter__options::-webkit-scrollbar-thumb {
    background: var(--df-border);
    border-radius: 4px;
}

.dreamnet-filter__option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 5px 6px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--df-text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dreamnet-filter__option:hover {
    background: rgba(11, 77, 139, 0.06);
}

.dreamnet-filter__option input[type="radio"] {
    accent-color: var(--df-accent);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.dreamnet-filter__option span {
    line-height: 1.3;
}

.dreamnet-filter__option em {
    font-style: normal;
    font-size: 11px;
    color: var(--df-muted);
    background: rgba(11, 77, 139, 0.07);
    padding: 1px 5px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Search ────────────────────────────────────────────────────────────── */
.dreamnet-filter__search {
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid var(--df-border);
    font-size: 14px;
    background: var(--df-card);
    color: var(--df-text);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dreamnet-filter__search:focus {
    border-color: var(--df-accent);
    box-shadow: 0 0 0 3px rgba(11, 77, 139, 0.12);
}

/* ── Price range slider ────────────────────────────────────────────────── */
.dreamnet-filter__price-slider {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dreamnet-filter__price-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(11, 77, 139, 0.15);
    border-radius: 4px;
}

.dreamnet-filter__price-fill {
    position: absolute;
    height: 100%;
    background: var(--df-accent);
    border-radius: 4px;
    pointer-events: none;
}

.dreamnet-filter__range {
    position: absolute;
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    outline: none;
}

.dreamnet-filter__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--df-accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s ease;
}

.dreamnet-filter__range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--df-accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
}

.dreamnet-filter__range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.dreamnet-filter__price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dreamnet-filter__price-field {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--df-muted);
    flex: 1;
    background: var(--df-card);
    border: 1px solid var(--df-border);
    border-radius: 5px;
    padding: 4px 8px;
}

.dreamnet-filter__price-num {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--df-text);
    font-weight: 600;
    min-width: 0;
}

.dreamnet-filter__price-num::-webkit-inner-spin-button,
.dreamnet-filter__price-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.dreamnet-filter__price-sep {
    font-size: 14px;
    color: var(--df-muted);
    flex-shrink: 0;
}

/* ── Actions ───────────────────────────────────────────────────────────── */
.dreamnet-filter__actions {
    padding: 12px 4px 4px;
}

.dreamnet-filter__reset {
    width: 100%;
    border: 1px solid var(--df-border);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--df-accent2);
    transition: background 0.2s ease, color 0.2s ease;
}

.dreamnet-filter__reset:hover {
    background: rgba(11, 77, 139, 0.07);
}

/* ── Status ────────────────────────────────────────────────────────────── */
.dreamnet-filter__status {
    font-size: 12px;
    color: var(--df-muted);
    min-height: 16px;
    padding: 4px 4px 0;
}

.dreamnet-filter__empty {
    margin: 0;
    font-size: 13px;
    color: var(--df-muted);
    padding: 8px 4px;
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.dreamnet-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--dreamnet-text, #1a1a1a);
}

.dreamnet-filter-bar__count {
    flex: 1;
    min-width: 120px;
    color: var(--dreamnet-text-light, #6a7a90);
}

.dreamnet-filter-bar__num {
    color: var(--dreamnet-primary, #0b4d8b);
    font-weight: 700;
    margin: 0 4px;
}

.dreamnet-filter-bar__perpage {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dreamnet-text-light, #6a7a90);
}

.dreamnet-filter-bar__pp {
    border: 1px solid var(--dreamnet-primary-border, #9ec2e6);
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--dreamnet-primary, #0b4d8b);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dreamnet-filter-bar__pp:hover,
.dreamnet-filter-bar__pp.is-active {
    background: var(--dreamnet-primary, #0b4d8b);
    color: #fff;
    border-color: var(--dreamnet-primary, #0b4d8b);
}

.dreamnet-filter-bar__sort-select {
    border: 1px solid var(--dreamnet-primary-border, #9ec2e6);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    background: var(--dreamnet-surface, #fff);
    color: var(--dreamnet-text, #1a1a1a);
    cursor: pointer;
    outline: none;
}

.dreamnet-filter-bar__sort-select:focus {
    border-color: var(--dreamnet-primary, #0b4d8b);
    box-shadow: 0 0 0 3px rgba(11, 77, 139, 0.1);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dreamnet-filter {
        padding: 10px;
    }

    .dreamnet-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
