﻿
/* Filter Bar */
.filter-bar-sticky {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: visible;
}

.filter-scroll-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.75rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .filter-scroll-container .dropdown {
        position: static;
    }

    .filter-scroll-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.filter-sort {
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 1rem;
}

.btn-filter {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-filter:hover {
        border-color: #9ca3af;
        background: #f9fafb;
    }

.btn-filter-active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-filter-clear {
    background: white;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ef4444;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-filter-clear:hover {
        background: #ef4444;
        color: white;
    }

.dropdown-menu-large {
    min-width: 280px;
}

.list-group-item-action {
    padding: 0.625rem 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

    .list-group-item-action:hover {
        background: #f3f4f6;
    }

    .list-group-item-action.active {
        background: #eff6ff;
        color: #2563eb;
        font-weight: 600;
    }

/* Results Header */
.results-header {
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

/* Filter Tags */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tag-verified {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

    .filter-tag-remove:hover {
        opacity: 1;
    }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .loading-overlay.active {
        display: flex;
    }

/* Range Slider */
.form-range {
    width: 100%;
}

    .form-range::-webkit-slider-thumb {
        background: #2563eb;
    }

    .form-range::-moz-range-thumb {
        background: #2563eb;
    }

/* Transitions */
#resultsContainer {
    transition: opacity 0.2s;
}

.dropdown-menu {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .filter-scroll-container {
        gap: 0.5rem;
    }

    .btn-filter {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}
