/* Font faces managed by Google Fonts in index.html */

:root {
    --primary: #00BFA5; /* Mint Breeze */
    --primary-hover: #00A690;
    --bg-color: #FAFAFA; /* Zinc 50 */
    --card-bg: rgba(255, 255, 255, 0.7); /* More transparent for glass */
    --text-dark: #09090B; /* Zinc 950 */
    --text-muted: #71717A; /* Zinc 500 */
    --radius-heavy: 28px;
    --radius-pill: 9999px;
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    --spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Serif SC", 'Satoshi', serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow: hidden;
}

/* Home View */
.home-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Slider */
.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bg-slider::-webkit-scrollbar {
    display: none;
}

.bg-slider.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.bg-slider .slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
}

.bg-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 220px; /* Above the info cards */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 6px;
    align-items: center;
}

.slider-arrow {
    display: none;
}

.slider-pagination .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.slider-pagination .dot.active {
    width: 18px;
    border-radius: 3px;
    background: #ffffff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(255,255,255,0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.scenic-info {
    position: absolute;
    top: 10%;
    left: 20px;
    z-index: 2;
    color: #ffffff;
    pointer-events: none;
}

.scenic-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scenic-info .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.tags span {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s var(--spring-easing);
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: white;
}

.tags span:hover {
    background: transparent;
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.8);
}

.tags span:active {
    background: transparent;
    border-color: transparent;
    transform: scale(0.98);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
}

.weather {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bottom-info {
    position: absolute;
    bottom: 160px;
    left: 0;
    width: 100%;
    padding: 0 24px;
    z-index: 2;
    display: flex;
    gap: 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.info-card {
    flex: 1;
    background: transparent;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding: 8px 0 8px 16px;
}

.info-card:first-child {
    border-left: none;
    padding-left: 0;
}

.card-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.status-green {
    color: #00BFA5;
}

/* Floating Action Button */
.fab {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #ffffff;
    box-shadow: 0 12px 28px rgba(0, 191, 165, 0.4);
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s var(--spring-easing);
}

.fab:active {
    transform: translateX(-50%) scale(0.92);
}

/* =========================================
   Liquid Glass Drawer (V2 Redesign)
   ========================================= */

.avatar-drawer {
    position: fixed;
    bottom: -100%;
    left: 4%;
    width: 92%;
    height: 65vh; /* Initial half-screen height */
    
    /* Liquid Glass Effect */
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    
    border-radius: var(--radius-heavy);
    z-index: 30;
    display: flex;
    flex-direction: column;
    
    /* Spring Physics Transition */
    transition: all 0.6s var(--spring-easing);
    opacity: 0;
    pointer-events: none;
    overflow: visible; /* Important for the protruding mic button */
}

/* States */
.avatar-drawer.open {
    bottom: 20px; /* Floating above the bottom */
    opacity: 1;
    pointer-events: auto;
}

.avatar-drawer.fullscreen {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0; /* Remove rounding when full screen */
    border: none;
}

/* Handle Area */
.drawer-drag-area {
    width: 100%;
    padding: 16px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 40;
}

.drawer-handle-bar {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    margin-bottom: 4px;
}

.drawer-handle-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Top Right Actions */
.drawer-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 40;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.8);
}

/* Model Container */
.model-container {
    height: 35%; /* Fixed ratio */
    flex-shrink: 0; /* Prevent squishing */
    width: 100%;
    position: relative;
    background: radial-gradient(circle at center, rgba(92,107,192,0.1) 0%, transparent 70%);
}

.avatar-drawer.fullscreen .model-container {
    height: 35%; /* Reverted to 35% as requested by user */
}

/* Hide manage button in fullscreen to prevent overlap with drawer actions */
.manage-btn.hidden-by-drawer {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    outline: none;
}

