/* 
 * Menu Alignment Fix
 * This CSS will fix the alignment of menu items after removing the reservation button
 * Version 1.0.1
 */

/* Adjust z-index for the header to ensure it stays on top */
.main-header {
    z-index: 9999 !important;
}

/* Better alignment for navigation */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Adjust logo size and alignment */
.logo {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

/* Center the menu items */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* Adjust menu layout */
.menu {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 25px; /* Increase gap between menu items for better spacing */
}

/* Enhance language switcher positioning */
.language-switch {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 0; /* Remove margin since we're using gap in the menu */
    height: 30px;
    position: relative;
    top: -1px; /* Slight adjustment to align properly with nav items */
}

.language-switch button {
    font-weight: 500;
    padding: 0 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-switch button.active,
.language-switch button:hover {
    color: var(--secondary-color);
}

/* Improve menu item alignment and style */
.menu li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.menu li a {
    font-size: 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 0;
    line-height: 80px;
    height: 100%;
}

.menu li a:hover {
    color: var(--secondary-color);
}

/* Mobile menu adjustments */
@media screen and (max-width: 768px) {
    .menu {
        gap: 25px;
        padding: 60px 0; /* More vertical padding for better centering */
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .language-switch {
        margin: 0;
        background: transparent;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 15px; /* Add some space above the language switcher */
    }
    
    .language-switch button {
        font-size: 16px;
        padding: 10px;
    }
    
    .language-switch span {
        margin: 0 10px; /* More space between language buttons */
        font-size: 16px;
        opacity: 0.6;
    }
    
    /* Clean up spacing in mobile menu */
    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu li a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }
    
    /* Force mobile menu alignment */
    .menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
      /* Fixed menu alignment for fallback solution */
    .fixed-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 30px; /* Add space at the top */
    }
    
    .fixed-menu .menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 0;
        gap: 25px;
    }
      /* Enhanced menu item styles for mobile */
    .fixed-menu .menu li a,
    .menu.active li a {
        font-size: 18px;
        padding: 15px 0;
        line-height: 1.2;
        height: auto;
        display: block;
        text-align: center;
        width: 100%;
    }
      /* Fix for dropdown submenu in mobile view */
    .menu.active .has-submenu .submenu {
        position: relative;
        top: auto;
        left: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 10px 0;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }
    
    /* Mobile Menu Improvements */
@media (max-width: 768px) {
    /* Improve mobile menu alignment */
    .fixed-menu ul.menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
        padding: 0;
    }
    
    /* Better submenu handling */
    .fixed-menu .submenu {
        position: relative;
        top: 10px;
        left: 0;
        width: 100%;
        background: transparent;
        box-shadow: none;
        display: none;
        padding-top: 10px;
    }
    
    .fixed-menu .has-submenu.active .submenu {
        display: block;
    }
    
    /* Enhance language switcher on mobile */
    .fixed-menu .language-switch {
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        padding: 8px 15px;
        border-radius: 4px;
    }
    
    /* Ensure dropdown toggle is properly sized and visible */
    .dropdown-toggle {
        padding: 5px;
        margin-left: 5px;
        font-size: 14px;
        cursor: pointer;
    }
    
    .fixed-menu .dropdown-toggle {
        display: inline-block;
        margin-left: 8px;
    }
    
    /* Ensure room buttons are centered after removing WhatsApp button */
    .room-buttons {
        display: flex;
        justify-content: center !important;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* Hide WhatsApp reservation buttons in room cards */
    .whatsapp-room-btn {
        display: none !important;
    }
}
    
    .fixed-menu .has-submenu .submenu {
        position: relative;
        top: auto;
        left: auto;
        background: transparent;
        box-shadow: none;
        padding: 10px 0;
        margin: 10px 0;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
