/* =========================================
   MODERN FILTER PANEL DESIGN
   ========================================= */

/* Filter Sidebar Container */
.filters-sidebar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Filter Sections */
.filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.filter-section:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Modern Checkbox Styling */
.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.filter-option:hover {
    background: rgba(0, 102, 204, 0.05);
    padding-left: 0.75rem;
}

.filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.filter-option input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Filter with Price Display */
.filter-with-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-checkbox-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.filter-checkbox-wrapper span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Trip Type Selector Styling */
.trip-type-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.radio-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
}

.radio-container:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: var(--primary-light);
}

.radio-container input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.radio-container span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.radio-container input[type="radio"]:checked + span {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-sidebar {
        border-radius: 12px;
        padding: 1rem;
        position: relative;
        top: 0;
    }

    .filter-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .trip-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-container {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Smooth Animations */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-section {
    animation: filterFadeIn 0.3s ease;
}
