/* Push the Hero and all main content down so the 80px nav doesn't cover it */
header.hero, main {
    margin-top: var(--nav-height); 
}

/* If you want the video to still be full screen but stay below the nav */
.hero {
    height: calc(100vh - var(--nav-height)) !important;
}

/* --- LUFTHANSA MASTER STYLESHEET --- */
:root {
    --lh-blue: #001f4b;
    --lh-yellow: #ffbc00;
    --lh-grey: #f2f2f2;
    --white: #ffffff;
    --max-width: 1440px;
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background: var(--lh-grey); overflow-x: hidden; color: #333; }

/* LAYOUT PROTECTION */
.content-wrapper, .nav-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* NAVIGATION - UPDATED TO LUFTANSA BLUE */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--lh-blue); /* Changed to Lufthansa Blue per request */
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.nav-hidden { transform: translateY(-100%); }

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white); /* Changed to white for contrast against blue nav */
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo { 
    height: 40px; 
    margin-right: 10px; 
    image-rendering: -webkit-optimize-contrast; 
    filter: brightness(0) invert(1); /* Ensures logo is visible on blue background */
}

/* DESKTOP PILLARS */
.nav-links { display: flex; list-style: none; gap: 30px; }
.pillar-link {
    color: var(--white); /* Changed to white for blue background */
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    list-style: none;
}
.pillar-link:hover { color: var(--lh-yellow); }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.bar { width: 25px; height: 3px; background: var(--white); transition: 0.3s; } /* White bars for blue nav */

/* MEGA PANELS (Desktop) */
.mega-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    display: none;
    padding: 50px 0;
    z-index: 1900;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.mega-panel.active { display: block; animation: slideDown 0.3s ease-out; }
.panel-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px;
}
.menu-col h3 {
    color: var(--lh-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--lh-yellow);
    display: inline-block;
}
.menu-col a {
    display: block;
    text-decoration: none;
    color: #444;
    padding: 8px 0;
    font-size: 0.95rem;
}

/* MOBILE SIDEBAR PANEL */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-panel.open { right: 0; }

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    min-height: 50px;
}

#mobile-back {
    color: var(--lh-blue);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
}

.close-mobile {
    font-size: 2.5rem;
    color: var(--lh-blue);
    cursor: pointer;
    line-height: 1;
}

/* Fix for the bunched links */
.mobile-links, .mobile-sub-menu {
    display: flex;
    flex-direction: column; 
    width: 100%;
}

.mobile-pillar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--lh-blue);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mobile-pillar span { color: var(--lh-yellow); font-size: 1.5rem; }

.mobile-sub-menu a {
    display: block;
    color: var(--lh-blue);
    font-size: 1.2rem;
    padding: 18px 0;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
}

.mobile-cta {
    background: var(--lh-yellow);
    color: var(--lh-blue) !important;
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    margin-top: 30px;
    font-weight: 700;
    text-decoration: none;
}

/* OVERLAY */
.mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1800;
    backdrop-filter: blur(3px);
}
.mega-overlay.active { display: block; }

/* HERO */
.hero { position: relative; height: 100vh; width: 100%; }
#heroVideo { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This z-index must be higher than hero-image (2) */
    z-index: 5; 
    background: linear-gradient(to right, rgba(0,31,75,0.5), transparent);
    display: flex;
    align-items: center;
    /* This allows you to click the trigger pill through the overlay */
    pointer-events: none; 
}

/* Re-enable clicking for buttons inside the overlay */
.hero-overlay .content-wrapper {
    pointer-events: auto;
}
.say-yes { color: var(--white); letter-spacing: 5px; margin-bottom: 10px; font-weight: 300; }
.hero-overlay h1 { color: var(--white); font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; }
.cta-box { display: flex; gap: 20px; }
.btn-gold { background: var(--lh-yellow); color: var(--lh-blue); padding: 15px 30px; text-decoration: none; font-weight: 700; border-radius: 4px; }
.btn-outline { border: 2px solid var(--white); color: var(--white); padding: 15px 30px; text-decoration: none; font-weight: 700; border-radius: 4px; }

/* BREAKPOINT */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-overlay h1 { font-size: 2.5rem; }
    .content-wrapper, .nav-wrapper { padding: 0 20px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10;
}

#muteBtn {
    background: rgba(0, 31, 75, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-radius: 2px;
}