/* Interaction Container */
.interaction-container {
    flex: 1;
    min-height: 0; /* Prevent flex blowout */
    background: #ffffff;
    border-radius: var(--radius-heavy);
    margin: 0 12px 12px 12px; /* Margin to show glass behind it */
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.02);
}

.avatar-drawer.fullscreen .interaction-container {
    margin: 0;
    border-radius: var(--radius-heavy) var(--radius-heavy) 0 0;
    flex: 1;
}

/* Greeting Text */
.greeting-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    margin-bottom: auto; /* Push bottom controls down */
    line-height: 1.5;
}

/* Suggestion Pills */
.suggestion-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.suggestion-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #f3f4f6;
    border: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.pill:active {
    transform: scale(0.96);
    background: #e5e7eb;
}

.pill.primary {
    background: var(--primary);
    color: white;
}

.pill.special {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

/* Bottom Controls */
.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px; /* Changed from margin-top to padding-top so background covers it */
    position: relative;
    margin-top: 0;
}

.side-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.2s;
}

.side-btn:active {
    transform: scale(0.9);
}

/* The Huge Mic Button */
.mic-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px; /* Protrudes slightly */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mic-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.huge-mic-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 16px 32px rgba(92, 107, 192, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s var(--spring-easing);
    position: relative;
}

.huge-mic-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s;
}

.huge-mic-btn.recording {
    transform: scale(1.1);
    background: var(--primary);
    color: #ffffff;
}

