.homepage-filter-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #fff4ec);
    border: 1px solid #f2f2f2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    border-radius: 16px;
}

.homepage-filter-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 189, 158, 0.12), transparent 32%),
                radial-gradient(circle at 82% 12%, rgba(255, 115, 80, 0.12), transparent 28%);
    pointer-events: none;
}

.homepage-filter-accordion {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.homepage-filter-accordion.is-open {
    max-height: 900px;
    opacity: 1;
}

@media (min-width: 1024px) {
    .homepage-filter-accordion {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }

    .homepage-filter-toggle {
        display: none !important;
    }
}

.filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #475569;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.filter-control {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 38px;
    line-height: 1.35;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.filter-control[type="search"] {
    -webkit-appearance: none;
    padding-left: 34px;
}

.filter-control:focus {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
    background: #ffffff;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #7f1d1d;
    font-weight: 600;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}


.filter-toggle input {
    width: 16px;
    height: 16px;
}

.filter-toggle:hover {
    border-color: rgba(248, 113, 113, 0.4);
    transform: translateY(-0.5px);
    background: #fff7f3;
}

.price-range-slider {
    position: relative;
    height: 28px;
}

.price-range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 28px;
    background: transparent;
    pointer-events: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 999px;
    background: #f97316;
    border: 1px solid #fff;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    pointer-events: all;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 999px;
    background: #f97316;
    border: 1px solid #fff;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    pointer-events: all;
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: transparent;
}

.price-range-slider input[type="range"]::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: transparent;
}

.price-range-track {
    position: absolute;
    inset: 50% 0 auto 0;
    height: 5px;
    transform: translateY(-50%);
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.price-range-highlight {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: 999px;
    inset: 0;
}

.price-range-inputs input {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-range-inputs input:focus {
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.filter-results-card {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.82rem;
}

.filter-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

#homepage-filter-status {
    min-height: 24px;
}
