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

/* =============================================
   0.5 Dynamic Overflow Detection (JS控制)
   当导航栏放不下时自动切换到移动端布局
   ============================================= */

/* 溢出时隐藏导航菜单 - 从底部弹出全屏面板 */
body.navbar-overflow .modern-navbar.single-row .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 57px;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: none;
    z-index: 2099;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    display: flex !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.navbar-overflow .modern-navbar.single-row .navbar-menu.active {
    transform: translateY(0);
}

/* 溢出时显示底栏 */
body.navbar-overflow .mobile-bottom-nav {
    display: flex !important;
}


/* 溢出时为底栏留出空间，移除顶部padding（导航栏已变为relative） */
body.navbar-overflow {
    padding-top: 0 !important;
    padding-bottom: 60px !important;
}

/* 溢出时导航栏变为相对定位 */
body.navbar-overflow .modern-navbar {
    position: relative !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 溢出时隐藏桌面版登录按钮 */
body.navbar-overflow .navbar-actions .auth-buttons {
    display: none !important;
}

/* 溢出时导航项填满面板 */
body.navbar-overflow .modern-navbar.single-row .nav-item {
    flex: 1;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
}

body.navbar-overflow .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid #e8e8e8;
}

body.navbar-overflow .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.navbar-overflow .mobile-auth-btn {
    flex: 1;
    padding: 0 28px;
    font-size: 16px;
}

body.navbar-overflow .mobile-language-switcher {
    display: flex;
    flex-direction: column;
    flex: none;
}

body.navbar-overflow .mobile-language-dropdown {
    display: flex;
    flex-direction: column;
    flex: none;
}

body.navbar-overflow .mobile-lang-trigger {
    flex: none;
    min-height: 50px;
    padding: 0 28px;
}

/* 溢出时调整导航栏高度 */
body.navbar-overflow .navbar-container,
body.navbar-overflow .modern-navbar.single-row .navbar-single .navbar-container {
    height: 60px !important;
}

/* 溢出时缩小logo */
body.navbar-overflow .modern-navbar.single-row .navbar-logo .logo-img-group {
    height: 24px !important;
}

body.navbar-overflow .modern-navbar.single-row .navbar-logo .logo-img-hotel {
    height: 32px !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);
}

/* Single Row Navbar Layout */
.modern-navbar.single-row .navbar-single {
    background: transparent;
    padding: 12px 0;
}

.modern-navbar.single-row .navbar-single .navbar-container {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 40px;
}

/* Logo */
.modern-navbar.single-row .navbar-logo {
    flex-shrink: 0;
}

.modern-navbar.single-row .navbar-logo .dual-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-navbar.single-row .navbar-logo .logo-img-group {
    height: 26px;
}

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

/* Navigation Menu */
.modern-navbar.single-row .navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

.modern-navbar.single-row .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #444;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 10px;
    min-width: 60px;
    gap: 5px;
}

.modern-navbar.single-row .nav-item i,
.modern-navbar.single-row .nav-item .nav-icon-svg {
    font-size: 20px;
    color: #1e3a8a;
    transition: transform 0.2s ease;
}

.modern-navbar.single-row .nav-item .nav-icon-svg {
    width: 20px;
    height: 20px;
}