.huge-mic-btn.recording::before {
    animation: ripple 1.5s infinite ease-out;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Chat Messages (Used in fullscreen/keyboard mode) */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.message {
    display: flex;
    max-width: 85%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.message.ai .msg-bubble {
    background: #f3f4f6;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message.user .msg-bubble {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* View Panels */
.view-panel {
    display: none;
    flex-direction: column;
}

#micViewPanel {
    flex: none;
    margin-top: auto;
}

.view-panel.active {
    display: flex;
}

#keyboardViewPanel {
    flex: none;
    margin-top: auto;
}

/* Keyboard Input Bar */
.keyboard-input-bar {
    position: relative;
    margin: 0 -20px -24px -20px; /* Bleed out of interaction-container padding */
    width: auto;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 0 var(--radius-heavy) var(--radius-heavy);
}

.avatar-drawer.fullscreen .keyboard-input-bar {
    border-radius: 0;
}

.icon-btn-flat {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-flat.primary-text {
    color: var(--primary);
}

.keyboard-input-bar input {
    flex: 1;
    min-width: 0;
    background: #f3f4f6;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-dark);
}

.keyboard-input-bar input:focus {
    box-shadow: 0 0 0 2px rgba(92,107,192,0.2);
}

/* Adjust interaction container to accommodate absolute bottom bar */
.interaction-container {
    padding-bottom: 70px; /* Space for absolute keyboard bar if active */
}

/* Mic View specific adjustment to override the padding if mic is active */
#micViewPanel .bottom-controls {
    margin-top: auto; /* Push controls to bottom */
    padding-bottom: 10px;
}

/* Manage Button */
.manage-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 99999;
    background: transparent !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s var(--spring-easing);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.manage-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.manage-btn:active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Staggered Reveal Animations
   ========================================= */
@keyframes fadeInUpStagger {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-reveal {
    opacity: 0; /* Initially hidden */
    animation: fadeInUpStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }

/* =========================================
   Desktop Adaptation (1024px+)
   Target baseline: 1440x900, with room for 1366x768 and 1920x1080.
   ========================================= */
@media (min-width: 1024px) {
    .bg-slider {
        cursor: grab;
    }

    .bg-slider .slide {
        background-position: center 42%;
    }

    .overlay {
        background:
            linear-gradient(90deg, rgba(0,0,0,0.54) 0%, rgba(0,0,0,0.28) 34%, rgba(0,0,0,0.08) 58%, rgba(0,0,0,0.2) 100%),
            linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, transparent 48%, rgba(255,255,255,0.92) 100%);
    }

    .scenic-info {
        top: clamp(96px, 16vh, 150px);
        left: clamp(48px, 6vw, 112px);
        max-width: min(520px, calc(100vw - 620px));
    }

    .scenic-info h1 {
        font-size: clamp(3rem, 4.1vw, 4.75rem);
        line-height: 1.05;
        margin-bottom: 18px;
    }

    .scenic-info .subtitle {
        font-size: clamp(1.15rem, 1.5vw, 1.55rem);
        margin-bottom: 30px;
    }

    .tags {
        gap: 12px;
        margin-bottom: 30px;
    }

    .tags span {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .weather {
        font-size: 1.2rem;
    }
    
    .bottom-info {
        left: clamp(48px, 6vw, 112px);
        bottom: clamp(54px, 8vh, 92px);
        width: min(520px, calc(100vw - 620px));
        padding: 0;
        gap: 0;
        justify-content: flex-start;
    }

    .info-card {
        flex: 0 0 auto;
        min-width: 220px;
        padding: 10px 0 10px 32px;
    }

    .info-card:first-child {
        padding-left: 0;
        padding-right: 32px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-value {
        font-size: 1.55rem;
    }

    .slider-pagination {
        bottom: clamp(150px, 18vh, 210px);
        pointer-events: auto;
    }

    .slider-pagination .dot {
        cursor: pointer;
    }

    .slider-arrow {
        position: absolute;
        top: 50%;
        z-index: 12;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.42);
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--glass-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
        cursor: pointer;
        transform: translateY(-50%);
        transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    }

    .slider-arrow:hover {
        background: rgba(255, 255, 255, 0.24);
        transform: translateY(-50%) scale(1.04);
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.96);
    }

    .slider-arrow-prev {
        left: 28px;
    }

    .slider-arrow-next {
        right: 28px;
    }

    body:has(.avatar-drawer.open) .slider-arrow-next {
        right: calc(32px + min(460px, calc(100vw - 96px)) + 28px);
    }
    
    .manage-btn {
        top: 32px;
        left: 24px;
        padding: 10px 18px;
        font-size: 1rem;
    }

    body:has(.avatar-drawer.open) .manage-btn {
        left: 24px; /* Unaffected by right drawer */
    }

    .fab {
        bottom: 42px;
        width: 74px;
        height: 74px;
        box-shadow: 0 18px 42px rgba(0, 191, 165, 0.42);
    }

    .avatar-drawer {
        top: 32px !important;
        right: -560px; /* Hidden state */
        bottom: 32px !important;
        left: auto !important;
        width: min(460px, calc(100vw - 96px)) !important;
        height: auto !important;
        transform: none !important; /* Prevent bottom translation */
        border-radius: 32px !important;
        background: rgba(255, 255, 255, 0.62);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 28px 70px -28px rgba(0, 0, 0, 0.35);
        transition: right 0.55s var(--spring-easing), opacity 0.45s;
    }

    .avatar-drawer.open {
        right: 32px !important;
        transform: none !important;
    }
    
    .avatar-drawer.fullscreen {
        /* Desktop uses a fixed side panel; fullscreen is a mobile-only behavior. */
        width: min(460px, calc(100vw - 96px)) !important; 
        height: auto !important;
        bottom: 32px !important;
        top: 32px !important;
        right: 32px !important;
        border-radius: 32px !important;
    }
    
    .drawer-drag-area {
        display: none !important;
    }

    .drawer-actions {
        top: 24px;
        right: 24px;
    }

    .model-container {
        height: 42%;
        padding-top: 18px;
        background: radial-gradient(circle at center 58%, rgba(92,107,192,0.18) 0%, transparent 68%);
    }

    .avatar-drawer.fullscreen .model-container {
        height: 42%;
    }

    .interaction-container {
        margin: 0 16px 16px 16px;
        padding: 28px 24px 80px;
        border-radius: 28px;
    }

    .avatar-drawer.fullscreen .interaction-container {
        margin: 0 16px 16px 16px;
        border-radius: 28px;
        height: auto;
    }

    .bottom-controls {
        margin-top: 28px;
    }

    .huge-mic-btn {
        width: 86px;
        height: 86px;
    }
    
    .keyboard-input-bar {
        border-radius: 0 0 28px 28px !important;
    }
}

/* -------------------------------------
 * Bottom Navigation Bar (Mint Breeze Theme)
 * ------------------------------------- */
.bottom-nav-bar {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 90%;
    max-width: 400px;
    height: 72px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 36px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 0 8px;
    transition: transform 0.4s var(--spring-easing), opacity 0.3s ease;
}

/* Hide navigation when drawer is open */
body:has(.avatar-drawer.open) .bottom-nav-bar {
    transform: translateX(-50%) translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4B5563; /* Gray text */
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 80px;
}

.nav-item:hover,
.nav-item:active {
    color: #00BFA5; /* Mint Breeze Active */
    transform: translateY(-2px) scale(1.05);
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.nav-svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.nav-item:hover .nav-svg {
    opacity: 1;
}

/* Center Action Button */
.center-action {
    transform: translateY(-20px);
    width: 90px;
}

.center-action:hover,
.center-action:active {
    transform: translateY(-22px) scale(1.05);
}

.center-action .center-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00BFA5, #00E5FF); /* Mint Breeze gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
    z-index: 2;
    position: relative;
}

.center-action .nav-svg-ai {
    width: 28px;
    height: 28px;
}

.center-action span {
    margin-top: 8px;
    color: #00BFA5;
    font-size: 0.75rem;
}

/* Breathing Glow Animation */
.glow-ring {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00BFA5;
    opacity: 0.5;
    z-index: 1;
    animation: breathingGlow 3s ease-in-out infinite alternate;
}

@keyframes breathingGlow {
    0% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(0, 191, 165, 0.2);
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.1;
        box-shadow: 0 0 30px rgba(0, 191, 165, 0.6);
    }
}

