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

/* Import Kouzan Mouhitsu Font (衡山毛筆フォント) */
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap');

/* =============================================
   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-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-bottom {
    background: transparent;
}

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

.navbar-top .navbar-container {
    height: 75px;
}

.navbar-bottom .navbar-container {
    height: 65px;
    justify-content: center;
    padding: 0 60px;
}

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

.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-left: 20px;
    border-left: 1px solid rgba(184, 144, 76, 0.3);
}

.tagline-text {
    font-size: 17px;
    font-weight: 400;
    color: #b8904c;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 2px;
    font-family: 'Yuji Syuku', serif;
}

.tagline-sub {
    font-size: 14px;
    font-weight: 400;
    color: #b8904c;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 1.5px;
    opacity: 0.95;
    font-family: 'Yuji Syuku', serif;
}

/* 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: 24px;
}

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

.logo-divider {
    height: 32px;
}

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

/* Sticky state - Keep same size */
.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: 16px;
    width: 100%;
    justify-content: center;
}

/* Hide mobile menu actions on desktop */
.mobile-menu-actions {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-item i {
    font-size: 18px;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.nav-item .nav-icon-svg {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(14%) sepia(79%) saturate(2788%) hue-rotate(211deg) brightness(93%) contrast(96%);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon-svg {
    transform: scale(1.1);
}

.nav-item span {
    transition: all 0.3s ease;
    font-size: 15px;
    color: #1e3a8a;
}

/* Hover Effect */
.nav-item:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.08);
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Active State */
.nav-item.active {
    color: #1e3a8a;
    font-weight: 600;
    background: rgba(30, 58, 138, 0.12);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    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: -5px;
    right: 15px;
}

/* =============================================
   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: #1e3a8a;
    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: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 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 #1e3a8a;
    color: #1e3a8a;
}

.history-nav-btn:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #2563eb;
    color: #2563eb;
}

/* Google Login Button */
.google-login-btn {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    transform: translateY(-1px);
}

.google-login-btn i {
    color: #4285f4;
}

/* Login Nav Button */
.login-nav-btn {
    background: white;
    color: #1e3a8a;
    border: none;
}

.login-nav-btn:hover {
    background: #f0f4ff;
    color: #2563eb;
}

/* User Info Button (My Page) */
.user-info-btn {
    background: white;
    color: #1e3a8a;
    border: 1px solid #1e3a8a;
}

.user-info-btn:hover {
    background: #f0f4ff;
    color: #2563eb;
    border-color: #2563eb;
}

/* 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: -5px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: none;
}

/* 宿泊予約按钮金色背景 */
.nav-item[data-page="reservation"] {
    background: linear-gradient(135deg, #b8904c 0%, #d4a958 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(184, 144, 76, 0.3) !important;
}

.nav-item[data-page="reservation"] i,
.nav-item[data-page="reservation"] span:not(.badge-coming-soon) {
    color: white !important;
}

.nav-item[data-page="reservation"]:hover {
    background: linear-gradient(135deg, #d4a958 0%, #e5ba69 100%) !important;
    box-shadow: 0 4px 15px rgba(184, 144, 76, 0.4) !important;
    transform: translateY(-2px) !important;
}

.nav-item[data-page="reservation"].active {
    background: linear-gradient(135deg, #a07940 0%, #b8904c 100%) !important;
}

/* 宿泊予約按钮的白色下划线 */
.nav-item[data-page="reservation"].active::after {
    background: white !important;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* 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 Reservation Button
   ============================================= */

/* 默认隐藏（桌面端） */
.mobile-reserve-btn {
    display: none;
}

/* =============================================
   6. Mobile Toggle Button
   ============================================= */

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

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

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

.navbar-toggle.active {
    gap: 0;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

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

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

/* =============================================
   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;
    }

    /* Mobile: 始终使用紧凑尺寸（滑动后的大小） */
    .navbar-top .navbar-container,
    .navbar-container {
        height: 60px !important;
    }

    .logo-img-group,
    .modern-navbar .logo-img-group,
    .modern-navbar.sticky .logo-img-group {
        height: 24px !important;
    }

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

    .logo-divider,
    .modern-navbar .logo-divider,
    .modern-navbar.sticky .logo-divider {
        height: 24px !important;
    }

    .dual-logo-container,
    .modern-navbar .dual-logo-container,
    .modern-navbar.sticky .dual-logo-container {
        gap: 8px !important;
    }

    /* 禁用移动端的过渡动画 */
    .modern-navbar,
    .dual-logo-container,
    .logo-img,
    .navbar-container,
    .navbar-logo {
        transition: none !important;
    }

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

    /* Mobile Reservation Button - 显示在导航栏 */
    .mobile-reserve-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: white;
        color: #b8904c;
        text-decoration: none;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        margin-right: 10px;
    }

    .mobile-reserve-btn:hover {
        background: #fdf8f0;
        color: #9a7840;
    }

    .mobile-reserve-btn i {
        font-size: 14px;
        color: #b8904c;
    }

    .mobile-reserve-btn span {
        font-size: 14px;
        color: #b8904c;
    }

    /* Hide desktop action buttons on mobile */
    .navbar-actions {
        display: none;
    }

    /* 隐藏第二行导航栏的容器高度（桌面版水平菜单） */
    .navbar-bottom {
        height: 0;
        overflow: visible;
    }

    .navbar-bottom .navbar-container {
        height: 0;
        padding: 0;
        overflow: visible;
    }

    .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;
    }

    /* Mobile Menu Actions Styles */
    .mobile-menu-actions {
        display: block;
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }

    .mobile-menu-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
        margin: 15px 0;
    }

    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .mobile-auth-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 18px 30px;
        background: white;
        color: #1e3a8a;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        position: relative;
    }

    .mobile-auth-btn:hover {
        background: #f8f9fa;
    }

    .mobile-auth-btn.history-nav-btn {
        background: white;
        color: #1e3a8a;
    }

    .mobile-auth-btn.login-nav-btn {
        background: white;
        color: #1e3a8a;
    }

    .mobile-auth-btn.user-info-btn {
        background: white;
        color: #1e3a8a;
    }

    .mobile-auth-btn.logout-nav-btn {
        background: white;
        color: #dc3545;
    }

    .mobile-auth-btn.logout-nav-btn:hover {
        background: #fff5f5;
    }

    .mobile-auth-btn i {
        margin-right: 15px;
        font-size: 22px;
        width: 32px;
        min-width: 32px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-auth-btn span:not(.badge-coming-soon) {
        flex: 1;
    }

    .mobile-auth-btn .badge-coming-soon {
        position: static;
        margin-left: auto;
        font-size: 7px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 2px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        background: #ff6b6b;
        box-shadow: none;
    }

    .mobile-phone-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 18px 30px;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
    }

    .mobile-phone-link:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    }

    .mobile-phone-link i {
        margin-right: 15px;
        font-size: 22px;
        width: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-phone-link .phone-number {
        margin-left: auto;
        font-size: 14px;
        font-weight: 500;
        opacity: 0.9;
    }

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

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

    .nav-item i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 22px;
        width: 32px;
        min-width: 32px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* 移动端菜单中的SVG图标样式 */
    .nav-item .nav-icon-svg {
        margin-right: 15px;
        margin-bottom: 0;
        width: 22px;
        height: 22px;
        min-width: 22px;
        flex-shrink: 0;
        display: block;
    }

    .nav-item span:not(.badge-coming-soon) {
        flex: 1;
    }

    .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;
    }

    /* 隐藏标语 */
    .logo-tagline {
        display: none;
    }

    /* 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;
        padding: 90px 0 30px 0;
    }

    .nav-item {
        padding: 16px 25px;
        font-size: 15px;
    }

    .nav-item i {
        margin-right: 12px;
        font-size: 20px;
        width: 28px;
        min-width: 28px;
        height: 20px;
    }

    .mobile-auth-btn {
        padding: 16px 25px;
        font-size: 15px;
    }

    .mobile-auth-btn i {
        margin-right: 12px;
        font-size: 20px;
        width: 28px;
        min-width: 28px;
        height: 20px;
    }

    .mobile-auth-btn .badge-coming-soon {
        font-size: 6px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 2px;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        background: #ff6b6b;
        box-shadow: none;
    }

    .mobile-phone-link {
        padding: 16px 25px;
        font-size: 15px;
    }

    .mobile-phone-link i {
        font-size: 20px;
        width: 28px;
        min-width: 28px;
    }

    .mobile-phone-link .phone-number {
        font-size: 13px;
    }

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

    .navbar-toggle span {
        height: 2.5px;
    }
}

/* Very Small Screens - Show only hotel logo */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 14px;
        height: 60px;
    }

    .dual-logo-container {
        gap: 6px;
    }

    /* 保持显示集团logo，但调整尺寸 */
    .logo-img-group {
        height: 30px;
    }

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

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

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

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

    .navbar-menu {
        width: 260px;
        padding: 80px 0 25px 0;
    }

    .nav-item {
        padding: 14px 20px;
        font-size: 14px;
    }

    .nav-item i {
        margin-right: 10px;
        font-size: 18px;
        width: 26px;
        min-width: 26px;
        height: 18px;
    }

    .mobile-auth-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .mobile-auth-btn i {
        margin-right: 10px;
        font-size: 18px;
        width: 26px;
        min-width: 26px;
        height: 18px;
    }

    .mobile-auth-btn .badge-coming-soon {
        font-size: 5px;
        font-weight: 700;
        padding: 1px 4px;
        border-radius: 2px;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        background: #ff6b6b;
        box-shadow: none;
    }

    .mobile-phone-link {
        padding: 14px 20px;
        font-size: 14px;
    }

    .mobile-phone-link i {
        font-size: 18px;
        width: 26px;
        min-width: 26px;
    }

    .mobile-phone-link .phone-number {
        font-size: 12px;
    }

    .mobile-menu-divider {
        margin: 12px 0;
    }

    .navbar-toggle {
        width: 38px;
        height: 38px;
        padding: 9px;
    }

    .navbar-toggle span {
        height: 2px;
    }
}

