/* ===================================
   DIVALUX HOTEL - NAVIGATION STYLES
   Modern Luxury Theme
   Colors inherited from theme.css
   =================================== */

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(91, 127, 166, 0.85);
    /* Blue header #5b7fa6 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Navigation Left - Menu Trigger */
.nav-left {
    flex: 0 0 auto;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-trigger:hover .hamburger-icon span {
    background: #ffffff;
}

/* Navigation Center - Logo */
.nav-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.logo {
    display: block;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
    display: block;
}

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

/* Navigation Right - Language & Booking */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Logo switching based on background */
/* Default: show dark logo (for white backgrounds) */
.logo .logo-dark {
    display: block;
}

.logo .logo-light {
    display: none;
}

/* When header has colored background (blue), show light logo */
.main-header .logo .logo-dark {
    display: none;
}

.main-header .logo .logo-light {
    display: block;
}

/* Language Toggle */
.lang-toggle-container {
    position: relative;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 0.65rem 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lang-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.lang-toggle-container:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 0.6rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.lang-toggle-container:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.lang-option.active {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.lang-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-option-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-option-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.lang-option-link.active {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

/* Book Now Button */
.btn-book {
    background: var(--gradient-gold);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.4);
    color: #ffffff;
    filter: brightness(1.1);
}

/* Fullscreen Navigation Overlay */
.fullscreen-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.fullscreen-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-nav-panel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 1rem 1.5rem;
}

/* Navigation Panel Header */
.nav-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-primary);
}

.close-menu {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Main Menu Links */
.main-menu-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu-links li {
    margin-bottom: 0.6rem;
}

.main-menu-links a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-menu-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    left: 50%;
    transform: translateX(-50%);
}

.main-menu-links a:hover {
    color: var(--primary-color);
    padding-left: 2rem;
}

.main-menu-links a:hover::before {
    width: 60%;
    left: 20%;
}


/* Submenu Panels */
.nav-panel-content-wrapper {
    position: relative;
    min-height: 400px;
}

.nav-panel-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    background: #ffffff;
    z-index: 10;
}

.nav-panel-content-wrapper.submenu-active .nav-panel-submenu,
.nav-panel-submenu.active {
    left: 0;
}

.submenu-pane {
    display: none;
    background: #ffffff;
    padding: 1.5rem;
    min-height: 100%;
    overflow: hidden;
}

.submenu-pane.active {
    display: block;
}

.submenu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-primary);
    background: #ffffff;
}

.submenu-back-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-back-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.submenu-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0;
    margin: 0;
}

.submenu-body {
    background: #ffffff;
}

/* Submenu Grid */
.rooms-submenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.room-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    background: #ffffff;
}

.room-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(91, 127, 166, 0.2);
    background: var(--bg-secondary);
}

.room-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.room-item span {
    font-weight: 500;
    font-size: 0.85rem;
}

.room-item:hover span {
    color: var(--primary-color);
}

.submenu-explore-all {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Kanit', sans-serif;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.submenu-explore-all:hover {
    padding-left: 1rem;
    color: var(--accent-color);
}

.submenu-category {
    color: var(--text-secondary);
    font-family: 'Kanit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

/* Navigation Panel Footer */
.nav-panel-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.lang-toggle-container-panel {
    position: relative;
}

.lang-toggle-btn-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s ease;
}

.lang-toggle-btn-panel:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.lang-flag {
    width: 30px;
    height: 20px;
}

.lang-dropdown-panel {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lang-toggle-container-panel:hover .lang-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-panel .lang-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        grid-template-columns: auto 1fr auto;
    }

    .nav-right {
        gap: 0.8rem;
    }

    .btn-book {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    #desktop-lang-switcher {
        display: none;
    }

    .logo img {
        height: 45px;
    }

    .main-menu-links a {
        font-size: 1.4rem;
    }

    .rooms-submenu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .submenu-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    #mobile-lang-switcher {
        display: none;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-menu-links li {
    animation: fadeInUp 0.5s ease-out backwards;
}

.main-menu-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.main-menu-links li:nth-child(2) {
    animation-delay: 0.15s;
}

.main-menu-links li:nth-child(3) {
    animation-delay: 0.2s;
}

.main-menu-links li:nth-child(4) {
    animation-delay: 0.25s;
}

.main-menu-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.main-menu-links li:nth-child(6) {
    animation-delay: 0.35s;
}

.main-menu-links li:nth-child(7) {
    animation-delay: 0.4s;
}

.main-menu-links li:nth-child(8) {
    animation-delay: 0.45s;
}

.main-menu-links li:nth-child(9) {
    animation-delay: 0.5s;
}

.main-menu-links li:nth-child(10) {
    animation-delay: 0.55s;
}