/* Glass Drawers */
.glass-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
#guideDrawer, #historyDrawer, #sceneryDrawer {
    height: auto;
    padding-bottom: 48px;
}
.glass-drawer.open {
    transform: translateY(0);
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
}
.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1F2937;
    font-weight: 700;
}
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

/* Gallery Scroll (攻略) */
.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
}
.gallery-scroll::-webkit-scrollbar {
    display: none;
}
.gallery-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.listen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #00BFA5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Spots Carousel Layout (打卡点) */
.spots-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px 16px 24px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.spots-carousel::-webkit-scrollbar {
    display: none;
}
.spot-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 80px;
}

.nav-item:hover,
.nav-item:active {
    color: #00BFA5; /* Mint Breeze Active */
    transform: translateY(-2px) scale(1.05);
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.nav-svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.nav-item:hover .nav-svg {
    opacity: 1;
}

/* Center Action Button */
.center-action {
    transform: translateY(-20px);
    width: 90px;
}

.center-action:hover,
.center-action:active {
    transform: translateY(-22px) scale(1.05);
}

.center-action .center-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00BFA5, #00E5FF); /* Mint Breeze gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
    z-index: 2;
    position: relative;
}

.center-action .nav-svg-ai {
    width: 28px;
    height: 28px;
}

.center-action span {
    margin-top: 8px;
    color: #00BFA5;
    font-size: 0.75rem;
}

/* Breathing Glow Animation */
.glow-ring {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00BFA5;
    opacity: 0.5;
    z-index: 1;
    animation: breathingGlow 3s ease-in-out infinite alternate;
}

@keyframes breathingGlow {
    0% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(0, 191, 165, 0.2);
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.1;
        box-shadow: 0 0 30px rgba(0, 191, 165, 0.6);
    }
}

