/* Delta Fonts and Variables */
:root {
    --delta-navy: #001F41;
    --delta-navy-light: #002D62;
    --delta-red: #E3132C;
    --delta-red-hover: #C01025;
    --text-primary: #1A1A1A;
    --text-secondary: #5E6266;
    --bg-page: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-light: #E0E2E5;
    --link-blue: #0076B6;
    --font-stack: "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Material Icons Helper */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* 1. Global Header */
.global-header {
    background-color: var(--delta-navy);
    color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo img.delta-img {
    height: 28px;
    width: auto;
    margin-right: 16px;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 24px 0;
    position: relative;
    transition: color 0.2s;
}

.primary-nav a:hover {
    color: #ccc;
}

.primary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--delta-red);
}

.nav-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255,255,255,0.3);
}

.header-right a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-login {
    background-color: var(--delta-red);
    padding: 8px 24px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: var(--delta-red-hover);
}

.notification-icon {
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--delta-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* 2. Secondary Tabs */
.header-tabs-container {
    background-color: var(--bg-white);
    margin: 0 40px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-tabs {
    list-style: none;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.header-tabs li {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.header-tabs li .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.header-tabs li:hover {
    background-color: #F8F9FA;
}

.header-tabs li.active {
    background-color: var(--bg-white);
    color: var(--delta-navy);
}

.header-tabs li.active .material-symbols-outlined {
    color: var(--delta-navy);
}

.header-tabs li:last-child {
    margin-left: auto;
    font-weight: 500;
    font-size: 13px;
}

.external-link {
    font-size: 14px !important;
}


/* 3. Booking Widget */
.booking-section {
    position: relative;
    background-color: var(--bg-white);
    padding: 24px 40px;
    margin: 0 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
}

.widget-container {
    max-width: 1320px;
    margin: 0 auto;
}

.widget-row.primary-inputs {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
}

.input-block {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-block:hover {
    border-color: var(--delta-navy);
}

.location-block {
    flex: 1.5;
    position: relative;
}

.location-code {
    font-size: 24px;
    font-weight: 700;
    color: var(--delta-navy);
    line-height: 1.2;
}

.location-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.swap-btn {
    background: none;
    border: none;
    color: var(--delta-red);
    cursor: pointer;
    padding: 0 8px;
}

.dropdown-block, .date-block, .passenger-block {
    flex: 1.2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-block span:first-child, .date-block span:first-child, .passenger-block span:first-child {
    color: var(--text-secondary);
    margin-right: 8px;
}

.dropdown-arrow {
    margin-left: 8px;
}

.btn-find-flights {
    background-color: var(--delta-red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-find-flights:hover {
    background-color: var(--delta-red-hover);
}

/* Secondary Row (Checkboxes) */
.secondary-options {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.custom-checkbox.filled {
    background-color: var(--delta-navy);
    border-color: var(--delta-navy);
}

.help-icon {
    font-size: 18px;
    color: var(--link-blue);
    margin-left: 4px;
}

.advanced-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 600;
}


/* 4. Hero Section */
.hero-image {
    position: relative;
    height: 600px;
    margin-top: -150px; /* Pulls background up behind the widget */
    background: url('https://images.unsplash.com/photo-1516483638261-f4085ee6bd0f?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
    margin-top: 100px; /* Offset for the widget above */
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.4;
}

.btn-explore {
    display: inline-block;
    background-color: var(--delta-red);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-explore:hover {
    background-color: var(--delta-red-hover);
}


/* 5. Experience Section */
.experience-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.section-title {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 36px;
    color: var(--delta-navy);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 800;
}

.info-card.wide {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 32px;
    align-items: center;
    gap: 40px;
}

.info-icon {
    flex-shrink: 0;
}

.large-icon {
    font-size: 100px;
    color: var(--delta-navy);
}

.info-text h4 {
    font-size: 24px;
    color: var(--delta-navy);
    margin-bottom: 16px;
    font-weight: 700;
}

.info-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-link {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.card-link:hover {
    text-decoration: underline;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background-position: center;
    background-size: cover;
}

.card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 22px;
    color: var(--delta-navy);
    margin-bottom: 16px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.map-card, .app-card {
    padding: 0;
    overflow: hidden;
}

.map-card .info-text, .app-card .info-text {
    padding: 40px;
    flex: 1;
}

.map-img-container, .app-img-container {
    flex: 1;
    height: 100%;
    min-height: 300px;
}

.map-img-container img, .app-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 6. Footer */
.global-footer {
    background-color: var(--delta-navy);
    color: white;
    padding-top: 64px;
}

.footer-search {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}

.search-box {
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.search-box .material-symbols-outlined {
    color: var(--text-secondary);
}

.popular-topics {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
}

.popular-topics span {
    color: #999;
}

.popular-topics a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto 64px;
    gap: 32px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #CCC;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.5;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-col .ext {
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: var(--delta-navy-light);
    padding: 32px 40px;
    text-align: center;
}

.disclaimer {
    color: #999;
    font-size: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright-line p {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.copyright-line a {
    color: white;
    text-decoration: none;
}

.social-locale {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.locale-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
    .widget-row.primary-inputs {
        flex-wrap: wrap;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-card.wide {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-left .primary-nav { display: none; }
    .header-tabs { flex-wrap: wrap; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr; }
}
