/* mobile-flight-selection.css - TOTAL APP-STYLE OVERHAUL */

/* ===== MOBILE ONLY - COMPLETE REDESIGN ===== */
@media (max-width: 768px) {
    
    /* ===== HIDE DESKTOP LAYOUT COMPLETELY ===== */
    .step-5 .flight-options,
    .step-5 .flight-direction {
        display: none !important;
    }
    
    /* ===== CREATE NEW MOBILE APP STRUCTURE ===== */
    .step-5::after {
        content: '';
        display: block;
    }
    
    /* ===== MOBILE FLIGHT APP CONTAINER ===== */
    .mobile-flight-app {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #091924 0%, #0f2a3a 100%);
        z-index: 999;
        display: none;
        flex-direction: column;
        font-family: 'Barlow' !important;
    }
    
    .mobile-flight-app.active {
        display: flex;
    }
    
    /* ===== MINIMERET APP HEADER ===== */
    .mobile-flight-header {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        padding: 12px 15px 8px 15px;
        color: white;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 65px;
        z-index: 99999999;
    }
    
    .mobile-flight-close {
        display: none;
    }
    
    .mobile-flight-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 2px;
        text-align: center;
        opacity: 0.9;
    }
    
    .mobile-flight-subtitle {
        font-size: 11px;
        opacity: 0.6;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* ===== KOMPAKT FLIGHT DIRECTION TABS ===== */
    .mobile-flight-tabs {
        display: flex;
        background: rgba(255, 255, 255, 0.05);
        margin: 0 15px;
        border-radius: 20px;
        padding: 3px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .mobile-flight-tab {
        flex: 1;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        padding: 8px 12px;
        border-radius: 16px;
        font-family: 'Barlow';
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .mobile-flight-tab.active {
        background: #08605F;
        color: white;
        box-shadow: 0 1px 6px rgba(8, 96, 95, 0.4);
    }
    
    /* ===== MINIMERET AIRPORT SELECTOR ===== */
    .mobile-airport-selector {
        padding: 8px 15px 6px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .mobile-airport-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .mobile-airport-option {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        padding: 6px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-airport-option.active {
        background: #08605F;
        border-color: #08605F;
        box-shadow: 0 1px 4px rgba(8, 96, 95, 0.4);
    }
    
    /* ===== FLIGHT CONTENT AREA - MERE PLADS TIL FLYENE ===== */
    .mobile-flight-content {
        flex: 1;
        overflow-y: auto;
        position: relative;
        background: white;
        border-radius: 16px 16px 0 0;
        margin-top: 8px;
        padding-bottom: 100px; /* Plads til complete button */
    }
    
    .mobile-flight-section {
        display: none;
        padding: 15px 12px;
        min-height: 100%;
    }
    
    .mobile-flight-section.active {
        display: block;
    }
    
    /* ===== OPDATERET: FLIGHT CARDS MED RIGTIGE BAGGRUNDE ===== */
    .mobile-flight-card {
        /* ÆNDRET: Fra hvid til lys grøn baggrund */
        background: linear-gradient(135deg, #e8f5f3 0%, #d4f1ed 100%);
        border-radius: 20px;
        margin-bottom: 15px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 2px solid #b8e6df;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        /* TILFØJET: Sikrer tekst er synlig på lys baggrund */
        color: #091924;
    }
    
    .mobile-flight-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(8, 96, 95, 0.15);
        border-color: #08605F;
    }
    
    /* OPDATERET: Adskil selected og included styling */
    .mobile-flight-card.selected {
        border-color: #025b4e;
        /* DIN ØNSKEDE gradient for valgte */
        background: linear-gradient(135deg, #025b4e 0%, #044d44 100%);
        box-shadow: 0 8px 30px rgba(2, 91, 78, 0.3);
        color: white;
    }
    
    .mobile-flight-card.included {
        /* ÆNDRET: Fra hvid til lys grøn baggrund */
        background: linear-gradient(135deg, #e8f5f3 0%, #d4f1ed 100%);
        border-radius: 20px;
        margin-bottom: 15px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 2px solid #b8e6df;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        /* TILFØJET: Sikrer tekst er synlig på lys baggrund */
        color: #091924;
    }
    
    /* ===== CARD HEADER - TIME & PRICE ===== */
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .mobile-flight-times {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-time {
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
    }
    
    .mobile-flight-arrow {
        color: #08605F;
        font-size: 20px;
        position: relative;
    }
    
    /* Sørg for at arrow er synlig på både baggrunde */
    .mobile-flight-card.selected .mobile-flight-arrow {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-card-price {
        text-align: right;
        flex-shrink: 0;
    }
    
    .mobile-price-main {
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
    }
    
    .mobile-price-sub {
        font-size: 12px;
        opacity: 0.7;
        margin-top: 2px;
    }
    
    .mobile-included-badge {
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* ===== CARD BODY - COMPACT INFO ===== */
    .mobile-card-body {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-flight-card.selected .mobile-card-body,
    .mobile-flight-card.included .mobile-card-body {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-airline-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-airline-logo {
        width: 35px;
        height: 25px;
        background: #f8f9fa;
        border-radius: 6px;
        padding: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-airline-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .mobile-airline-details {
        flex: 1;
    }
    
    /* Fix airline name visibility */
    .mobile-airline-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 2px;
        color: inherit; /* Arver fra parent */
    }
    
    /* Fix duration visibility */
    .mobile-flight-duration {
        font-size: 11px;
        opacity: 0.8;
        display: flex;
        align-items: center;
        gap: 4px;
        color: inherit;
    }
    
    .mobile-flight-badges {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    
    .mobile-badge {
        background: #08605F;
        color: white;
        font-size: 9px;
        font-weight: 700;
        padding: 3px 6px;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .mobile-badge.direct {
        background: #52c41a;
    }
    .mobile-flight-card.selected.included {
        background: linear-gradient(135deg, #025b4e 0%, #044d44 100%);
        box-shadow: 0 6px 25px rgba(8, 96, 95, 0.4);
        color: #ffffff;
    }
    .mobile-flight-card.selected .mobile-badge {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* ===== SELECTION INDICATOR ===== */
   .mobile-selection-indicator {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 24px;
        height: 24px;
        border: 2px solid #e0e0e0;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        margin-right: 50px;
        color: #000;

    }
        
    
    .mobile-flight-card.included .mobile-selection-indicator {
        display:none;
    }

    .mobile-flight-card.selected .mobile-selection-indicator {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-selection-checkmark {
        color: white;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .mobile-flight-card.selected .mobile-selection-checkmark,
    .mobile-flight-card.included .mobile-selection-checkmark {
        opacity: 1;
    }
    
    /* ===== STYLING FOR COMPLETE BUTTON ===== */
    .mobile-complete-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1000;
        padding: 0;
    }
    
    .mobile-complete-booking-btn {
        width: 100%;
        background: linear-gradient(135deg, #08605F 0%, #066b69 100%);
        color: white;
        border: none;
        padding: 16px 24px;
        border-radius: 25px;
        font-family: 'Barlow';
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(8, 96, 95, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-complete-booking-btn:hover {
        background: linear-gradient(135deg, #025b4e 0%, #044d45 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(8, 96, 95, 0.4);
    }
    
    .mobile-success-notice {
        background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
        color: white;
        padding: 16px 24px;
        border-radius: 25px;
        text-align: center;
        font-family: 'Barlow';
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 4px 20px rgba(82, 196, 26, 0.3);
        animation: slideInUp 0.4s ease-out;
    }
    
    /* ===== LOADING STATE ===== */
    .mobile-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        text-align: center;
    }
    
    .mobile-loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f0f2f5;
        border-top-color: #08605F;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }
    
    .mobile-loading-text {
        font-size: 16px;
        font-weight: 600;
        color: #666;
        margin-bottom: 5px;
    }
    
    .mobile-loading-subtext {
        font-size: 14px;
        color: #999;
    }
    
    /* ===== ERROR STATE ===== */
    .mobile-error {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
    }
    
    .mobile-error-icon {
        font-size: 48px;
        color: #ff6b6b;
        margin-bottom: 15px;
    }
    
    .mobile-error-text {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }
    
    .mobile-error-subtext {
        font-size: 14px;
        color: #666;
        margin-bottom: 20px;
    }
    
    .mobile-retry-btn {
        background: #08605F;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 20px;
        font-family: 'Barlow';
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-retry-btn:hover {
        background: #066b69;
        transform: translateY(-1px);
    }
    
    /* ===== SUCCESS TOAST ===== */
    .mobile-success-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #08605F;
        color: white;
        padding: 15px 25px;
        border-radius: 25px;
        font-family: 'Barlow';
        font-weight: 600;
        font-size: 16px;
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
        box-shadow: 0 8px 30px rgba(8, 96, 95, 0.4);
    }
    
    .mobile-success-toast.show {
        opacity: 1;
    }
    
    /* ===== ANIMATIONS ===== */
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-flight-card {
        animation: slideInUp 0.4s ease-out;
        animation-fill-mode: both;
    }
    
    .mobile-flight-card:nth-child(1) { animation-delay: 0.1s; }
    .mobile-flight-card:nth-child(2) { animation-delay: 0.2s; }
    .mobile-flight-card:nth-child(3) { animation-delay: 0.3s; }
    .mobile-flight-card:nth-child(4) { animation-delay: 0.4s; }
    .mobile-flight-card:nth-child(5) { animation-delay: 0.5s; }
    
    /* ===== SWIPE GESTURES ===== */
    .mobile-flight-card.swiping {
        transform: translateX(0);
        transition: none;
    }
    
    .mobile-flight-card.swipe-accept {
        transform: translateX(100px);
        opacity: 0.7;
        background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
        color: white;
    }
    
    .mobile-flight-card.swipe-reject {
        transform: translateX(-100px);
        opacity: 0.7;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        color: white;
    }
    
    /* ===== COMPACT MODE TOGGLE ===== */
    .mobile-view-toggle {
        display: flex;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        padding: 3px;
        margin: 15px 15px 20px 15px;
    }
    
    .mobile-toggle-btn {
        flex: 1;
        background: none;
        border: none;
        padding: 8px 12px;
        border-radius: 16px;
        font-family: 'Barlow';
        font-weight: 600;
        font-size: 12px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
    }
    
    .mobile-toggle-btn.active {
        background: white;
        color: #08605F;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    #travelers-info-form {
        color:white;
    }
    /* FJERNET: Trigger button styling */
}

/* ===== DESKTOP FALLBACK - SHOW NOTHING NEW ===== */
@media (min-width: 769px) {
    .mobile-flight-app {
        display: none !important;
    }
}