/* Glass Drawers */
.glass-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
#guideDrawer, #historyDrawer, #sceneryDrawer {
    height: auto;
    padding-bottom: 48px;
}
.glass-drawer.open {
    transform: translateY(0);
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
}
.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1F2937;
    font-weight: 700;
}
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

/* Gallery Scroll (攻略) */
.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
}
.gallery-scroll::-webkit-scrollbar {
    display: none;
}
.gallery-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.listen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #00BFA5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Spots Carousel Layout (打卡点) */
.spots-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px 16px 24px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.spots-carousel::-webkit-scrollbar {
    display: none;
}
.spot-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.spot-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
}
.scenery-card {
    flex: 0 0 90%;
    align-self: center;
    height: auto;
}
.scenery-card img {
    aspect-ratio: 16/9;
    height: auto;
}
.spot-location-name {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 2;
}
.spot-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.spot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.spot-details-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F2937;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.spot-details-btn:active {
    background: #e5e7eb;
}
.spot-tag {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.listen-btn.icon-only {
    padding: 8px;
    border-radius: 50%;
    bottom: 0; right: 0;
    position: relative;
}

/* Form Layout (定制路线) */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Premium Buttons */
.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00BFA5, #00E5FF);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 191, 165, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
}

.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 191, 165, 0.08);
    color: #00BFA5;
    border: 1px solid rgba(0, 191, 165, 0.2);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:active {
    transform: scale(0.96);
    background: rgba(0, 191, 165, 0.15);
}
.chip {
    padding: 10px 16px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip.active {
    background: #00BFA5;
    color: white;
    border-color: #00BFA5;
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

/* Timeline Layout */
.timeline-layout {
    padding-left: 32px !important;
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
    border-left: 2px solid #E5E7EB;
    padding-left: 24px;
}
.timeline-item:last-child {
    border-left-color: transparent;
}
.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00BFA5;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(0,191,165,0.2);
}
.timeline-title {
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.timeline-desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.5;
    background: rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 12px;
}
.play-node-btn {
    background: none; border: none; color: #00BFA5; cursor: pointer; font-size: 1.1rem;
    display: block;
}
.scenery-card {
    flex: 0 0 90%;
    align-self: center;
    height: auto;
}
.scenery-card img {
    aspect-ratio: 16/9;
    height: auto;
}
.spot-location-name {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 2;
}
.spot-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.spot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.spot-details-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F2937;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.spot-details-btn:active {
    background: #e5e7eb;
}
.spot-tag {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.listen-btn.icon-only {
    padding: 8px;
    border-radius: 50%;
    bottom: 0; right: 0;
    position: relative;
}

/* Form Layout (定制路线) */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Premium Buttons */
.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00BFA5, #00E5FF);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 191, 165, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
}

.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 191, 165, 0.08);
    color: #00BFA5;
    border: 1px solid rgba(0, 191, 165, 0.2);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:active {
    transform: scale(0.96);
    background: rgba(0, 191, 165, 0.15);
}
.chip {
    padding: 10px 16px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip.active {
    background: #00BFA5;
    color: white;
    border-color: #00BFA5;
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

/* Timeline Layout */
.timeline-layout {
    padding-left: 32px !important;
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
    border-left: 2px solid #E5E7EB;
    padding-left: 24px;
}
.timeline-item:last-child {
    border-left-color: transparent;
}
.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00BFA5;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(0,191,165,0.2);
}
.timeline-title {
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.timeline-desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.5;
    background: rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 12px;
}
.play-node-btn {
    background: none; border: none; color: #00BFA5; cursor: pointer; font-size: 1.1rem;
}

/* 3D Flip Card Styles */
.spot-card {
    perspective: 2000px;
    background: transparent !important;
    box-shadow: none !important;
}
.spot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform;
}
.spot-card.flipped .spot-card-inner {
    transform: rotateY(180deg);
}
.spot-card-front, .spot-card-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.spot-card-back {
    background: #ffffff;
    transform: rotateY(180deg) translateZ(0);
    -webkit-transform: rotateY(180deg) translateZ(0);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.spot-back-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.spot-back-content h4 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    color: var(--primary);
    border-bottom: 2px solid rgba(0, 191, 165, 0.2);
    padding-bottom: 10px;
    font-weight: 600;
}
.spot-back-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 14px;
    text-indent: 2em;
    opacity: 0;
    transform: translateY(15px);
}
.spot-card.flipped .spot-back-content p {
    animation: fadeUpIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.spot-card.flipped .spot-back-content p:nth-child(2) { animation-delay: 0.15s; }
.spot-card.flipped .spot-back-content p:nth-child(3) { animation-delay: 0.25s; }
.spot-card.flipped .spot-back-content p:nth-child(4) { animation-delay: 0.35s; }
.spot-card.flipped .spot-back-content p:nth-child(5) { animation-delay: 0.45s; }
.spot-card.flipped .spot-back-content p:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.spot-back-btn {
    align-self: flex-end;
    background: #00BFA5;
    color: white;
    margin-top: 12px;
}

/* Floating Avatar */
#floating-avatar {
    position: fixed;
    bottom: 100px; /* Above nav bar */
    right: 16px;
    width: 160px;
    height: 240px;
    z-index: 9999;
    cursor: grab;
    pointer-events: auto;
}
#floating-avatar:active {
    cursor: grabbing;
}

