/* FlightBed Filter Styles */

/* Filter Section Container */
#filterSection {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

/* Simple Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover {
    background: rgba(239, 0, 68, 0.1);
    border-color: #ef0044;
    color: #ef0044;
}

.filter-btn.active {
    background: #ef0044;
    border-color: #ef0044;
    color: #ffffff;
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-advanced-btn {
    background: none;
    border: none;
    color: #ef0044;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-advanced-btn:hover {
    text-decoration: underline;
}

/* Advanced Filters Container */
#advancedFilters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Airline Filter */
.airline-filter-container {
    position: relative;
}

.airline-logos {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.airline-logos::-webkit-scrollbar {
    height: 6px;
}

.airline-logos::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.airline-logos::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.airline-logo-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.airline-logo-item img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #787675;
}

.airline-logo-item:hover img {
    border-color: rgba(239, 0, 68, 0.5);
    background: #787675;
}

.airline-logo-item.selected img {
    border-color: #ef0044;
    background: #787675;
}

.airline-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airline-scroll-btn.left {
    left: -15px;
}

.airline-scroll-btn.right {
    right: -15px;
}

.airline-scroll-btn:hover {
    background: rgba(239, 0, 68, 0.8);
}

/* Time and Price Sliders */
.time-filter {
    margin-bottom: 20px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ef0044;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ef0044;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #ef0044 0%, #ef0044 var(--progress), rgba(255, 255, 255, 0.1) var(--progress), rgba(255, 255, 255, 0.1) 100%);
}

/* Quality Filter Checkboxes */
.quality-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ef0044;
    cursor: pointer;
    margin: 0;
}

.filter-checkbox span {
    user-select: none;
}

.filter-checkbox:hover {
    color: #ffffff;
}

/* Selected indicators */
.selected-time,
.selected-price {
    color: #ef0044;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .quality-filters {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    #filterSection {
        padding: 20px;
    }
    
    .airline-scroll-btn {
        display: none !important;
    }
}