/* Dynamic Filters Styles */
.filter-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}

.filter-header {
    background: #f8f9fa;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
    font-size: 14px;
}

.toggle-icon {
    font-weight: bold;
    color: #6c757d;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.filter-section.expanded .toggle-icon {
    transform: rotate(0deg);
}

.filter-content {
    padding: 12px 16px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: #f8f9fa;
}

.filter-option:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-option.active:hover {
    background: #0056b3;
}

.filter-name {
    font-size: 13px;
    font-weight: 500;
}

.filter-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
}

.filter-option.active .filter-count {
    opacity: 0.9;
}

/* Search section */
.search-section {
    margin-bottom: 1rem;
}

.search-section .form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    font-size: 14px;
}

.search-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Price range section */
.price-range-section {
    margin-bottom: 1rem;
}

.price-range-section .form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    font-size: 14px;
}

.price-range-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Location section - keep existing styles */
.location-picker-container {
    margin-bottom: 1rem;
}

.location-picker-btn {
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
}

.location-picker-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

/* Active filters display */
.active-filters {
    margin-bottom: 1rem;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
    gap: 6px;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
}

.active-filter-tag .remove-filter:hover {
    opacity: 1;
}

/* Loading states */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.listings-container {
    transition: opacity 0.3s ease;
}

/* Total count display */
.total-count {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-content {
        max-height: 200px;
    }
    
    .filter-option {
        padding: 10px 12px;
    }
    
    .filter-name {
        font-size: 14px;
    }
    
    .filter-count {
        font-size: 13px;
    }
}

/* Scrollbar styling for filter content */
.filter-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for filter sections */
.filter-section {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clear filters button */
.clear-filters-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* No results state */
.no-filters-available {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Filter section states */
.filter-section.collapsed .filter-content {
    display: none;
}

.filter-section.expanded .filter-content {
    display: block;
}

/* Brand logos in filter options */
.filter-option .brand-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

/* Color dots for color filters */
.filter-option .color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    border: 1px solid #dee2e6;
}

/* Price range slider (if needed) */
.price-slider {
    margin: 10px 0;
}

.price-slider .range-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
}

.price-slider .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.price-slider .range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
} 