/* =========================================================
   🧭 GUNK MAPS: HEADER CENTER COMPASS (SUNLIGHT EDITION)
   ========================================================= */

   .header-center-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px; /* Ensures the grid doesn't collapse */
    height: 100%;
}

#nav-compass-btn {
    /* 1. Layout & Positioning */
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    cursor: pointer !important;
    z-index: 1010;
    
    /* 2. Sophisticated Aesthetic */
    background: rgba(26, 28, 26, 0.95) !important;
    border: 1.5px solid #FFD700 !important;
    border-radius: 6px !important;
    color: #FFD700 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    
    /* 3. Typography */
    font-family: "Georgia", serif;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;

    /* 4. Desktop Dimensions (Default) */
    height: 38px !important;
    padding: 0 20px !important;
    font-size: 11px !important;
    gap: 10px;
    
    /* 5. Animation & Initial State (Hidden) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. The "Is Ready" State (Revealed by JS) */
#nav-compass-btn.is-ready {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* 7. Hover Effects */
#nav-compass-btn:hover {
    background: #FFD700 !important;
    color: #1a1c1a !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

/* 📱 Sleek Mobile Scaling */
@media (max-width: 600px) {
    #nav-compass-btn {
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 9px !important;
        gap: 6px;
        letter-spacing: 0.8px;
    }
}

/* 🤏 Ultra-Narrow Phone Fix (e.g., iPhone SE) */
@media (max-width: 360px) {
    #nav-compass-btn .compass-text {
        display: none; /* Hide text, keep only the 🚌 icon to prevent crowding */
    }
    #nav-compass-btn {
        padding: 0 10px !important;
        min-width: 40px;
    }
}



/* =========================================================
   🧭 GUNK MAPS: PREMIUM TOUR OVERLAY (SUNLIGHT EDITION)
   ========================================================= */

#nav-menu-overlay {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(235, 245, 255, 0.4) !important; 
    z-index: 999999 !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: blur(12px) saturate(140%) !important; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(1.02);
}

.nav-menu-content {
    background: linear-gradient(145deg, #ffffff, #f7fcf2) !important;
    width: 92% !important;
    max-width: 430px !important;
    padding: 35px !important;
    border-radius: 32px !important;
    border: 2px solid #e0ede0 !important;
    box-shadow: 0 30px 70px rgba(46, 125, 50, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    color: #2e4a2e !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* =========================================================
   📜 HEADER & CUSTOM SCROLLBARS
   ========================================================= */

.nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav-menu-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #1b5e20, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-nav-btn {
    background: #f1f8e9 !important;
    border: 1px solid #dcedc8 !important;
    color: #558b2f !important;
    width: 42px; height: 42px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-nav-btn:hover {
    background: #ffebee !important;
    border-color: #ef9a9a !important;
    color: #c62828 !important;
    transform: rotate(90deg) scale(1.1);
}

.tour-list-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: #dcedc8 transparent;
}

.tour-list-container::-webkit-scrollbar { width: 6px; }
.tour-list-container::-webkit-scrollbar-track { background: transparent; }
.tour-list-container::-webkit-scrollbar-thumb { background: #dcedc8; border-radius: 10px; }

/* =========================================================
   🚲 TOUR ITEMS & BLUE NAVIGATION BUTTONS
   ========================================================= */

.tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
    padding: 20px 25px !important;
    border-radius: 22px !important;
    border: 1px solid #e8f5e9 !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInScale 0.5s ease-out backwards;
}

.tour-item:hover {
    background: #f9fff9 !important;
    transform: translateY(-3px) scale(1.01);
    border-color: #a5d6a7 !important;
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.08) !important;
}

.tour-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1b5e20;
    letter-spacing: -0.3px;
}

.tour-nav-go {
    background: linear-gradient(135deg, #42a5f5, #1e88e5) !important;
    border: none !important;
    color: white !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 24px !important;
    border-radius: 14px !important;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tour-nav-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.45) !important;
    filter: brightness(1.1);
}

/* =========================================================
   🎚️ THE PREMIUM TOGGLE (SWITCH)
   ========================================================= */

.switch { position: relative; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f0f0f0; border-radius: 40px; 
    transition: .4s; border: 1px solid #e0e0e0;
}

.slider:before {
    position: absolute; content: "";
    height: 26px; width: 26px; left: 4px; bottom: 3px;
    background-color: #fff; border-radius: 50%;
    transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

input:checked + .slider { background-color: #66bb6a; border-color: #4caf50; }
input:checked + .slider:before { transform: translateX(26px); }

/* =========================================================
   ✨ ANIMATIONS
   ========================================================= */

@keyframes modalSlideUp { 
    from { transform: translateY(50px) scale(0.95); opacity: 0; } 
    to { transform: translateY(0) scale(1); opacity: 1; } 
}

@keyframes fadeInScale { 
    from { opacity: 0; transform: scale(0.9) translateY(15px); } 
    to { opacity: 1; transform: scale(1) translateY(0); } 
}

/* Staggered Row Entry */
.tour-item:nth-child(1) { animation-delay: 0.1s; }
.tour-item:nth-child(2) { animation-delay: 0.2s; }
.tour-item:nth-child(3) { animation-delay: 0.3s; }
.tour-item:nth-child(4) { animation-delay: 0.4s; }
.tour-item:nth-child(5) { animation-delay: 0.5s; }

/* Mobile Responsive Tweaks */
@media (max-width: 480px) {
    .nav-menu-content { padding: 25px 20px !important; }
    .tour-name { font-size: 1.1rem; }
    .tour-nav-go { padding: 10px 18px !important; font-size: 0.7rem !important; }
}