/* Navbar Mobile Styles (max-width: 768px) */

#main-navbar .navbar-container {
    flex-direction: column; /* Stack logo and menus for mobile */
    padding: 10px 0;
}

#main-navbar .logo {
    margin-bottom: 10px;
    text-align: center;
}

/* Hide desktop-only elements on mobile */
.desktop-only {
    display: none !important;
}

/* NEW: Mobile Header Top Styling */
.mobile-header-top.mobile-only { /* Targeted with mobile-only class */
    display: flex; /* Show on mobile */
    width: 100%;
    justify-content: space-around; /* Distribute items evenly */
    align-items: center;
    padding: 10px 15px; /* Adjust padding as needed */
    background-color: #f8f8f8; /* Slightly different background for top bar */
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    gap: 10px; /* Space between elements */
    flex-wrap: wrap; /* Allow items to wrap if screen is very small */
    order: -1; /* Ensure it appears at the top, above the logo */	
}


#main-navbar .logo .navbar-logo-img {
    display: block !important; /* Force display, as it might be hidden by .desktop-only on some viewport sizes */
    max-height: 80px; /* Adjusted max-height for mobile */
    width: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center logo horizontally within its parent */
}



.mobile-header-top .mobile-navbar-phone-number {
    display: flex; /* Ensure phone number and icon are side-by-side */
    align-items: center;
    gap: 5px;
    color: var(--navbar-font-color);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap; /* Prevent phone number from breaking */
}

.mobile-header-top .mobile-navbar-phone-number i {
    font-size: 1.1rem;
    color: #007bff; /* Consistent icon color */
}

.mobile-header-top .mobile-social-icons {
    display: flex;
    gap: 10px;
    flex-grow: 1; /* Allow social icons to take available space */
    justify-content: center; /* Center social icons within their space */
}

.mobile-header-top .mobile-social-icons a {
    color: var(--navbar-font-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.mobile-header-top .mobile-social-icons a:hover {
    color: #007bff;
}

.mobile-header-top .lang-switcher {
    position: relative;
    cursor: pointer;
}

.mobile-header-top .lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--navbar-font-color);
    font-weight: 500;
    text-decoration: none;
    padding: 5px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.85em;
    white-space: nowrap; /* Prevent lang switcher from breaking */
}

.mobile-header-top .lang-dropdown {
    display: none; /* Hidden by default, show on click */
    position: absolute;
    background-color: #fff;
    min-width: 80px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.1);
    z-index: 1002; /* Above other content */
    list-style: none;
    padding: 0;
    margin-top: 5px;
    border-radius: 5px;
    right: 0; /* Align dropdown to the right of the toggle button */
    text-align: left;
}

.mobile-header-top .lang-dropdown li a {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* RE-ENABLE the mobile-bottom-menu and ensure it's visible on mobile */
.mobile-bottom-menu.mobile-only { /* Ensure mobile-only is here */
    display: flex; /* This was incorrectly set to none in previous step */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    z-index: 1001;
    font-family: var(--navbar-font-family);
    font-size: 0.75rem; /* Smaller font for mobile menu items */
}

.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--navbar-font-color);
    padding: 5px 10px;
    transition: color 0.3s ease;
    text-decoration: none; /* Ensure no underline */
}

.mobile-bottom-menu .menu-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-bottom-menu .menu-item:hover,
.mobile-bottom-menu .menu-item.active {
    color: #007bff;
}