.modern-navbar.single-row .nav-item span {
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.modern-navbar.single-row .nav-item:hover {
    background: rgba(30, 58, 138, 0.06);
    color: #1e3a8a;
}

.modern-navbar.single-row .nav-item:hover i,
.modern-navbar.single-row .nav-item:hover .nav-icon-svg {
    transform: translateY(-2px);
}

.modern-navbar.single-row .nav-item.active {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

/* Reserve Button */
.modern-navbar.single-row .nav-item-reserve {
    background: #1e3a8a;
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.modern-navbar.single-row .nav-item-reserve i {
    color: #fff;
}

.modern-navbar.single-row .nav-item-reserve span {
    font-weight: 600;
}

.modern-navbar.single-row .nav-item-reserve:hover {
    background: #2d4a9e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.modern-navbar.single-row .nav-item-reserve:hover i {
    transform: translateY(-2px);
}

/* Actions - Vertical Layout */
.modern-navbar.single-row .navbar-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.modern-navbar.single-row .language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-navbar.single-row .language-btn:hover {
    color: #1e3a8a;
}

.modern-navbar.single-row .language-btn i.fa-globe {
    font-size: 12px;
    color: #1e3a8a;
}

.modern-navbar.single-row .language-btn .current-lang {
    display: inline;
}

.modern-navbar.single-row .language-btn .dropdown-arrow {
    font-size: 8px;
    color: #888;
}

.modern-navbar.single-row .auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.modern-navbar.single-row .auth-btn:hover {
    opacity: 0.7;
}

.modern-navbar.single-row .auth-btn i {
    font-size: 16px;
    color: #555;
}

.modern-navbar.single-row .language-btn .current-lang {
    display: none;
}

@media (min-width: 1200px) {
    .modern-navbar.single-row .language-btn .current-lang {
        display: inline;
    }
}

/* Hide old two-row elements in single-row mode */
.modern-navbar.single-row .navbar-top,
.modern-navbar.single-row .navbar-bottom {
    display: none;
}

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

/* Hide mobile top avatar on desktop */
.mobile-top-avatar {
    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 Overlay
   ============================================= */

.navbar-overlay {
    display: none;
}

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

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

    .modern-navbar.single-row .navbar-single {
        padding: 8px 0;
    }

    .modern-navbar.single-row .navbar-single .navbar-container {
        gap: 16px;
        padding: 0 20px;
    }

    .modern-navbar.single-row .navbar-menu {
        gap: 2px;
        padding: 0 10px;
    }

    .modern-navbar.single-row .nav-item {
        padding: 8px 10px;
        min-width: 50px;
        gap: 3px;
    }

    .modern-navbar.single-row .nav-item i,
    .modern-navbar.single-row .nav-item .nav-icon-svg {
        font-size: 18px;
    }

    .modern-navbar.single-row .nav-item .nav-icon-svg {
        width: 18px;
        height: 18px;
    }

    .modern-navbar.single-row .nav-item span {
        font-size: 10px;
    }

    /* Logo */
    .modern-navbar.single-row .navbar-logo .dual-logo-container {
        gap: 8px;
    }

    .modern-navbar.single-row .navbar-logo .logo-img-group {
        height: 22px;
    }

    .modern-navbar.single-row .navbar-logo .logo-img-hotel {
        height: 36px;
    }

    /* Actions */
    .modern-navbar.single-row .navbar-actions {
        gap: 2px;
    }

    .modern-navbar.single-row .language-btn {
        padding: 3px 6px;
        font-size: 10px;
    }

    .modern-navbar.single-row .language-btn i.fa-globe {
        font-size: 11px;
    }

    .modern-navbar.single-row .auth-btn {
        padding: 3px;
    }

    .modern-navbar.single-row .auth-btn i {
        font-size: 14px;
    }

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

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

@media (max-width: 1050px) {
    .modern-navbar.single-row .navbar-single {
        padding: 5px 0;
    }

    .modern-navbar.single-row .navbar-single .navbar-container {
        gap: 8px;
        padding: 0 10px;
    }

    .modern-navbar.single-row .navbar-menu {
        gap: 0;
        padding: 0 4px;
    }

    .modern-navbar.single-row .nav-item {
        padding: 6px 6px;
        min-width: 44px;
        gap: 2px;
    }

    .modern-navbar.single-row .nav-item i,
    .modern-navbar.single-row .nav-item .nav-icon-svg {
        font-size: 16px;
    }

    .modern-navbar.single-row .nav-item .nav-icon-svg {
        width: 16px;
        height: 16px;
    }

    .modern-navbar.single-row .nav-item span {
        font-size: 9px;
        letter-spacing: 0;
    }

    /* Logo */
    .modern-navbar.single-row .navbar-logo .dual-logo-container {
        gap: 6px;
    }

    .modern-navbar.single-row .navbar-logo .logo-img-group {
        height: 18px;
    }

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

    /* Actions */
    .modern-navbar.single-row .navbar-actions {
        gap: 0;
    }

    .modern-navbar.single-row .language-btn {
        padding: 2px 4px;
        font-size: 9px;
    }

    .modern-navbar.single-row .language-btn i.fa-globe {
        font-size: 10px;
    }

    .modern-navbar.single-row .auth-btn {
        padding: 2px;
    }

    .modern-navbar.single-row .auth-btn i {
        font-size: 13px;
    }
}

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

    /* 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, but keep mobile avatar */
    .navbar-actions {
        display: flex;
        align-items: center;
    }

    .navbar-actions .auth-buttons {
        display: none;
    }

    /* 显示移动端顶部头像 */
    .mobile-top-avatar {
        display: block;
    }

    .mobile-avatar-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 26px;
        transition: all 0.2s ease;
        padding: 0;
    }

    .mobile-avatar-btn img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #1e3a8a;
    }

    /* 手机版导航栏嵌入页面 */
    .modern-navbar {
        position: relative;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: none;
    }

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

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

    /* =============================================
       Full-screen Navigation Panel (Mobile)
       ============================================= */
    .navbar-menu,
    .modern-navbar.single-row .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 57px;
        width: 100%;
        max-width: 100%;
        height: auto;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        z-index: 2099;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 0;
        flex: none;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-menu.active,
    .modern-navbar.single-row .navbar-menu.active {
        transform: translateY(0);
    }

    /* 隐藏预約按钮（底部导航栏已有） */
    .navbar-menu .nav-item[data-page="reservation"] {
        display: none !important;
    }

    /* --- Nav Items: 填满面板 --- */
    .nav-item,
    .modern-navbar.single-row .nav-item {
        display: flex !important;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: unset;
        min-height: 0;
        padding: 0 28px;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        box-shadow: none;
        text-decoration: none;
        gap: 0;
        transition: background 0.15s ease;
        position: relative;
    }

    .nav-item:first-child,
    .modern-navbar.single-row .nav-item:first-child {
        border-top: none;
    }

    .nav-item i,
    .modern-navbar.single-row .nav-item i {
        margin: 0;
        margin-right: 16px;
        font-size: 20px;
        width: 24px;
        min-width: 24px;
        height: auto;
        color: #1e3a8a;
        text-align: center;
        transform: none;
    }

    .nav-item .nav-icon-svg,
    .modern-navbar.single-row .nav-item .nav-icon-svg {
        margin: 0;
        margin-right: 16px;
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .nav-item span:not(.badge-coming-soon),
    .modern-navbar.single-row .nav-item span:not(.badge-coming-soon) {
        flex: 1;
        font-size: 15px;
        color: #333;
        white-space: nowrap;
    }

    /* 右侧箭头 */
    .nav-item::after,
    .modern-navbar.single-row .nav-item::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 11px;
        color: #ccc;
        margin-left: auto;
        position: static;
        width: auto;
        height: auto;
        background: none;
        border-radius: 0;
        transform: none;
    }

    .nav-item:hover,
    .modern-navbar.single-row .nav-item:hover {
        background: #f8f9fb;
        transform: none;
        box-shadow: none;
    }

    .nav-item.active,
    .modern-navbar.single-row .nav-item.active {
        background: rgba(30, 58, 138, 0.04);
        box-shadow: none;
    }

    .nav-item.active::after {
        display: inline;
        color: #1e3a8a;
    }

    /* --- Mobile Menu Actions --- */
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin-top: 0;
        border-top: 1px solid #e8e8e8;
        flex: 1;
    }

    .mobile-menu-divider {
        display: none;
    }

    /* 隐藏电话预约 */
    .mobile-phone-link {
        display: none !important;
    }

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

    /* 登录按钮 - 列表行样式 */
    .mobile-auth-btn {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0 28px;
        background: transparent;
        color: #333;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s ease;
        text-align: left;
        position: relative;
        box-shadow: none;
        gap: 0;
    }

    .mobile-auth-btn:hover {
        background: #f8f9fb;
        transform: none;
        box-shadow: none;
    }

    .mobile-auth-btn.history-nav-btn,
    .mobile-auth-btn.login-nav-btn,
    .mobile-auth-btn.user-info-btn {
        background: transparent;
        color: #333;
    }

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

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

    .mobile-auth-btn i {
        margin: 0;
        margin-right: 16px;
        font-size: 20px;
        width: 24px;
        min-width: 24px;
        height: auto;
        color: #1e3a8a;
        text-align: center;
    }

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

    .mobile-auth-btn span:not(.badge-coming-soon) {
        flex: 1;
        font-size: 15px;
        color: inherit;
        white-space: nowrap;
    }

    .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-language-switcher {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex: none;
    }

    .mobile-language-dropdown {
        padding: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        flex: none;
    }

    .mobile-lang-trigger {
        display: flex;
        flex: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0 28px;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        box-shadow: none;
        gap: 0;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .mobile-lang-trigger:hover {
        background: #f8f9fb;
        transform: none;
        box-shadow: none;
    }

    .mobile-lang-trigger i.fa-globe {
        font-size: 20px;
        color: #1e3a8a;
        margin-right: 16px;
        width: 24px;
        text-align: center;
    }

    .mobile-current-lang {
        font-size: 15px;
        color: #333;
        font-weight: 500;
        flex: 1;
    }

    .mobile-lang-arrow {
        font-size: 11px;
        color: #ccc;
        display: inline;
        margin-left: auto;
    }

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

    /* Single-row navbar mobile adjustments */
    .modern-navbar.single-row .navbar-single {
        padding: 10px 0;
    }

    .modern-navbar.single-row .navbar-single .navbar-container {
        height: auto;
        padding: 0 15px;
    }

    .modern-navbar.single-row .navbar-menu.active {
        transform: translateY(0);
    }

    .modern-navbar.single-row .navbar-actions {
        display: flex !important;
    }

    .modern-navbar.single-row .navbar-actions .auth-buttons {
        display: none !important;
    }

    .modern-navbar.single-row .navbar-logo .logo-img-group {
        height: 22px;
    }

    .modern-navbar.single-row .navbar-logo .logo-img-hotel {
        height: 34px;
    }

    .modern-navbar.single-row .language-btn {
        padding: 8px 12px;
    }

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

    /* 确保 navbar-actions 显示 */
    .navbar-actions {
        display: flex !important;
        align-items: center;
    }

    /* 隐藏桌面端登录按钮 */
    .navbar-actions .auth-buttons {
        display: none !important;
    }

    /* 移动端顶部头像 */
    .mobile-top-avatar {
        display: block !important;
    }

    .mobile-avatar-btn {
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 24px;
        transition: all 0.2s ease;
        padding: 0;
    }

    .mobile-avatar-btn:hover {
        color: #1e3a8a;
    }

    .mobile-avatar-btn img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #1e3a8a;
    }

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

}

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

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

}

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

