:root {
    --united-blue: #1414D2;
    --dark-blue: #051464;
    --medium-blue: #276EF1;
    --light-blue: #A5EBFF;
    --success-green: #2ECC71;
    --background: #F7F4F2;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Plak', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #e8f4f8 100%);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, var(--united-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(20, 20, 210, 0.3);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.header .coordination {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.header .coordination a {
    color: var(--light-blue);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header .coordination a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header .travel-time {
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    background: var(--united-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 20, 210, 0.3);
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 20, 210, 0.4);
}

.btn.active {
    background: var(--success-green);
    box-shadow: 0 4px 15px rgba(90, 210, 140, 0.3);
}

.flights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.flight-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--success-green);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-map {
    height: 120px;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
}

.flight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-green) 0%, var(--medium-blue) 100%);
}

.flight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.flight-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--united-blue);
}

.status-badge {
    background: var(--success-green);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.route-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.airport {
    text-align: center;
    flex: 1;
}

.airport-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.airport-time {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.2rem;
}

.route-line {
    flex: 2;
    height: 2px;
    background: linear-gradient(90deg, var(--united-blue), var(--medium-blue), var(--united-blue));
    margin: 0 1rem;
    position: relative;
}

.route-line::after {
    content: '✈️';
    position: absolute;
    right: -10px;
    top: -8px;
    font-size: 1rem;
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.detail-value {
    font-weight: 600;
    color: var(--dark-blue);
}

.map-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.map-container.active {
    display: block;
}

.map-container h2 {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    color: var(--united-blue);
    text-align: center;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 0 0 15px 15px;
}

.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer p {
    opacity: 0.9;
}

.check-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-green);
    display: inline-block;
}

.content-container {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-container.active {
    display: block;
}

.section-title {
    text-align: center;
    color: var(--united-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Media Coverage Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.media-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--gray);
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gray) 0%, var(--medium-blue) 100%);
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-left-color: var(--united-blue);
}

.media-card:hover::before {
    background: linear-gradient(90deg, var(--united-blue) 0%, var(--medium-blue) 100%);
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.media-outlet {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--united-blue);
}

.media-date {
    font-size: 0.85rem;
    color: var(--gray);
    background: rgba(102, 102, 102, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.media-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.media-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--united-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.media-link:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

.media-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.media-link:hover::after {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flights-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .flight-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .map-container {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100vw - 2rem);
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .header {
        padding: 1.5rem 0.5rem;
    }
    
    .flight-card, .media-card {
        padding: 1rem;
    }
    
    .airport-code {
        font-size: 1.2rem;
    }
    
    .flight-details {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 400px;
    }
}