/* assets/css/home.css */

.fare-option-card { border: 1px solid #dee2e6; border-radius: 12px; transition: all 0.2s; background-color: #fff; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; justify-content: space-between; height: 100%; overflow: hidden; }
.fare-option-card:hover { border-color: #0d6efd; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.fare-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; }
.fare-price { font-size: 1.3rem; font-weight: 800; color: #0d6efd; margin: 10px 0; }

/* Estilos base (Modo Día) */
.bag-hand { font-size: 0.85rem; color: #6c757d; font-weight: 500; }
.bag-separator { font-size: 0.8rem; color: #adb5bd; margin: 2px 0; }
.bag-checked { font-size: 0.95rem; color: #212529; font-weight: 700; text-transform: uppercase; }

/* Estilos específicos para Ida y Vuelta */
.flight-radio-card { transition: all 0.2s; cursor: pointer; }
.flight-radio-card:hover { background-color: #f8f9fa; border-color: #0d6efd !important; }
.bag-select-sm { font-size: 0.85rem; padding: 0.25rem 0.5rem; border-color: #ced4da; background-color: #fff; }

/* CORRECCIONES MODO NOCHE */
body.dark-mode .fare-option-card { background-color: #2d2d2d; border-color: #444; color: #e0e0e0; }
body.dark-mode .fare-option-card:hover { border-color: #0d6efd; background-color: #333; }
body.dark-mode .flight-radio-card:hover { background-color: #333; }
body.dark-mode .bag-select-sm { background-color: #2b3035; color: #fff; border-color: #444; }
body.dark-mode .bag-checked { color: #ffffff !important; }
body.dark-mode .bag-hand { color: #cccccc !important; }

/* ========================================================= */
/* ESTILOS DEL CALENDARIO (SIMPLIFICADO) */
/* ========================================================= */
.flatpickr-day {
    height: 44px !important;
    line-height: normal !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ========================================================= */
/* ESTILOS DEL WIDGET DE PASAJEROS (NUEVO) */
/* ========================================================= */
.pax-widget {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 15px; 
    height: 38px;
}
.pax-btn {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px; /* Bordes redondeados cuadrados */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pax-btn:hover {
    background-color: #f0f0f0;
    border-color: #b0b0b0;
}
.pax-btn:active {
    transform: scale(0.95);
}
.pax-display-val {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* Modo Oscuro para el Widget */
body.dark-mode .pax-btn {
    background-color: #2d2d2d;
    border-color: #555;
    color: #fff;
}
body.dark-mode .pax-btn:hover {
    background-color: #3b3b3b;
}
body.dark-mode .pax-display-val {
    color: #fff;
}

body { background-color: #f4f6f8; color: #212529; }

/* === CHIPS FILTRO DE FECHA === */
.date-chip {
    border: 1px solid rgba(13,110,253,0.3);
    color: #0d6efd;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    white-space: nowrap;
}
.date-chip:hover { background: rgba(13,110,253,0.1); color: #0d6efd; border-color: #0d6efd; transform: translateY(-1px); }
.date-chip.active { background: #0d6efd; color: #fff; border-color: #0d6efd; box-shadow: 0 2px 8px rgba(13,110,253,0.3); }

body.dark-mode .date-chip { border-color: rgba(100,160,255,0.3); color: #8bb8ff; }
body.dark-mode .date-chip:hover { background: rgba(100,160,255,0.15); color: #8bb8ff; }
body.dark-mode .date-chip.active { background: #0d6efd; color: #fff; }

/* === CABECERA DE GRUPO DE FECHA (resultados multi-día) === */
.date-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
    border-left: 3px solid #0d6efd;
}
.date-group-header .date-label {
    font-weight: 700;
    font-size: 1rem;
    color: #0d6efd;
    text-transform: capitalize;
}
.date-group-header .date-count {
    font-size: 0.75rem;
    background: #0d6efd;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-weight: 600;
}
body.dark-mode .date-group-header { background: linear-gradient(135deg, rgba(100,160,255,0.1), rgba(100,160,255,0.02)); }

/* ========================================================= */
/* REDISEÑO PREMIUM SELECT2 (GLASSMORPHISM & DARK MODE) */
/* ========================================================= */

/* Layout de Resultados y Filtros */
.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.filters-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .filters-sidebar {
        flex: 0 0 280px;
        max-width: 280px;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    .results-main {
        flex: 1;
    }
}
 /* Búsqueda Rediseñada */
.search-bar-wrapper {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8), rgba(27, 38, 59, 0.8));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.search-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dark-mode .search-container {
    background: rgba(0, 0, 0, 0.2);
}

.pax-widget {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    overflow: visible;
    transition: all 0.3s;
}

.pax-widget:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--bs-primary);
}

.pax-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

.pax-btn:hover {
    background: var(--bs-primary) !important;
    color: white !important;
}

.pax-display-val {
    flex: 1;
    text-align: center;
}

/* Modo Claro Adaptativo */
body:not(.dark-mode) .search-bar-wrapper {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

body:not(.dark-mode) .search-container {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .form-label {
    color: #495057 !important;
}

body:not(.dark-mode) .pax-widget {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .pax-display-val,
body:not(.dark-mode) .pax-btn {
    color: #212529 !important;
}

body:not(.dark-mode) .filter-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #212529;
}

body:not(.dark-mode) .filter-option {
    color: #495057;
}

body:not(.dark-mode) .date-chip {
    background: rgba(0, 0, 0, 0.05);
    color: #495057;
}

body:not(.dark-mode) .date-chip.active {
    background: var(--bs-primary);
    color: white;
}

.filters-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) transparent;
    padding-right: 10px;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
    border-radius: 20px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.dark-mode .filter-card {
    background: rgba(0, 0, 0, 0.2);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-option:hover {
    color: var(--bs-primary);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--bs-primary);
}

.price-display {
    font-weight: bold;
    color: var(--bs-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.flight-card-container {
    transition: all 0.3s ease;
}

.flight-card-container.filtered-out {
    display: none;
}

/* Select2 Premium Styles removed - now in assets/css/select2_premium.css */