/* 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;
        bottom: 57px; /* 底部导航栏高度，紧贴无缝隙 */
        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-top: 1px solid rgba(184, 144, 76, 0.3);
        border-radius: 0;
        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: 57px;
        background: transparent;
        z-index: 1099;
        /* 阻止触摸事件穿透 */
        touch-action: none;
        -webkit-overflow-scrolling: none;
        overscroll-behavior: none;
    }

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

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

/* =============================================
   Navbar Full-Screen Calendar Panel
   ============================================= */

.navbar-calendar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.navbar-calendar-overlay.active {
    display: block;
}

.navbar-calendar-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.navbar-calendar-panel.active {
    display: flex;
    transform: translateY(0);
    animation: slideUpNavbarCalendar 0.3s ease;
}

@keyframes slideUpNavbarCalendar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.navbar-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.navbar-calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.navbar-calendar-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    transition: all 0.2s ease;
}

.navbar-calendar-close:hover {
    background: #eee;
    color: #333;
}

.navbar-calendar-container {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 15px 10px 15px 5px;
}

/* Month panel styles */
.navbar-calendar-month {
    margin-bottom: 25px;
}

.navbar-calendar-month-header {
    padding: 8px 10px 8px 5px;
    margin-bottom: 5px;
}

.navbar-calendar-month-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.navbar-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.navbar-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

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

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