/* Vision Scanner UI */
.vision-img-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}
.vision-img {
    max-width: 100%;
    max-height: 150px;
    display: block;
    border-radius: 8px;
}
.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 191, 165, 0.1) 0%, rgba(0, 191, 165, 0.4) 50%, rgba(0, 191, 165, 0.1) 100%);
    background-size: 100% 200%;
    animation: scan 1.5s linear infinite;
    pointer-events: none;
    border-top: 2px solid var(--primary);
}
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Guide Carousel Cards */
.guide-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
}
.guide-carousel::-webkit-scrollbar { display: none; }
.guide-card {
    flex: 0 0 72%;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    background: #fff;
    display: flex;
    flex-direction: column;
}
.guide-card-img-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.guide-card-img-wrap img {
    width: 100%;
    aspect-ratio: 3/5;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.guide-card-img-wrap:hover img,
.guide-card-img-wrap:active img {
    transform: scale(1.04);
}
.guide-zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    pointer-events: none;
}
.guide-card-img-wrap:hover .guide-zoom-hint,
.guide-card-img-wrap:active .guide-zoom-hint {
    background: rgba(0,0,0,0.25);
}
.guide-zoom-hint i {
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.guide-card-img-wrap:hover .guide-zoom-hint i,
.guide-card-img-wrap:active .guide-zoom-hint i {
    opacity: 1;
    transform: scale(1);
}
.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    gap: 8px;
}
.guide-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    flex: 1;
}
.guide-listen-btn {
    position: static !important;
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0,191,165,0.1) !important;
    color: #00BFA5 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 1.1rem !important;
}

/* Fullscreen Image Overlay */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.fullscreen-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.fullscreen-img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    display: block;
}
.zoom-hint-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.zoom-hint-overlay.show {
    opacity: 1;
}
.fullscreen-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}
.fullscreen-close-btn:hover { background: rgba(0,0,0,0.75); }
.fullscreen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    z-index: 1;
}
.fullscreen-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.fullscreen-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}
.fullscreen-prev {
    left: 16px;
}
.fullscreen-next {
    right: 16px;
}