#muteBtn:hover {
    background: var(--lh-yellow);
    color: var(--lh-blue);
    border-color: var(--lh-yellow);
}

/* Hide mute button on smaller mobile screens if it covers text */
@media (max-width: 600px) {
    .video-controls {
        bottom: 20px;
        right: 20px;
    }
}

/* --- REFINED OPS TAB STYLES --- */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0; /* Extra spacing for main content area */
}

.ops-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures buttons stick to the bottom */
    text-align: center; /* Centers text for better card aesthetics */
    min-height: 300px;
}

.ops-card h3 {
    color: #001f4b;
    margin-bottom: 20px;
    border-left: 4px solid #ffbc00;
    padding-left: 15px;
    text-align: left; /* Keep header bar aligned to left */
}

.ops-card p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

/* REFINED OPS BUTTONS */
.btn-outline-blue {
    border: 2px solid #001f4b;
    color: #001f4b;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    align-self: center; /* Centers the button horizontally in the card */
    width: fit-content;
    min-width: 200px;
}

.btn-outline-blue:hover {
    background: #001f4b;
    color: #fff;
    transform: translateY(-2px);
}

/* Re-applying btn-gold refinement for Ops Tab consistency */
.ops-card .btn-gold {
    align-self: center;
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

/* --- HERO IMAGE TO VIDEO TRANSITION --- */
.hero { 
    position: relative; 
    height: calc(100vh - var(--nav-height)); 
    width: 100%; 
    overflow: hidden;
    background: #000; /* Backdrop for when video is loading */
}

/* The 748.jpg layer */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2; /* Sits above the video */
    opacity: 1; 
    transition: opacity 1.2s ease-in-out; /* Smooth fade-out AND fade-in */
}

#heroVideo { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: 1; /* Sits behind the image */
}

/* --- VIDEO TRIGGER PILL & MUTE BUTTON --- */
.video-trigger {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: rgba(0, 31, 75, 0.8); /* Lufthansa Blue with transparency */
    padding: 12px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.video-trigger:hover {
    background: var(--lh-yellow);
    transform: scale(1.02);
}

.play-icon, .trigger-text {
    color: white;
    transition: 0.3s;
}

.video-trigger:hover .play-icon, 
.video-trigger:hover .trigger-text {
    color: var(--lh-blue);
    font-weight: 700;
}

/* MUTE TOGGLE LOGIC */
.mute-toggle {
    background: white;
    color: var(--lh-blue);
    border: none;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    display: none; /* Hidden until Javascript adds .visible */
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-left: 5px;
}

.mute-toggle.visible {
    display: block;
    opacity: 1;
}

.mute-toggle:hover {
    background: var(--lh-grey);
    transform: scale(1.05);
}

.page-title {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-title h1 {
    color: var(--lh-blue);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--lh-yellow);
    margin: 0 auto 25px;
}

.page-title p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
}


.rank-disclaimer {
    background: rgba(255, 191, 0, 0.1);
    border-left: 5px solid var(--lh-yellow);
    padding: 15px;
    margin-bottom: 30px;
    color: var(--lh-blue);
    font-size: 0.95rem;
}

.section-heading {
    color: var(--lh-blue);
    margin: 40px 0 10px;
    font-size: 1.8rem;
}

.livery-embed {
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}

.livery-card a {
    text-decoration: none;
    display: block;
}

.livery-card:hover .livery-embed {
    filter: brightness(1.1);
}

.livery-label {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.livery-label h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--lh-blue);
}

.livery-label span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

/* --- LIVERY DB SPECIFIC --- */
.livery-grid-side {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This forces 2 side-by-side */
    gap: 25px;
    margin-top: 20px;
}

