/* assets/css/flight_results_premium.css - UNIFIED LUXURY BOARDING PASS */

.flight-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1.5rem;
}

/* Premium Flight Card (Boarding Pass Layout) */
.premium-flight-card {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(7, 50, 111, 0.05);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    transition: var(--transition-smooth, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    border: 1px solid rgba(7, 50, 111, 0.08);
    position: relative;
    color: var(--lm-ink, #0c1724);
}

body.dark-mode .premium-flight-card {
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #edf7fb;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.premium-flight-card:hover {
    transform: translateY(-5px);
    border-color: var(--lm-teal, #00a9bd);
    box-shadow: 0 25px 50px rgba(0, 169, 189, 0.12);
}

/* Airline Section */
.card-airline-section {
    padding: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    flex: 0 0 190px;
    background: rgba(7, 50, 111, 0.02);
    border-right: 1px dashed rgba(7, 50, 111, 0.1);
}

body.dark-mode .card-airline-section {
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px dashed rgba(255, 255, 255, 0.08);
}

.airline-logo-img {
    max-width: 140px;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
}

/* Route Section */
.card-route-section {
    flex: 1;
    padding: 1.8rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.6rem;
}

.time-box {
    text-align: left;
}

.time-box.arrival {
    text-align: right;
}

.flight-time {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0;
    display: block;
    color: var(--lm-navy, #07326f);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

body.dark-mode .flight-time {
    color: #ffffff;
}

.flight-date {
    font-size: 0.85rem;
    color: var(--lm-muted, #64748b);
    text-transform: uppercase;
    font-weight: 600;
}

body.dark-mode .flight-date {
    color: #a4b3c6;
}

/* Route Path Visualizer */
.route-path-visual {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lm-teal), var(--lm-blue), var(--lm-gold));
    opacity: 0.6;
    z-index: 1;
}

body.dark-mode .path-line {
    opacity: 0.4;
}

.path-dot {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--lm-teal, #00a9bd);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 169, 189, 0.4);
}

body.dark-mode .path-dot {
    background: var(--lm-navy);
}

.path-dot.origin { left: 0; }
.path-dot.destination { left: 100%; border-color: var(--lm-gold, #f3bd45); box-shadow: 0 0 10px rgba(243, 189, 69, 0.4); }

.path-stop {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--lm-gold, #f3bd45);
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 8px rgba(243, 189, 69, 0.4);
}

.path-plane-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: transparent;
    color: var(--lm-teal, #00a9bd);
    padding: 0 12px;
    z-index: 3;
    font-size: 1.1rem;
    transition: var(--transition-smooth, all 0.4s cubic-bezier(0.1, 0.8, 0.3, 1.0));
}

.premium-flight-card:hover .path-plane-icon {
    color: var(--lm-gold, #f3bd45);
    transform: translate(-50%, -50%) rotate(45deg) translateX(15px);
    text-shadow: 0 0 8px rgba(243, 189, 69, 0.5);
}

.duration-label {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    color: var(--lm-muted, #64748b);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
}

body.dark-mode .duration-label {
    color: #a4b3c6;
}

.airport-codes {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--lm-navy, #07326f);
    font-family: 'Outfit', sans-serif;
}

body.dark-mode .airport-codes {
    color: #ffffff;
}

/* Price Section */
.card-price-section {
    padding: 1.8rem;
    min-width: 230px;
    background: linear-gradient(135deg, var(--lm-navy), var(--lm-blue));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
}

.price-details-box {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.detail-row {
    margin-bottom: 0.4rem;
    opacity: 0.85;
    font-weight: 500;
}

.price-main {
    font-size: 1.85rem;
    font-weight: 850;
    margin-bottom: 1rem;
    display: block;
    font-family: 'Outfit', sans-serif;
    color: var(--lm-gold, #f3bd45);
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn-select-flight {
    background: #fff;
    color: var(--lm-navy, #07326f);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none !important;
    transition: var(--transition-smooth, all 0.2s);
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: 'Outfit', sans-serif;
    border: none;
}

.btn-select-flight:hover {
    background: var(--lm-gold, #f3bd45);
    color: var(--lm-navy, #07326f);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 189, 69, 0.35);
}

.btn-select-flight:active {
    transform: translateY(0);
}

/* --------------------------------------------------------- */
/* CRITICAL SELECTION STATES (EXACT JS BINDING CLASSES) */
/* --------------------------------------------------------- */

.flight-radio-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Ida Seleccionada (Dynamic Selected State from JS) */
.premium-flight-card.card-selected,
.flight-option-card.card-selected {
    background: linear-gradient(135deg, rgba(7, 50, 111, 0.95), rgba(7, 87, 168, 0.92)) !important;
    border: 2px solid var(--lm-gold, #f3bd45) !important;
    box-shadow: 0 25px 60px rgba(7, 50, 111, 0.4), 0 0 25px rgba(243, 189, 69, 0.3) !important;
}

.premium-flight-card.card-selected *,
.flight-option-card.card-selected * {
    color: #ffffff !important;
}

.premium-flight-card.card-selected .price-main,
.flight-option-card.card-selected .price-main {
    color: var(--lm-gold, #f3bd45) !important;
}

.premium-flight-card.card-selected .btn-select-flight,
.flight-option-card.card-selected .btn-select-flight {
    background: linear-gradient(135deg, #f2bd42 0%, #cca33b 100%) !important;
    color: var(--lm-navy, #07326f) !important;
    border-color: transparent !important;
}

/* Vuelta Seleccionada (Dynamic Return Selected State from JS) */
.premium-flight-card.card-selected-return,
.flight-option-card.card-selected-return {
    background: linear-gradient(135deg, rgba(0, 169, 189, 0.95), rgba(7, 87, 168, 0.92)) !important;
    border: 2px solid var(--lm-gold, #f3bd45) !important;
    box-shadow: 0 25px 60px rgba(0, 169, 189, 0.35), 0 0 25px rgba(243, 189, 69, 0.3) !important;
}

.premium-flight-card.card-selected-return *,
.flight-option-card.card-selected-return * {
    color: #ffffff !important;
}

.premium-flight-card.card-selected-return .price-main,
.flight-option-card.card-selected-return .price-main {
    color: var(--lm-gold, #f3bd45) !important;
}

.premium-flight-card.card-selected-return .btn-select-flight,
.flight-option-card.card-selected-return .btn-select-flight {
    background: linear-gradient(135deg, #f2bd42 0%, #cca33b 100%) !important;
    color: var(--lm-navy, #07326f) !important;
    border-color: transparent !important;
}

/* Responsiveness */
@media (max-width: 991px) {
    .premium-flight-card {
        flex-direction: column;
    }
    .card-airline-section {
        flex: 0 0 auto;
        padding: 1.8rem;
        border-bottom: 1px dashed rgba(7, 50, 111, 0.1);
        border-right: none;
    }
    body.dark-mode .card-airline-section {
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    }
    .card-price-section {
        flex: 0 0 auto;
        text-align: center;
        border-left: none;
        border-top: 1px dashed rgba(255, 255, 255, 0.15);
    }
    .price-main {
        text-align: center;
    }
}

/* Collapsible Flight Details and Timeline Styling */
.airline-logo-small-row {
    max-height: 20px;
    max-width: 50px;
    object-fit: contain;
}
.flight-details-expanded {
    background-color: #f8f9fa;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(7, 50, 111, 0.08);
}
body.dark-mode .flight-details-expanded {
    background-color: #112233;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.segment-timeline-item {
    margin-bottom: 1.5rem;
}
.layover-timeline-box {
    margin: 1rem 0;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}
body.dark-mode .layover-timeline-box {
    background: rgba(255, 193, 7, 0.05) !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
}
.border-start.border-2.border-primary-subtle {
    border-left: 2px solid rgba(0, 169, 189, 0.3) !important;
}
body.dark-mode .border-start.border-2.border-primary-subtle {
    border-left: 2px solid rgba(243, 189, 69, 0.3) !important;
}
