/* ========================================
   FRONTEND FILTERS & SEARCH
   ======================================== */

/* Hero filter overrides removed to allow style.css premium designs to reflect */

/* Sidebar Filters */
.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.filter-widget {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-widget:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* More Options Toggle */
.advanced-filters {
    display: none;
}

.advanced-filters.show {
    display: block;
}

.toggle-advanced-btn {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.toggle-advanced-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Features Grid in Sidebar */
.features-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}

.feature-checkbox input {
    width: 16px;
    height: 16px;
}

/* Home Page Toggle Animation */
/* [MODIFIED] Home Page Toggle Icon - Hover logic handled in style.css premium improvements */

/* Button responsive */
@media (max-width: 640px) {
    #home-filter-form div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #home-filter-form .btn-primary {
        order: -1;
        /* Put search button on top of toggle in mobile */
        width: 100% !important;
    }
}