.livery-card-link {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livery-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.livery-card-link img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.livery-details {
    padding: 20px;
}

.livery-details h3 {
    color: var(--lh-blue);
    margin: 0;
    font-size: 1.2rem;
}

.livery-details p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive: Stack them on small mobile screens */
@media (max-width: 600px) {
    .livery-grid-side {
        grid-template-columns: 1fr;
    }
}

/* --- KOREAN AIR INSPIRED FLEET STYLES --- */
.fleet-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.fleet-category-header {
    margin-top: 60px;
    border-bottom: 2px solid var(--lh-blue);
    padding-bottom: 10px;
}

.fleet-category-header h2 {
    color: var(--lh-blue);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fleet-row {
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.fleet-row:hover {
    background: #f9f9f9;
}

.fleet-img-box {
    flex: 0 0 450px;
    padding-right: 50px;
}

.fleet-img-box img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.fleet-info-box {
    flex: 1;
}

.status-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.tag-service { background: #e3f2fd; color: #1565c0; }
.tag-ordering { background: #e8f5e9; color: #2e7d32; }
.tag-retiring { background: #ffebee; color: #c62828; }

.fleet-info-box h3 {
    font-size: 2.2rem;
    color: #333;
    margin: 0 0 10px 0;
}

.fleet-specs {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.fleet-specs span strong {
    color: var(--lh-blue);
}

@media (max-width: 900px) {
    .fleet-row { flex-direction: column; text-align: center; }
    .fleet-img-box { flex: 0 0 auto; padding-right: 0; margin-bottom: 20px; }
    .fleet-specs { justify-content: center; }
}

/* --- FLEET FILTERING --- */
.filter-container {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    color: var(--lh-blue);
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--lh-blue);
    color: white;
    border-color: var(--lh-blue);
}

.fleet-row.hidden {
    display: none;
}

/* --- STANDARDIZED SPEC BAR --- */
.fleet-specs {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lh-blue);
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--lh-blue);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 2px; /* Sharper edges for the Korean Air look */
    font-weight: 500;
    color: var(--lh-blue);
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--lh-blue);
    color: white;
}

/* --- FLEET PAGE ROUNDED IMAGE FIX --- */
.fleet-img-box {
    flex: 0 0 450px;
    background: white;
    /* This creates the deep "Flight Ops" curve */
    border-radius: 30px !important; 
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    /* CRITICAL: This prevents the image from square-ing out the corners */
    overflow: hidden; 
    margin-right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-img-box img {
    width: 100%;
    height: 100%;
    /* Clips the actual aircraft photo to the box curve */
    border-radius: 22px !important; 
    object-fit: cover;
    display: block;
}

/* Responsive adjustment for mobile */
@media (max-width: 900px) {
    .fleet-img-box {
        flex: 0 0 auto;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* VIEW ORIGINAL BUTTON STYLING */
.sop-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-original {
    background: var(--lh-blue);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--lh-yellow);
    transition: 0.3s;
}

.btn-original:hover {
    background: var(--lh-yellow);
    color: var(--lh-blue);
}

/* Scrollbar styling for a cleaner look */
.sop-sidebar::-webkit-scrollbar { width: 5px; }
.sop-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

:root {
    --lh-blue: #001b44;
    --lh-yellow: #ffbc00;
}

.sop-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,27,68,0.7), rgba(0,27,68,0.7)), url('748.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.say-yes { font-size: 0.9rem; letter-spacing: 4px; color: var(--lh-yellow); margin-bottom: 10px; }

.sop-container {
    display: flex;
    max-width: 1400px;
    margin: -60px auto 100px auto;
    background: #fff;
    min-height: 80vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* SIDEBAR */
.sop-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-group {
    padding: 20px 25px 10px 25px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
}

.sop-tab {
    width: 100%;
    padding: 15px 25px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 5px solid transparent;
    color: var(--lh-blue);
}

.sop-tab:hover { background: #eee; }

.sop-tab.active {
    background: #fff;
    border-left: 5px solid var(--lh-yellow);
    font-weight: bold;
    color: var(--lh-blue);
}

/* CONTENT */
.sop-content {
    flex: 1;
    padding: 60px;
    overflow-y: auto;
}

.sop-article { display: none; }
.sop-article.active { display: block; animation: fadeIn 0.4s ease forwards; }

.sop-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.sop-card h3 {
    margin-top: 0;
    color: var(--lh-blue);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--lh-yellow);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .sop-container { flex-direction: column; margin: 0; border-radius: 0; }
    .sop-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #ddd; }
}
/* --- ROUTE MAP CONTAINER --- */
.route-map-section {
    position: relative;
    max-width: 1400px;
    margin: -60px auto 60px; /* Slight overlap with the hero for depth */
    padding: 0 20px;
    z-index: 10;
}

#map { 
    height: 750px; 
    width: 100%; 
    border-radius: 16px; 
    background: #eef2f6; 
    box-shadow: 0 25px 50px -12px rgba(0, 35, 95, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

#map:focus {
    outline: none;
}

/* --- THE LEGEND OVERLAY --- */
.map-legend { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    padding: 24px; 
    position: absolute; 
    top: 30px; 
    right: 50px; 
    border-radius: 12px; 
    font-family: 'Roboto', sans-serif;
    color: #00235f;
    z-index: 1000; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 4px solid #d4b063; /* Lufthansa Gold accent */
    min-width: 220px;
}

.map-legend h4 {
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.legend-item:last-child { margin-bottom: 0; }

/* Route & Hub Markers */
.dot-hub { 
    width: 12px; 
    height: 12px; 
    background: #d4b063; 
    border-radius: 50%; 
    margin-right: 12px; 
    border: 2px solid #00235f;
    box-shadow: 0 0 5px rgba(212, 176, 99, 0.5);
}

.line-main { 
    height: 3px; 
    width: 30px; 
    background: #00235f; 
    margin-right: 12px; 
    border-radius: 2px;
}

.line-regional { 
    height: 0; 
    width: 30px; 
    border-top: 2px dashed #00235f; 
    margin-right: 12px; 
    opacity: 0.6;
}

/* --- MAP INTERFACE OVERRIDES --- */
.leaflet-tooltip-lufthansa {
    background-color: #00235f;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.leaflet-tooltip-left:before, 
.leaflet-tooltip-right:before {
    display: none; 
}

/* Leaflet Zoom Control Styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.leaflet-control-zoom-in, 
.leaflet-control-zoom-out {
    background-color: #ffffff !important;
    color: #00235f !important;
    border: 1px solid #edf2f7 !important;
    transition: all 0.2s ease;
}

.leaflet-control-zoom-in:hover, 
.leaflet-control-zoom-out:hover {
    background-color: #f7fafc !important;
    color: #d4b063 !important;
}

/* --- RESPONSIVE & MOBILE --- */
@media (max-width: 992px) {
    .route-map-section { margin-top: 20px; }
    .map-legend {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto 0;
        width: calc(100% - 40px);
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    #map {
        height: 500px;
        touch-action: pan-x pan-y; /* Allows page scroll while touching map */
    }
}

/* --- RADAR PAGE SPECIFIC --- */

/* The main container that holds the header and the radar */
.radar-container {
    padding: 140px 20px 80px;
    background-color: #f4f7f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header section styling */
.radar-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
}

.radar-header h1 {
    font-size: 3rem;
    color: #00235f; /* Lufthansa Blue */
    margin: 10px 0;
    font-weight: 700;
}

.radar-header p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* The "Box" that holds the radar iframe */
.radar-frame-wrapper {
    width: 100%;
    max-width: 1400px;
    height: 800px; /* Large view for desktop */
    background: #000;
    border-radius: 20px;
    overflow: hidden; /* Clips the corners of the iframe */
    box-shadow: 0 30px 60px -12px rgba(0, 35, 95, 0.3);
    border: 1px solid rgba(0, 35, 95, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.radar-frame-wrapper:hover {
    transform: translateY(-5px);
}

/* Ensure the iframe fills the entire wrapper */
#radar-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- RESPONSIVE RADAR --- */
@media (max-width: 1024px) {
    .radar-frame-wrapper {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .radar-container {
        padding-top: 100px;
    }
    
    .radar-frame-wrapper {
        height: 500px; /* Shorter on mobile to allow scrolling past it */
        border-radius: 12px;
    }

    .radar-header h1 {
        font-size: 2rem;
    }
}

/* --- Dispatch Tool Styling --- */
.dispatch-tool {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto 50px;
    max-width: 1100px;
    box-shadow: 0 15px 35px rgba(0, 35, 95, 0.12);
    border-top: 4px solid #00235f;
}

.tool-inputs {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }

.field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00235f;
    text-transform: uppercase;
}

.ops-select {
    padding: 12px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #f8f9fb;
}

.btn-calculate {
    background: #d4b063;
    color: #00235f;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-calculate:hover { background: #00235f; color: white; }

/* Result Grid Layout */
.dispatch-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    animation: slideDown 0.4s ease-out;
}

.res-box {
    padding: 15px;
    background: #f1f4f8;
    border-radius: 8px;
    border-left: 3px solid #d4b063;
}

.res-box span { display: block; }
.res-label { font-size: 0.7rem; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.res-value { font-size: 1.1rem; font-weight: 700; color: #00235f; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
