/* =============================================
   HEADER CONTAINER
   ============================================= */
.header-container {
    position: relative;
}

/* =============================================
   LANGUAGE SELECTOR — desktop only
   ============================================= */
.language-selector {
    position: fixed;
    top: 15px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.lang-link {
    color: var(--nav-lang-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.5;
}

.lang-link:hover {
    color: var(--nav-lang-hover);
    opacity: 1;
}

.lang-link.active {
    font-weight: 700;
    color: var(--nav-lang-hover);
    opacity: 1;
}

.lang-separator {
    color: var(--nav-lang-separator);
    font-size: 13px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    box-shadow: none;
    border-bottom: none;
    transition: transform 0.35s ease, background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding-top: 30px;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: var(--navbar-scrolled-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =============================================
   LOGO
   ============================================= */
.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: all 0.4s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* =============================================
   NAV MENU — desktop
   ============================================= */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-book {
    background: var(--book-btn-bg);
    padding: 0.7rem 1.5rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: var(--book-btn-hover);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Mobile language item — hidden on desktop */
.nav-lang-item {
    display: none;
}

/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =============================================
   MOBILE — 768px and below
   ============================================= */
@media (max-width: 768px) {

    /* Thicker navbar on mobile with transparent background */
    .navbar {
        position: fixed;
        top: 0;
        background: transparent;
        backdrop-filter: none;
        padding: 1rem 0;
        transition: background 0.3s ease;
    }

    /* When scrolled, add subtle background */
    .navbar.scrolled {
        background: var(--navbar-scrolled-bg);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }

    .logo-img {
        height: 50px;
    }

    .language-selector {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Elegant slide-in menu - not full screen */
    .nav-menu {
        position: fixed;
        top: 82px; /* matches navbar height (50px logo + 2rem padding) */
        right: -100%;
        left: auto;
        flex-direction: column;
        background: var(--mobile-menu-bg);
        width: 85%;
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        text-align: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 1.5rem 0 2rem 0;
        gap: 0;
        border-radius: 20px 0 0 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        margin-right: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Bigger tap targets on mobile */
    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        color: var(--mobile-menu-text);
        border-bottom: 1px solid var(--mobile-menu-border);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-menu .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--accent-color);
    }

    /* Book Now button inside mobile menu */
    .nav-menu .btn-book {
        margin: 1.5rem auto 0;
        display: inline-block;
        width: calc(100% - 4rem);
        border-radius: 8px;
        font-size: 1.05rem;
        padding: 1rem 2rem !important;
        text-align: center;
    }

    /* Language section at the bottom of the mobile menu */
    .nav-lang-item {
        display: block;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--mobile-menu-border);
        width: 100%;
        flex-shrink: 0;
    }

    .nav-lang {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem;
    }

    /* Make mobile lang links bigger and easier to tap */
    .lang-link.mobile-lang {
        font-size: 15px;
        padding: 0.4rem 0.6rem;
        opacity: 0.8;
        color: var(--mobile-menu-text);
    }

    .nav-lang .lang-separator {
        color: var(--mobile-lang-separator);
    }

    .lang-link.mobile-lang.active {
        opacity: 1;
        font-weight: 700;
        color: var(--accent-color);
    }

    .lang-link.mobile-lang:hover {
        color: var(--accent-color);
        opacity: 1;
    }

    /* Optional: Add overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        pointer-events: none;
        animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}