/* History Drawer */
.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9CA3AF;
    text-align: center;
    padding-bottom: 20%;
}
.history-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #D1D5DB;
}
.history-empty p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 4px;
}
.history-empty span {
    font-size: 0.85rem;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 30px;
}
.history-item {
    display: flex;
    flex-direction: column;
}
.history-item .history-time {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 8px;
}
.history-item.user {
    align-items: flex-end;
}
.history-item.ai {
    align-items: flex-start;
}
.history-item.user .history-bubble {
    background: var(--primary);
    color: white;
    border-radius: 20px 20px 4px 20px;
}
.history-item.ai .history-bubble {
    background: #f3f4f6;
    color: var(--text-dark);
    border-radius: 20px 20px 20px 4px;
}
.history-bubble {
    padding: 12px 16px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.drawer-actions-left {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 40;
}

/* Override drawer actions alignment */
.drawer-actions, .drawer-actions-left {
    top: 8px !important;
}

/* Override bottom controls for mic panel to bring camera and keyboard closer */
#micViewPanel .bottom-controls {
    justify-content: center !important;
    gap: 120px !important;
}
#micUploadBtn, #keyboardToggleBtn {
    margin: 0 !important;
}


/* Move history empty state down */
.history-empty {
    padding-bottom: 0 !important;
    padding-top: 50px !important;
    justify-content: flex-start !important;
}
.history-empty .start-chat-btn {
    margin-top: 30px !important;
}

/* Language Select Dropdown */
.custom-lang-select {
    position: relative;
    display: inline-block;
}
.lang-select-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.lang-select-trigger:hover {
    background: rgba(255, 255, 255, 0.95);
}
.lang-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 4px;
    display: none;
    z-index: 100;
}
.custom-lang-select.open .lang-select-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease;
}
.lang-option {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #4B5563;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
}
.lang-option:hover {
    background: #f3f4f6;
    color: var(--primary);
}
.lang-option.active {
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Layout Fixes for Spot Intro */
.drawer-header {
    flex-wrap: wrap;
}
.drawer-content {
    word-break: break-word;
    white-space: normal;
}
.spot-attr-item .attr-value, .spot-desc-section p {
    white-space: normal;
    word-break: break-word;
}

/* ================================================
   景点介绍 — 区域标签栏 (Issue 4)
   ================================================ */
.spots-tabs-container {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0 10px 0;
    margin-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.spots-tabs-container::-webkit-scrollbar {
    display: none;
}
.spots-tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 16px;
    width: max-content;
}
.spot-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #4B5563;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}
.spot-tab:hover {
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary, #00BFA5);
}
.spot-tab.active {
    background: rgba(0, 191, 165, 0.12);
    color: var(--primary, #00BFA5);
    border-color: rgba(0, 191, 165, 0.4);
    font-weight: 600;
}

/* ================================================
   景点介绍 — 卡片列表 (Issue 4)
   ================================================ */
.spots-cards-wrapper {
    padding: 8px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.premium-spot-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    animation: spotCardFadeIn 0.35s ease both;
}
.premium-spot-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
@keyframes spotCardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stagger-reveal {
    animation: spotCardFadeIn 0.35s ease both;
}
.spot-card-header {
    padding: 14px 16px 12px;
    cursor: pointer;
    user-select: none;
}
.spot-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.spot-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    flex: 1;
}
.spot-expand-icon {
    font-size: 1.1rem;
    color: #9CA3AF;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.premium-spot-card.expanded .spot-expand-icon {
    transform: rotate(180deg);
}
.spot-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.spot-tag.area-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary, #00BFA5);
    font-size: 0.75rem;
    font-weight: 500;
}
.spot-brief {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 6px 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spot-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.premium-spot-card.expanded .spot-card-body {
    max-height: 1000px;
}
.spot-card-inner {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.spot-attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}
.spot-attr-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #F9FAFB;
    border-radius: 10px;
    padding: 8px 10px;
}
.attr-label {
    font-size: 0.72rem;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.attr-value {
    font-size: 0.82rem;
    color: #374151;
    font-weight: 600;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.section-title i {
    color: var(--primary, #00BFA5);
}
.spot-desc-section,
.spot-highlight-section,
.spot-open-section {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
}
.spot-desc-section p,
.spot-highlight-section p,
.spot-open-section p {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0;
}