.navbar-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.navbar-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    min-height: 44px;
}

.navbar-calendar-day:hover:not(.disabled):not(.empty) {
    background: #f5f5f5;
}

.navbar-calendar-day.empty {
    cursor: default;
}

.navbar-calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.navbar-calendar-day.sun {
    color: #e74c3c;
}

.navbar-calendar-day.sat {
    color: #3498db;
}

.navbar-calendar-day.sun.disabled,
.navbar-calendar-day.sat.disabled {
    color: #ddd;
}

.navbar-calendar-day.range-start {
    background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
    color: #fff;
    border-radius: 8px 0 0 8px;
}

.navbar-calendar-day.range-end {
    background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
    color: #fff;
    border-radius: 0 8px 8px 0;
}

.navbar-calendar-day.range-start.range-end {
    border-radius: 8px;
}

.navbar-calendar-day.in-range {
    background: rgba(210, 105, 30, 0.15);
    border-radius: 0;
}

.navbar-calendar-day.today {
    border: 2px solid #D2691E;
}

/* Scroll hint */
.navbar-calendar-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #999;
    font-size: 12px;
    gap: 6px;
    animation: bounceDownNavbar 1.5s ease infinite;
}

@keyframes bounceDownNavbar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Footer */
.navbar-calendar-footer {
    padding: 15px 20px 25px;
    background: #fff;
    border-top: 1px solid #eee;
}

