/* Dropdown Navigation Styles for Hurghada Tours Hub */

/* Main Navigation Container */
html body .hurghada-nav>ul.menu,
html body .hurghada-nav>ul {
    display: flex !important;
    gap: 0.25rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
}

html body .hurghada-nav>ul>li,
html body .hurghada-nav>ul>li.menu-item {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
    float: none !important;
    width: auto !important;
}

.hurghada-nav a {
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: block;
}

.hurghada-nav a:hover {
    color: #F97316;
}

/* Dropdown Arrow */
.has-dropdown>a::after {
    content: ' ▾';
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 200px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    list-style: none;
}

/* Show Dropdown on Hover */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    display: block !important;
}

.dropdown li {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.dropdown a:hover {
    background: #FEF7E8;
}

/* Contact CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    color: white !important;
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

/* Hamburger Button - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: 2px solid #115E59;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f0fdfa;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #115E59;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

/* Hamburger Animation when Open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 992px) {

    /* Show Hamburger - Force display */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
    }

    /* Force header layout */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1rem !important;
    }

    .site-branding {
        order: 1;
    }

    .hurghada-nav {
        order: 3;
    }

    /* Header Layout */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Hide Desktop Nav */
    .hurghada-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 80px 0 2rem 0;
        overflow-y: auto;
        transition: right 0.4s ease;
    }

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

    .hurghada-nav>ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .hurghada-nav>ul>li {
        border-bottom: 1px solid #e2e8f0;
    }

    .hurghada-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
    }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #f8fafc;
        margin: 0;
        padding: 0;
        border-radius: 0;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block !important;
    }

    .dropdown a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
        color: #475569;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* CTA Button Mobile */
    .nav-cta {
        margin: 1rem 1.5rem;
        text-align: center;
        display: block !important;
    }
}