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

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

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

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

    /* 隐藏侧边菜单中的宿泊予約按钮（底部导航栏已有） */
    .navbar-menu .nav-item[data-page="reservation"] {
        display: none;
    }

    /* 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 {
        background: rgba(30, 58, 138, 0.08);
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: auto;
        top: 50%;
        left: 0;
        right: auto;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: linear-gradient(180deg, #1e3a8a, #2563eb);
        border-radius: 0 2px 2px 0;
    }

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

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

    .navbar-menu {
        width: 85vw;
        max-width: 280px;
        padding: 70px 0 80px 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: 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: 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;
    }

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

    .navbar-menu {
        width: 80vw;
        max-width: 260px;
        padding: 60px 0 80px 0;
    }

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

    .nav-item i {
        margin-right: 8px;
        font-size: 16px;
        width: 24px;
        min-width: 24px;
        height: 16px;
    }

    .mobile-auth-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .mobile-auth-btn i {
        margin-right: 8px;
        font-size: 16px;
        width: 24px;
        min-width: 24px;
        height: 16px;
    }

    .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: 12px 16px;
        font-size: 13px;
    }

    .mobile-phone-link i {
        font-size: 16px;
        width: 24px;
        min-width: 24px;
    }

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

    .mobile-menu-divider {
        margin: 10px 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: 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: 768px) {
    .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;
    }
}