.navbar-selected-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    border-radius: 10px;
    border: 1px solid rgba(210, 105, 30, 0.15);
}

.navbar-selected-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.navbar-selected-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.navbar-selected-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.navbar-selected-value.has-date {
    color: #D2691E;
}

.navbar-selected-arrow {
    color: #D2691E;
    font-size: 12px;
}

.navbar-selected-nights {
    background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.navbar-calendar-confirm {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
    transition: all 0.3s ease;
}

.navbar-calendar-confirm:hover {
    background: linear-gradient(135deg, #B8621E 0%, #E07B38 100%);
}

.navbar-calendar-confirm:active {
    transform: scale(0.98);
}

/* =============================================
   Mobile Bottom Navigation Bar
   ============================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 57px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2100; /* 在对话框和プラン検索之上 */
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* 为底部导航栏留出空间 */
    body {
        padding-bottom: 60px;
    }
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
    gap: 4px;
    transition: all 0.2s ease;
}

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

.bottom-nav-btn .bottom-nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bottom-nav-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* 宿泊予約按钮 - 宽度比例 2 */
.bottom-nav-btn.reserve-btn {
    flex: 2;
    position: relative;
    background: linear-gradient(135deg, #D2691E 0%, #FF8C42 100%);
    color: #fff;
}

.bottom-nav-btn.reserve-btn:active {
    background: linear-gradient(135deg, #B8621E 0%, #E07B38 100%);
}

/* Trip7 AI按钮 - 宽度比例 1 */
.bottom-nav-btn.ai-btn {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-nav-btn.ai-btn .bottom-nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.bottom-nav-btn.ai-btn:active {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

/* AI按钮状态切换 */
.bottom-nav-btn.ai-btn .ai-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-btn.ai-btn .ai-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-btn.ai-btn .ai-close i {
    font-size: 18px;
}

.bottom-nav-btn.ai-btn .ai-close span {
    font-size: 12px;
    font-weight: 500;
}

.bottom-nav-btn.ai-btn.active .ai-default {
    transform: scale(0.5);
    opacity: 0;
}

.bottom-nav-btn.ai-btn.active .ai-close {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* メニュー按钮 - 宽度比例 1 */
.bottom-nav-btn.menu-btn {
    flex: 1;
    background: #f8f9fa;
    color: #333;
    border-left: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.bottom-nav-btn.menu-btn:active {
    background: #e9ecef;
}

/* 默认内容容器 */
.bottom-nav-btn.menu-btn .menu-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 关闭内容容器 */
.bottom-nav-btn.menu-btn .menu-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-btn.menu-btn .menu-close i {
    font-size: 18px;
}

.bottom-nav-btn.menu-btn .menu-close span {
    font-size: 12px;
    font-weight: 500;
}

/* 激活状态 */
.bottom-nav-btn.menu-btn.active .menu-default {
    transform: scale(0.5);
    opacity: 0;
}

.bottom-nav-btn.menu-btn.active .menu-close {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 底部导航栏的「近日公開」标签 */
.bottom-nav-badge {
    position: absolute;
    top: -20px;
    right: -12px;
    background: #ff6b6b;
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 预约按钮状态切换 */
.bottom-nav-btn.reserve-btn .reserve-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.bottom-nav-btn.reserve-btn .reserve-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-btn.reserve-btn .reserve-close i {
    font-size: 18px;
}

.bottom-nav-btn.reserve-btn .reserve-close span {
    font-size: 12px;
    font-weight: 500;
}

.bottom-nav-btn.reserve-btn.active .reserve-default {
    transform: scale(0.5);
    opacity: 0;
}

.bottom-nav-btn.reserve-btn.active .reserve-close {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 底部导航栏logo行 */
.bottom-nav-logo-row {
    display: none;
    width: 100%;
    height: 33px;
    background: rgba(255, 255, 255, 0.98);
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        flex-wrap: wrap;
        transition: transform 0.3s ease;
    }

    .bottom-nav-logo-row {
        display: flex;
        order: 1;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav-btn {
        order: 0;
    }

    /* 显示第二行时整体上移 */
    .mobile-bottom-nav.show-logo {
        transform: translateY(-30px);
    }
}

/* 当底部导航栏显示logo时，面板也要跟着上移 */
.mobile-booking-panel.nav-expanded {
    bottom: 87px !important; /* 57px + 30px */
}

.ai-chat-panel.nav-expanded {
    bottom: 87px !important; /* 57px + 30px */
}

.bottom-nav-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-nav-logo {
    height: 20px;
    width: auto;
}

.bottom-nav-logo-hotel {
    height: 18px;
    width: auto;
}

/* =============================================
   AI Chat Panel Styles
   ============================================= */

/* Overlay */
.ai-chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 57px; /* 露出底部导航栏 */
    background: transparent;
    z-index: 2000;
    /* 阻止触摸事件穿透 */
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
}

.ai-chat-overlay.active {
    display: block;
}

/* Chat Panel */
.ai-chat-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 85vh;
    max-height: 700px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.ai-chat-panel.active {
    display: flex;
    transform: translateY(0);
}

/* Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    flex-shrink: 0;
}

.ai-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ai-chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-chat-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-chat-status .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.ai-chat-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* AI Message */
.ai-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-message-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.ai-message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ai-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-message-bubble {
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px 18px 18px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ai-message-time {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* User Message */
.user-message {
    display: flex;
    justify-content: flex-end;
    max-width: 85%;
    margin-left: auto;
}

.user-message-bubble {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3);
}

.user-message-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

/* Quick Actions */
.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.ai-quick-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ai-quick-btn:hover {
    background: #f0f4ff;
    border-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.ai-quick-btn i {
    font-size: 14px;
    color: #2563eb;
}

/* Typing Indicator */
.ai-typing {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-typing-bubble {
    background: #fff;
    padding: 14px 20px;
    border-radius: 4px 18px 18px 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ai-typing-dot {
    width: 8px;
    height: 8px;
    background: #1e3a8a;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Area */
.ai-chat-input-area {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ai-chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.ai-chat-input-wrapper:focus-within {
    border-color: #1e3a8a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.ai-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px; /* 必须 >= 16px 防止 iOS 自动缩放 */
    line-height: 40px;
    color: #333;
    resize: none;
    max-height: 100px;
    min-height: 40px;
    height: 40px;
    outline: none;
    font-family: inherit;
    padding: 0;
    display: flex;
    align-items: center;
}

.ai-chat-input::placeholder {
    color: #9ca3af;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.ai-chat-send:active {
    transform: scale(0.95);
}

/* Voice Input Button */
.ai-chat-voice {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: -8px;
}

.ai-chat-voice:hover {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.ai-chat-voice:active {
    transform: scale(0.95);
}

.ai-chat-voice.recording {
    background: #ef4444;
    color: #fff;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Voice not supported state */
.ai-chat-voice.not-supported {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Voice Toast for iOS Safari */
.voice-toast {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: toast-in 0.3s ease;
}

.voice-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.voice-toast-content > i {
    font-size: 18px;
    color: #ef4444;
}

.voice-toast.fade-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.ai-chat-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
}

.ai-chat-disclaimer i {
    font-size: 12px;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .ai-chat-panel {
        width: 420px;
        height: 600px;
        max-height: 80vh;
        left: auto;
        right: 20px;
        bottom: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    }

    .ai-chat-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ai-chat-panel {
        top: 0;
        left: 0;
        right: 0;
        bottom: 57px; /* 紧贴底部导航栏 */
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        transform: translateY(100%);
        /* 防止iOS safari的弹性滚动导致的问题 */
        -webkit-overflow-scrolling: touch;
    }

    .ai-chat-panel.active {
        transform: translateY(0);
    }

    .ai-chat-panel.no-transition {
        transition: none !important;
        transform: translateY(0) !important;
    }

    /* 当面板激活且高度被锁定时，确保内容区域正确滚动 */
    .ai-chat-panel.no-transition .ai-chat-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ai-chat-messages {
        padding: 16px;
    }

    .ai-message,
    .user-message {
        max-width: 90%;
    }

    .ai-quick-actions {
        padding: 8px 0;
    }

    .ai-quick-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* 输入区域固定在面板底部 */
    .ai-chat-input-area {
        flex-shrink: 0;
    }
}

/* =============================================
   开发环境测试模式横条
   ============================================= */

.dev-mode-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 -2px 10px rgba(255, 107, 107, 0.4);
}

.dev-mode-bar.active {
    display: block !important;
}

.dev-mode-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dev-mode-label {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.dev-mode-switches {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dev-switch-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-switch-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.dev-switch-buttons {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.1);
}

.dev-switch-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dev-switch-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dev-switch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dev-switch-btn.active {
    background: rgba(255, 200, 0, 0.9);
    color: #333;
}

.dev-switch-btn.prod.active {
    background: rgba(40, 200, 100, 0.9);
    color: #fff;
}

/* 隐藏按钮 */
.dev-mode-hide-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-mode-hide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.dev-mode-container {
    position: relative;
}

/* 当测试模式横条显示时，调整页面底部间距 */
body.dev-mode-active {
    padding-bottom: 50px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dev-mode-bar {
        padding: 6px 12px;
    }

    .dev-mode-container {
        gap: 12px;
    }

    .dev-mode-label {
        font-size: 12px;
    }

    .dev-mode-switches {
        gap: 12px;
    }

    .dev-switch-label {
        font-size: 11px;
    }

    .dev-switch-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    body.dev-mode-active .modern-navbar {
        top: 36px;
    }

    body.dev-mode-active .page-content,
    body.dev-mode-active main,
    body.dev-mode-active .hero-section,
    body.dev-mode-active .hero {
        padding-top: 36px;
    }
}

/* =============================================
   Language Switcher Styles
   ============================================= */

/* Desktop Language Switcher */
.navbar-actions .language-switcher {
    position: relative;
    margin-right: 10px;
    display: flex !important;
}

.navbar-actions .language-switcher .language-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: none;
}

.language-btn:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: #1e3a8a;
}

.language-btn i.fa-globe {
    font-size: 16px;
    color: #1e3a8a;
}

.language-btn .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.language-switcher.active .language-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.language-switcher.active .language-btn {
    background: rgba(30, 58, 138, 0.08);
    border-color: #1e3a8a;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.language-option:hover {
    background: rgba(30, 58, 138, 0.08);
}

.language-option.active {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.language-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: #1e3a8a;
    font-size: 12px;
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* Mobile Language Switcher - Compact Dropdown */
.mobile-language-switcher {
    padding: 0;
}

.mobile-language-dropdown {
    position: relative;
    padding: 15px 0;
}

.mobile-lang-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-trigger:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.mobile-lang-trigger i.fa-globe {
    color: #8a7a5e;
    font-size: 16px;
}

.mobile-current-lang {
    flex: 1;
    text-align: left;
}

.mobile-lang-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.mobile-language-dropdown.open .mobile-lang-arrow {
    transform: rotate(180deg);
}

.mobile-lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-top: 8px;
    z-index: 10000;
}

/* Mobile panel: inline expand instead of absolute dropdown */
@media (max-width: 768px) {
    .mobile-language-switcher {
        flex: none !important;
    }

    .mobile-language-dropdown {
        flex: none !important;
        overflow: visible;
    }

    .mobile-lang-trigger {
        flex: none !important;
        min-height: 50px;
        touch-action: manipulation;
    }

    .mobile-lang-options {
        position: static;
        transform: none;
        min-width: unset;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        background: #f8f9fa;
    }

    .mobile-language-dropdown.open .mobile-lang-options {
        animation: none;
        opacity: 1;
    }
}

.mobile-language-dropdown.open .mobile-lang-options {
    display: block;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-option:last-child {
    border-bottom: none;
}

.mobile-lang-option:hover {
    background: #f8f9fa;
}

.mobile-lang-option.active {
    background: rgba(138, 122, 94, 0.08);
    color: #8a7a5e;
}

.mobile-lang-option .lang-flag {
    font-size: 18px;
}

.mobile-lang-check {
    margin-left: auto;
    color: #8a7a5e;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-lang-option.active .mobile-lang-check {
    opacity: 1;
}

/* Hide desktop language switcher on mobile */
@media (max-width: 768px) {
    .navbar-actions .language-switcher {
        display: none !important;
    }
}

/* Hide mobile language switcher on desktop */
@media (min-width: 769px) {
    .mobile-language-switcher {
        display: none;
    }
}

/* ========================================
   FUJI ROCK Banner Styles
   ======================================== */
.fujir-banner {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    position: relative;
    display: none;
}

.fujir-banner.active {
    display: block;
}

.fujir-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fujir-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fujir-banner-text i {
    color: #ffa502;
    font-size: 16px;
}

.fujir-banner-text span {
    color: rgba(255, 255, 255, 0.95);
}

.fujir-banner-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fujir-banner-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.fujir-banner-item i {
    font-size: 12px;
    color: #e94560;
}

.fujir-banner-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fujir-banner-toggle:hover {
    color: #fff;
}

.fujir-banner-details {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* 下拉展开时：高度足够显示三张详情卡片 */
.fujir-banner.expanded .fujir-banner-details {
    max-height: 320px;
    padding-top: 16px;
}

.fujir-banner-details-inner {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.fujir-banner-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.fujir-banner-detail-item i {
    color: #ffa502;
    margin-top: 2px;
}

.fujir-banner-detail-item strong {
    display: block;
    color: #fff;
    margin-bottom: 2px;
}

/* 详情文案与标题之间加空格，避免「駐車場お部屋」连在一起 */
.fujir-banner-detail-item div {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .fujir-banner {
        padding: 10px 15px;
        font-size: 13px;
    }

    .fujir-banner-inner {
        flex-direction: column;
        gap: 8px;
    }

    .fujir-banner-items {
        gap: 12px;
    }

    .fujir-banner-item {
        font-size: 12px;
    }

    .fujir-banner-details-inner {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }
}
