/* ============================================
   FLIGHT PAGE BACKGROUND
   Beautiful Blurred Background Image
   ============================================ */

/* ========== FLIGHT PAGE BODY BACKGROUND ========== */
body.flight-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 250, 0.92)),
                url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Alternative: Use local image if available */
body.flight-page-local {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)),
                url('../images/flight-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Blur effect overlay */
body.flight-page::before,
body.flight-page-local::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* ========== CONTENT CONTAINERS ========== */
.flight-page .container,
.flight-page-local .container {
    position: relative;
    z-index: 1;
}

/* ========== FLIGHT CARDS ON BACKGROUND ========== */
.flight-page .flight-card-landing,
.flight-page-local .flight-card-landing {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ========== SECTION BACKGROUNDS ========== */
.flight-page section,
.flight-page-local section {
    background: transparent;
}

.flight-page .section-padding,
.flight-page-local .section-padding {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 3rem 2rem;
}

/* ========== ALTERNATIVE: SECTION-SPECIFIC BACKGROUND ========== */
#flight-offers {
    position: relative;
}

#flight-offers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05), rgba(0, 188, 212, 0.05)),
                url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -1;
}

/* ========== HERO SECTION WITH BACKGROUND ========== */
.flight-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.85), rgba(0, 188, 212, 0.85)),
                url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.flight-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.flight-hero-content {
    position: relative;
    z-index: 2;
}

.flight-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.flight-hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body.flight-page,
    body.flight-page-local {
        background-attachment: scroll;
    }
    
    #flight-offers::before {
        background-attachment: scroll;
    }
    
    .flight-hero {
        background-attachment: scroll;
        min-height: 300px;
        padding: 3rem 1.5rem;
    }
}