/* =============================================
   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;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
}

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

/* =============================================
   8.5 Mobile Booking Panel (从顶部导航展开)
   ============================================= */

/* 默认隐藏 */
.mobile-booking-panel {
    display: none;
}

.booking-panel-overlay {
    display: none;
}

/* 手机端显示 */
@media (max-width: 992px) {
    /* 面板样式 - 从顶部下拉 */
    .mobile-booking-panel {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        overflow: hidden;
        z-index: 1100;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid rgba(210, 105, 30, 0.2);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-booking-panel.active {
        display: block;
        transform: translateY(0);
    }

    /* 背景遮罩 */
    .booking-panel-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1099;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .booking-panel-overlay.active {
        display: block;
        opacity: 1;
    }

    .booking-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background: #f8f9fa;
        border-bottom: 1px solid rgba(210, 105, 30, 0.15);
    }

    .booking-panel-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'Noto Sans JP', 'Microsoft YaHei', Arial, sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        letter-spacing: 0.05em;
        margin: 0;
    }

    .booking-panel-title i {
        color: #D2691E;
        font-size: 0.95rem;
    }

    .panel-close-btn {
        background: none;
        border: none;
        font-size: 18px;
        color: #999;
        cursor: pointer;
        padding: 2px 6px;
        transition: color 0.2s ease;
    }

    .panel-close-btn:hover {
        color: #D2691E;
    }

    .booking-panel-content {
        padding: 16px;
        background: white;
    }

    .booking-field {
        margin-bottom: 12px;
    }

    .booking-field label {
        display: block;
        font-family: 'Noto Sans JP', 'Microsoft YaHei', Arial, sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #555;
        margin-bottom: 6px;
    }

    .booking-field label i {
        margin-right: 6px;
        color: #D2691E;
    }

    .booking-input {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e1e1e1;
        border-radius: 8px;
        font-family: 'Noto Sans JP', 'Microsoft YaHei', Arial, sans-serif;
        font-size: 14px;
        color: #333;
        background: #fff;
        -webkit-appearance: none;
        appearance: none;
        transition: all 0.3s ease;
    }

    .booking-input:focus {
        outline: none;
        border-color: #D2691E;
        box-shadow: 0 0 8px rgba(210, 105, 30, 0.2);
    }

    .booking-row {
        display: flex;
        gap: 10px;
    }

    .booking-field.half {
        flex: 1;
    }

    .booking-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
        color: white;
        border: none;
        border-radius: 50px;
        font-family: 'Noto Sans JP', 'Microsoft YaHei', Arial, sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.08em;
        cursor: pointer;
        margin-top: 6px;
        box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
        transition: all 0.3s ease;
    }

    .booking-search-btn:hover {
        background: linear-gradient(135deg, #B8621E 0%, #E07B38 100%);
        box-shadow: 0 6px 18px rgba(210, 105, 30, 0.4);
    }

    .booking-search-btn:active {
        transform: scale(0.98);
        box-shadow: 0 3px 10px rgba(210, 105, 30, 0.3);
    }

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

    /* 日期选择器样式 */
    .mobile-date-picker {
        position: relative;
    }

    .date-display-row {
        display: flex;
        align-items: center;
        background: #fff;
        border: 2px solid #e1e1e1;
        border-radius: 8px;
        padding: 6px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .date-display-row:hover,
    .mobile-date-picker.active .date-display-row {
        border-color: #D2691E;
        box-shadow: 0 0 8px rgba(210, 105, 30, 0.2);
    }

    .date-box {
        flex: 1;
        text-align: center;
        padding: 2px 6px;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

    .date-box.active {
        background: rgba(210, 105, 30, 0.1);
    }

    .date-label {
        font-size: 9px;
        color: #999;
        margin-bottom: 1px;
    }

    .date-value {
        font-size: 12px;
        font-weight: 500;
        color: #333;
    }

    .date-value.placeholder {
        color: #999;
    }

    .date-arrow {
        padding: 0 8px;
        color: #D2691E;
        font-size: 12px;
    }

    .nights-display {
        background: #D2691E;
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        margin-left: 8px;
        white-space: nowrap;
    }

    /* 日历弹出层 - 与 reservation.html 保持一致 */
    .mobile-calendar-popup {
        display: none;
        background: white;
        border-radius: 12px;
        margin-top: 6px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(210, 105, 30, 0.3);
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-date-picker.calendar-open .mobile-calendar-popup {
        display: block;
        animation: fadeInDown 0.25s ease;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 日历头部 - 橙色渐变背景 */
    .mobile-calendar-popup .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
        padding: 10px 8px;
    }

    .mobile-calendar-popup .calendar-nav-btn {
        background: none;
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
        transition: all 0.2s ease;
    }

    .mobile-calendar-popup .calendar-nav-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .mobile-calendar-popup .calendar-title {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.03em;
    }

    /* 星期标题 */
    .mobile-calendar-popup .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        background: linear-gradient(to bottom, #faf9f7 0%, #f8f6f3 100%);
        border-bottom: 1px solid rgba(210, 105, 30, 0.1);
        padding: 5px 0;
    }

    .mobile-calendar-popup .weekday {
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        color: #D2691E;
        letter-spacing: 0.03em;
    }

    .mobile-calendar-popup .weekday.sun {
        color: #e74c3c;
    }

    .mobile-calendar-popup .weekday.sat {
        color: #3498db;
    }

    /* 日期格子 */
    .mobile-calendar-popup .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        padding: 4px;
        gap: 1px;
        background: #fff;
    }

    .mobile-calendar-popup .calendar-day {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
        color: #333;
        margin: auto;
    }

    .mobile-calendar-popup .calendar-day:hover:not(.disabled):not(.empty) {
        background: rgba(210, 105, 30, 0.08);
        border-color: rgba(210, 105, 30, 0.2);
    }

    .mobile-calendar-popup .calendar-day.empty {
        cursor: default;
    }

    .mobile-calendar-popup .calendar-day.disabled {
        color: #ddd;
        cursor: not-allowed;
    }

    .mobile-calendar-popup .calendar-day.disabled:hover {
        background: transparent;
        border-color: transparent;
    }

    .mobile-calendar-popup .calendar-day.today {
        border-color: #D2691E;
        background: rgba(210, 105, 30, 0.05);
        font-weight: 600;
    }

    .mobile-calendar-popup .calendar-day.sunday:not(.range-start):not(.range-end):not(.in-range) {
        color: #e74c3c;
    }

    .mobile-calendar-popup .calendar-day.saturday:not(.range-start):not(.range-end):not(.in-range) {
        color: #3498db;
    }

    /* 选中的日期 - 使用渐变 */
    .mobile-calendar-popup .calendar-day.range-start,
    .mobile-calendar-popup .calendar-day.range-end {
        background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
        border-color: transparent;
        color: #fff !important;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
    }

    /* 范围内的日期 */
    .mobile-calendar-popup .calendar-day.in-range {
        background: rgba(210, 105, 30, 0.1);
        border-color: transparent;
        border-radius: 0;
        color: #D2691E;
    }

    .mobile-calendar-popup .calendar-day.range-start {
        border-radius: 4px 0 0 4px;
    }

    .mobile-calendar-popup .calendar-day.range-end {
        border-radius: 0 4px 4px 0;
    }

    .mobile-calendar-popup .calendar-day.range-start.range-end {
        border-radius: 4px;
    }
}

/* =============================================
   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; }
}

/* =============================================
   10. Highlight Reservation Button
   ============================================= */

.nav-item[data-page="reservation"] {
    background: transparent;
    color: #8a7a5e;
    border-radius: 0;
    margin: 0;
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
}

.nav-item[data-page="reservation"]:hover {
    background: linear-gradient(180deg, rgba(138, 122, 94, 0.08) 0%, rgba(138, 122, 94, 0.03) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 122, 94, 0.15);
}

.nav-item[data-page="reservation"] i,
.nav-item[data-page="reservation"] span {
    color: #8a7a5e;
}

/* 宿泊予約按钮的active状态 */
.nav-item[data-page="reservation"].active {
    color: #8a7a5e;
    background: transparent;
    font-weight: 600;
}

.nav-item[data-page="reservation"].active i,
.nav-item[data-page="reservation"].active span {
    color: #8a7a5e;
}

/* 宿泊予約按钮active时显示棕色下划线 */
.nav-item[data-page="reservation"].active::after {
    background: linear-gradient(90deg, #8a7a5e, #6d6250);
}

/* =============================================
   11. User Dropdown Menu
   ============================================= */

/* Dropdown Container */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button */
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    color: #1e3a8a;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-dropdown-btn:hover {
    background: #f0f4ff;
    color: #2563eb;
}

/* Avatar in button */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1e3a8a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.dropdown-header .nav-avatar {
    width: 48px;
    height: 48px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.dropdown-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #1e3a8a;
}

/* Logout Item */
.dropdown-logout {
    color: #dc3545;
}

.dropdown-logout:hover {
    background: #fff5f5;
    color: #c82333;
}

.dropdown-logout i {
    color: #dc3545;
}

.dropdown-logout:hover i {
    color: #c82333;
}

/* Mobile: Hide dropdown menu, keep simple button */
@media (max-width: 992px) {
    .user-dropdown-menu {
        display: none !important;
    }

    .user-dropdown-btn .dropdown-arrow {
        display: none;
    }
}
