/*
 * Modern Sticky Navigation Bar
 * Clean, elegant design for hotel website
 */

/* =============================================
   0. Hide Old Navigation Styles
   ============================================= */

/* Hide old header navigation */
.header-top-container,
#header_logo,
.mobile-menu-toggle {
    display: none !important;
}

/* =============================================
   1. Main Navbar Container
   ============================================= */

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-navbar.sticky {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.99);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.3s ease;
}

.modern-navbar.sticky .navbar-container {
    height: 75px;
}

/* =============================================
   2. Dual Logo Section - Inside Navbar
   ============================================= */

.navbar-logo {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Dual Logo Container */
.dual-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dual-logo-container:hover {
    transform: scale(1.03);
}

/* Logo Sections */
.logo-group {
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.logo-hotel {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Logo Divider */
.logo-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg,
        rgba(30, 58, 138, 0) 0%,
        rgba(30, 58, 138, 0.3) 20%,
        rgba(30, 58, 138, 0.6) 50%,
        rgba(30, 58, 138, 0.3) 80%,
        rgba(30, 58, 138, 0) 100%
    );
    transition: all 0.3s ease;
}

/* Logo Images */
.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-img-group {
    height: 28px;
}

.logo-img-hotel {
    height: 50px;
}

/* Sticky state - Logos become smaller */
.modern-navbar.sticky .logo-img-group {
    height: 24px;
}

.modern-navbar.sticky .logo-img-hotel {
    height: 42px;
}

.modern-navbar.sticky .logo-divider {
    height: 32px;
}

.modern-navbar.sticky .dual-logo-container {
    gap: 12px;
}

/* =============================================
   3. Navigation Menu
   ============================================= */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 40px;
    margin-right: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

.nav-item:first-child {
    border-left: 1px solid #e5e7eb;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item span {
    transition: all 0.3s ease;
}

/* Hover Effect */
.nav-item:hover {
    color: #2563eb;
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    border-radius: 0;
}

.nav-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

/* Active State with Underline */
.nav-item.active {
    color: #1e3a8a;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    border-radius: 2px;
}

/* Nav Item with Badge */
.nav-item.with-badge {
    overflow: visible;
}

.nav-item.with-badge .badge-coming-soon {
    top: 0;
    right: -5px;
}

/* =============================================
   4. Action Buttons
   ============================================= */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Auth Button Base Style */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #8a7a5e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-btn:hover {
    background: #6d6250;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 122, 94, 0.3);
}

.auth-btn i {
    font-size: 16px;
}

/* Auth Button with Badge */
.auth-btn.with-badge {
    position: relative;
    overflow: visible;
}

/* History Nav Button */
.history-nav-btn {
    background: transparent;
    border: 1px solid #8a7a5e;
    color: #8a7a5e;
}

.history-nav-btn:hover {
    background: rgba(138, 122, 94, 0.1);
    border-color: #6d6250;
    color: #6d6250;
}

/* Login Nav Button */
.login-nav-btn {
    background: #8a7a5e;
}

.login-nav-btn:hover {
    background: #6d6250;
}

/* User Info Button (My Page) */
.user-info-btn {
    background: #8a7a5e;
}

.user-info-btn:hover {
    background: #6d6250;
}

/* Logout Button - Red Style */
.logout-nav-btn {
    background: #dc3545;
    color: white;
}

.logout-nav-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Booking Button */
.booking-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    overflow: visible;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.booking-btn i {
    font-size: 16px;
}

.badge-coming-soon {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff6b6b;
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Phone Button */
.phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: #1e3a8a;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.phone-btn:hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.phone-btn i {
    font-size: 16px;
}

/* =============================================
   5. Mobile Toggle Button
   ============================================= */

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    background: #1e3a8a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-toggle:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.navbar-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   6. Mobile Overlay
   ============================================= */

.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

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

/* =============================================
   7. Responsive Design
   ============================================= */

/* Tablet */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 30px;
    }

    .nav-item {
        padding: 12px 15px;
        font-size: 13px;
    }

    .nav-item i {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0 20px;
        height: 80px;
    }

    /* Mobile - show both logos but smaller */
    .dual-logo-container {
        gap: 10px;
    }

    .logo-img-group {
        height: 38px;
    }

    .logo-img-hotel {
        height: 42px;
    }

    .logo-divider {
        height: 32px;
    }

    .modern-navbar.sticky .logo-img-group {
        height: 35px;
    }

    .modern-navbar.sticky .logo-img-hotel {
        height: 38px;
    }

    .modern-navbar.sticky .logo-divider {
        height: 28px;
    }

    .navbar-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin: 0;
        padding: 100px 0 30px 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 18px 30px;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 20px;
        width: 30px;
    }

    .nav-item:hover {
        transform: none;
        background: #f8f9fa;
    }

    .nav-item.active::after {
        display: none;
    }

    .nav-item.active {
        background: rgba(30, 58, 138, 0.08);
        border-left: 4px solid #1e3a8a;
    }

    .navbar-actions {
        gap: 8px;
    }

    .booking-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .booking-btn span:not(.badge-coming-soon) {
        display: none;
    }

    .booking-btn i {
        margin-right: 0;
    }

    .phone-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        height: 70px;
    }

    /* Smaller screens - further reduce logo sizes */
    .dual-logo-container {
        gap: 8px;
    }

    .logo-img-group {
        height: 35px;
    }

    .logo-img-hotel {
        height: 38px;
    }

    .logo-divider {
        height: 30px;
    }

    .modern-navbar.sticky .logo-img-group {
        height: 32px;
    }

    .modern-navbar.sticky .logo-img-hotel {
        height: 35px;
    }

    .modern-navbar.sticky .logo-divider {
        height: 26px;
    }

    .navbar-menu {
        width: 280px;
    }

    .booking-btn {
        padding: 8px 14px;
    }

    .phone-btn {
        width: 38px;
        height: 38px;
    }

    .phone-btn i {
        font-size: 14px;
    }

    .navbar-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Very Small Screens - Show only hotel logo */
@media (max-width: 480px) {
    .dual-logo-container {
        gap: 0;
    }

    /* Hide group logo and divider on very small screens */
    .logo-group,
    .logo-divider {
        display: none;
    }

    .logo-img-hotel {
        height: 36px;
    }

    .modern-navbar.sticky .logo-img-hotel {
        height: 32px;
    }
}

/* =============================================
   8. Scroll Padding Adjustment
   ============================================= */

/* Add padding to body to prevent content from being hidden under fixed navbar */
body {
    padding-top: 90px;
}

@media (max-width: 992px) {
    body {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.navbar-open {
    overflow: hidden;
}

/* =============================================
   9. Animation Effects
   ============================================= */

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 993px) {
    .nav-item {
        animation: slideInFromRight 0.5s ease forwards;
        opacity: 0;
    }

    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .nav-item:nth-child(3) { animation-delay: 0.2s; }
    .nav-item:nth-child(4) { animation-delay: 0.25s; }
    .nav-item:nth-child(5) { animation-delay: 0.3s; }
    .nav-item:nth-child(6) { animation-delay: 0.35s; }
    .nav-item:nth-child(7) { animation-delay: 0.4s; }
    .nav-item:nth-child(8) { animation-delay: 0.45s; }
}
