/* Base navbar styling */
.navbar {
    background-color: var(--color-background);
    height: 100px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1rem;
    height: 100%;
    position: relative;
}

.navbar .logo-container {
    height: 100%;
}

.navbar .logo-container img {
    height: 100%;
    width: auto;
}

/* Desktop navigation layout */
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .nav-links .nav-item {
    padding-block: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.navbar .nav-links .nav-item:hover {
    border-color: var(--color-secondary);
}

.navbar .nav-links .nav-item.active {
    border-color: var(--color-secondary);
}

.navbar .nav-links .nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-md);
    transition: color 0.3s ease;
}

/* Book button container positioned on the right */
.book-btn-container {
    margin-left: auto;
}

/* Mobile menu toggle button styling */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.book-btn-mobile {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 1rem 0;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .navbar .logo-container {
        height: 60px;
    }

    /* Show mobile toggle on mobile */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reset the nav-links positioning for mobile */
    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
        left: auto;
        transform: none;
    }

    .navbar .nav-links.open {
        right: 0;
    }

    .navbar .nav-links .nav-item {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-links .nav-item:last-child {
        border-bottom: none;
    }

    .navbar .nav-links .nav-link {
        display: block;
        font-size: var(--font-size-lg);
    }

    /* Move book button into the mobile menu */
    .book-btn-container {
        display: none;
    }

    .book-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .book-btn-mobile .btn {
        width: 100%;
    }

    /* Add overlay when menu is open */
    .navbar .nav-links.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-white);
        z-index: -1;
    }
}

/* Smaller mobile devices */
@media (max-width: 576px) {
    .navbar .logo-container {
        height: 50px;
    }

    .navbar .nav-links {
        width: 100%;
        max-width: 100%;
    }
}