/* Custom Mobile Navigation Icon */
.custom-mobile-nav-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
    position: relative;
    transition: all 0.3s ease;
}

/* Explicitly hide mobile nav icon on desktop */
@media (min-width: 769px) {
    .custom-mobile-nav-icon {
        display: none !important;
    }
}

/* Fix positioning to stay inline with booking button */
#logo_right_button {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    /* Align with logo vertically */
    position: relative !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Ensure the booking button doesn't break layout */
#get_ticket {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Fix parent container to allow proper positioning */
.top_bar .standard_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

/* Ensure logo wrapper also centers properly */
#logo_wrapper {
    display: flex !important;
    align-items: center !important;
    z-index: 1 !important;
}

/* Sticky Header Background - Dark Blur Backdrop */
.top_bar {
    width: 100% !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* When scrolled past hero section - add dark blur background */
.top_bar.scrolled,
.top_bar.fixed,
.top_bar.scroll_up {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure full width for sticky header */
.top_bar.scrolled .standard_wrapper,
.top_bar.fixed .standard_wrapper,
.top_bar.scroll_up .standard_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.custom-hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.custom-mobile-nav-icon:hover .custom-hamburger-line {
    background: #8B4513;
}

.custom-mobile-nav-icon.active .custom-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-mobile-nav-icon.active .custom-hamburger-line:nth-child(2) {
    opacity: 0;
}

.custom-mobile-nav-icon.active .custom-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.custom-mobile-overlay {
    position: fixed;
    margin-top: 10px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.custom-mobile-overlay.show {
    visibility: visible;
    opacity: 1;
}

.custom-mobile-menu-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-mobile-overlay.show .custom-mobile-menu-container {
    transform: translateX(0);
}

/* Mobile Menu Header */
.custom-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-mobile-logo img {
    height: 40px;
    width: auto;
}

.custom-mobile-close-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.custom-close-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.custom-close-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-close-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-mobile-close-btn:hover .custom-close-line {
    background: #8B4513;
}

/* Mobile Navigation Menu */
.custom-mobile-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.custom-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-mobile-link {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.custom-mobile-link i {
    margin-right: 15px;
    font-size: 20px;
    width: 25px;
    text-align: center;
    color: #8B4513;
}

.custom-mobile-link:hover,
.custom-current-page .custom-mobile-link {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    padding-left: 40px;
}

.custom-mobile-link:hover i,
.custom-current-page .custom-mobile-link i {
    color: white;
}

/* Mobile Footer */
.custom-mobile-footer {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.custom-social-link {
    width: 45px;
    height: 45px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.custom-social-link:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

.custom-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    max-width: 220px;
    margin: 0 auto;
    padding: 12px 16px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-book-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.custom-book-btn:hover {
    background: linear-gradient(45deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

/* Responsive Display */
@media (max-width: 768px) {
    .custom-mobile-nav-icon {
        display: flex;
    }
    
    #main_menu {
        display: none !important;
    }
    
    /* Hide original mobile nav */
    #mobile_nav_icon {
        display: none !important;
    }
    
    /* Ensure proper alignment on mobile */
    #logo_right_button {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .top_bar .standard_wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 60px !important;
        /* Move header down 6px on mobile */
        margin-top: 10px !important;
        padding-top: 0px !important;
    }
    
    #logo_wrapper {
        display: flex !important;
        align-items: center !important;
    }
    
    #get_ticket {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #logo_right_button {
        gap: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .top_bar .standard_wrapper {
        min-height: 50px !important;
        /* Move header down 6px on extra small screens */
        margin-top: 10px !important;
        padding-top: 0px !important;
    }
    
    #get_ticket {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .custom-mobile-nav-icon {
        width: 25px;
        height: 20px;
    }
}

/* Prevent body scroll when menu is open */
body.custom-mobile-menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Animation delays for menu items */
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(1) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.1s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(2) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.2s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(3) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.3s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(4) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.4s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(5) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.5s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(6) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.6s both; }
.custom-mobile-overlay.show .custom-mobile-menu-item:nth-child(7) .custom-mobile-link { animation: slideInFromLeft 0.4s ease 0.7s both; }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer mobile menu styles */
.mobile_main_nav a:hover,
.mobile_main_nav .current-menu-item a {
    color: #8B4513;
}

.social_wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social_wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social_wrapper a {
    color: #8B4513;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social_wrapper a:hover {
    color: white;
}

/* Mobile menu icon */
#mobile_nav_icon {
    display: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    #mobile_nav_icon {
        display: block;
    }
    
    #main_menu {
        display: none;
    }
}

/* Ensure proper z-index layering */
.mobile_menu_wrapper * {
    pointer-events: auto;
}