:root {
    --deep-emerald: #061F1A;
    --emerald-light: #0B2D26;
    --brushed-gold: #D4AF37;
    --bocas-turquoise: #00CED1;
    --hibiscus-coral: #FF6B6B;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --turquoise-glow: rgba(0, 206, 209, 0.6);
    --gold-muted: #A68A2D;
    --text-main: #E0E0E0;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--deep-emerald);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 320px;
    background: var(--deep-emerald);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem; display: flex; flex-direction: column; z-index: 100;
}

.logo {
    color: var(--brushed-gold);
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 2rem;
}

.concierge-avatar {
    position: relative; width: 120px; height: 120px; border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--bocas-turquoise), var(--brushed-gold), var(--hibiscus-coral));
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.3), 0 0 40px rgba(212, 175, 55, 0.15);
    margin: 0 auto 1.5rem auto;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.concierge-avatar .avatar-svg {
    width: 100%; height: 100%; border-radius: 50%;
    border: 3px solid var(--deep-emerald);
    animation: avatarIdle 4s ease-in-out infinite;
}
@keyframes avatarIdle {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
    50% { filter: brightness(1.04) drop-shadow(0 2px 8px rgba(0, 206, 209, 0.15)); }
}
.concierge-avatar.is-speaking {
    animation: speakingPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(0, 206, 209, 0.5), 0 0 50px rgba(212, 175, 55, 0.3), 0 0 80px rgba(255, 107, 107, 0.15);
}
@keyframes speakingPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 206, 209, 0.5), 0 0 50px rgba(212, 175, 55, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 35px rgba(0, 206, 209, 0.7), 0 0 70px rgba(212, 175, 55, 0.4), 0 0 100px rgba(255, 107, 107, 0.2); }
}

/* Landing Page */
.intro-hero {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--deep-emerald);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}
.intro-hero.hidden { transform: translateY(-100%); }
.video-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }

.intro-content {
    position: relative; z-index: 2; text-align: center; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.intro-title { font-family: 'Outfit'; font-size: 8rem; color: var(--brushed-gold); text-transform: uppercase; letter-spacing: 12px; margin-bottom: 0.5rem; font-weight: 800; }
.intro-subtitle { font-family: 'Outfit'; font-size: 2rem; color: var(--white); letter-spacing: 20px; text-transform: uppercase; opacity: 0.7; margin-bottom: 4rem; }

/* Tap to Start */
.tap-to-start {
    margin-top: 2rem;
    color: var(--brushed-gold);
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    animation: gentlePulse 2.5s ease-in-out infinite;
}
@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* Center Mic Button */
.mic-button {
    background: none; border: 4px solid var(--bocas-turquoise);
    width: 140px; height: 140px; border-radius: 50%;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 0 40px var(--turquoise-glow);
    display: flex; align-items: center; justify-content: center;
    color: var(--bocas-turquoise); font-size: 3.5rem;
}
.mic-button:hover { background: rgba(0, 206, 209, 0.1); transform: scale(1.1); }

/* Intake Page Button - High Contrast */
.voice-reg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--bocas-turquoise); color: #000000 !important;
    padding: 16px 32px; border-radius: 40px; text-decoration: none;
    font-family: 'Outfit'; font-weight: 900;
    box-shadow: 0 0 30px var(--turquoise-glow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.voice-reg-btn:hover {
    transform: scale(1.05);
    background: var(--white);
    box-shadow: 0 0 40px var(--turquoise-glow);
}

/* Day Cards */
.day-card {
    background: var(--emerald-light);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}
.day-card:hover { border-color: var(--brushed-gold); transform: translateY(-5px); }

/* Discovery Overlay */
.discovery-overlay {
    position: fixed; inset: 0; background: rgba(6, 31, 26, 0.95);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(15px);
}
.discovery-overlay.active { display: flex; }

/* Discovery Step Screens */
.discovery-step {
    text-align: center;
    padding: 2rem;
    max-width: 520px;
    animation: fadeIn 0.6s ease;
}
.discovery-step-number {
    font-family: 'Outfit';
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bocas-turquoise);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}
.discovery-step-title {
    font-family: 'Outfit';
    color: var(--brushed-gold);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.discovery-step-desc {
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Swipe Instructions Visual */
.swipe-instructions-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.swipe-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: swipePulse 2s ease-in-out infinite;
}
.swipe-demo-left { animation-delay: 0s; }
.swipe-demo-right { animation-delay: 1s; }
@keyframes swipePulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(0); }
}
.swipe-label {
    font-family: 'Outfit';
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.swipe-label-pass { color: #FF6B6B; }
.swipe-label-love { color: #4CAF50; }
.swipe-demo-card {
    width: 80px;
    height: 110px;
    border-radius: 12px;
    background: var(--emerald-light);
    border: 2px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.swipe-demo-card-inner {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

/* Camera Option */
.camera-option-container {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}
.camera-option-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.camera-option-divider::before,
.camera-option-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}
.camera-option-divider span {
    color: var(--text-main);
    opacity: 0.4;
    font-family: 'Outfit';
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.camera-option-text {
    color: var(--text-main);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Outfit';
}
.camera-option-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.camera-enable-btn {
    background: rgba(0, 206, 209, 0.12);
    border: 1.5px solid var(--bocas-turquoise);
    color: var(--bocas-turquoise);
    padding: 0.65rem 1.4rem;
    border-radius: 25px;
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}
.camera-enable-btn:hover {
    background: var(--bocas-turquoise);
    color: var(--deep-emerald);
}
.camera-skip-btn {
    background: none;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    opacity: 0.6;
    padding: 0.65rem 1.4rem;
    border-radius: 25px;
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}
.camera-skip-btn:hover {
    border-color: var(--brushed-gold);
    opacity: 1;
}

/* Discovery Complete */
.discovery-complete-icon {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease;
}
.discovery-complete-icon svg {
    display: inline-block;
    animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}
@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.discovery-complete-loader {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1.5rem;
}
.discovery-complete-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brushed-gold);
    animation: loaderDot 1.4s ease-in-out infinite;
}
.discovery-complete-loader span:nth-child(2) { animation-delay: 0.2s; }
.discovery-complete-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* Mood Selector */
.mood-selector {
    text-align: center;
    padding: 2rem;
    max-width: 520px;
    animation: fadeIn 0.6s ease;
}
.mood-title {
    font-family: 'Outfit';
    color: var(--brushed-gold);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.mood-subtitle {
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}
.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.mood-chip {
    background: rgba(212, 175, 55, 0.06);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    padding: 0.75rem 1.3rem;
    border-radius: 40px;
    font-family: 'Outfit';
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mood-chip:hover { border-color: var(--brushed-gold); background: rgba(212, 175, 55, 0.1); }
.mood-chip.selected {
    background: var(--brushed-gold);
    color: var(--deep-emerald);
    border-color: var(--brushed-gold);
    font-weight: 800;
    box-shadow: 0 0 20px var(--gold-glow);
}
.mood-icon { font-size: 1.1rem; }
.mood-continue-btn {
    background: var(--bocas-turquoise);
    color: var(--deep-emerald);
    border: none;
    padding: 1rem 3rem;
    border-radius: 40px;
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mood-continue-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.mood-continue-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--turquoise-glow);
}

/* Category Filters */
.category-filters {
    text-align: center;
    padding: 2rem;
    max-width: 520px;
    animation: fadeIn 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.filter-title {
    font-family: 'Outfit';
    color: var(--brushed-gold);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.filter-subtitle {
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.filter-chip {
    background: none;
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    padding: 0.55rem 1.2rem;
    border-radius: 30px;
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-chip:hover { border-color: var(--brushed-gold); }
.filter-chip.active {
    background: var(--brushed-gold);
    color: var(--deep-emerald);
    border-color: var(--brushed-gold);
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 560px;
    animation: fadeIn 0.5s ease;
}
.card-counter {
    text-align: center;
    color: var(--brushed-gold);
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Individual Swipe Card */
.swipe-card {
    position: absolute;
    top: 30px; left: 0;
    width: 100%;
    height: 490px;
    background: var(--emerald-light);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: box-shadow 0.3s;
    will-change: transform;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    pointer-events: none;
}
.swipe-card-info {
    padding: 1rem 1.2rem;
}
.swipe-card-info h3 {
    font-family: 'Outfit';
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Reaction Buttons */
.swipe-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.reaction-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Outfit';
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.reaction-btn:hover {
    background: var(--brushed-gold);
    color: var(--deep-emerald);
    border-color: var(--brushed-gold);
}

/* Swipe Feedback Overlays */
.swipe-feedback {
    position: absolute;
    top: 20px;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.swipe-feedback.like {
    right: 20px;
    color: #4CAF50;
    border: 3px solid #4CAF50;
    transform: rotate(12deg);
}
.swipe-feedback.pass {
    left: 20px;
    color: var(--hibiscus-coral);
    border: 3px solid var(--hibiscus-coral);
    transform: rotate(-12deg);
}

/* Directional Glow */
.swipe-card.glow-right {
    box-shadow: 8px 0 40px rgba(76, 175, 80, 0.5), 0 0 60px rgba(76, 175, 80, 0.15);
}
.swipe-card.glow-left {
    box-shadow: -8px 0 40px rgba(255, 107, 107, 0.5), 0 0 60px rgba(255, 107, 107, 0.15);
}

/* Card Exit Animations */
.swipe-card.exit-right {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s;
    transform: translateX(150%) rotate(20deg) !important;
    opacity: 0;
}
.swipe-card.exit-left {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s;
    transform: translateX(-150%) rotate(-20deg) !important;
    opacity: 0;
}

/* Gesture Camera (Desktop) */
.gesture-video {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 160px;
    height: 120px;
    border-radius: 12px;
    border: 2px solid var(--brushed-gold);
    object-fit: cover;
    z-index: 2100;
    display: none;
    transform: scaleX(-1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.gesture-status {
    position: fixed;
    bottom: 148px;
    right: 20px;
    width: 160px;
    color: var(--brushed-gold);
    font-family: 'Outfit';
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    z-index: 2100;
    display: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gesture-prompt {
    text-align: center;
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease;
}
.gesture-prompt p {
    color: var(--text-main);
    font-family: 'Outfit';
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}
.gesture-prompt-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.gesture-allow-btn {
    background: rgba(0, 206, 209, 0.15);
    border: 1px solid var(--bocas-turquoise);
    color: var(--bocas-turquoise);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.gesture-allow-btn:hover {
    background: var(--bocas-turquoise);
    color: var(--deep-emerald);
}
.gesture-skip-btn {
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}
.gesture-skip-btn:hover { opacity: 1; }

/* Tap-to-Ask on Itinerary Images */
.day-card.tappable {
    position: relative;
    cursor: pointer;
}
.tap-ask-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(212, 175, 55, 0.85);
    color: var(--deep-emerald);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-family: 'Outfit';
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.day-card.tappable:hover .tap-ask-hint { opacity: 1; }

/* Main App Layout */
.app-wrapper { display: flex; min-height: 100vh; }
.main-content { margin-left: 320px; flex: 1; padding: 3rem; }
.itinerary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.mode-toggle {
    background: rgba(212, 175, 55, 0.1); border: 1px solid var(--brushed-gold);
    color: var(--brushed-gold); padding: 12px; border-radius: 30px;
    cursor: pointer; font-family: 'Outfit'; font-weight: 600;
}

/* Sidebar Profile & Status */
.concierge-profile { text-align: center; }
.concierge-bar { text-align: center; margin-bottom: 1.5rem; }
.status-text {
    font-size: 0.85rem; color: var(--text-main); line-height: 1.5;
    opacity: 0.8; margin-bottom: 0.5rem;
}
.speaking-indicator {
    position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--bocas-turquoise); border: 2px solid var(--deep-emerald);
    opacity: 0; transition: opacity 0.3s;
}
.concierge-avatar.is-speaking .speaking-indicator { opacity: 1; }

/* Navigation Links */
.nav-links { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.nav-item {
    display: block; padding: 0.7rem 1rem; border-radius: 6px;
    color: var(--text-main); text-decoration: none; font-size: 0.85rem;
    transition: all 0.2s; border: 1px solid transparent;
}
.nav-item:hover { background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.15); color: var(--brushed-gold); }

/* Sidebar Footer Links */
.sidebar-footer {
    margin-top: auto; padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}
.sidebar-footer-link {
    color: var(--brushed-gold); text-decoration: none;
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; opacity: 0.6;
    transition: opacity 0.3s; display: block;
    margin-bottom: 5px;
}
.sidebar-footer-link:hover { opacity: 1; }

/* Custom Cursor (desktop only) */
.custom-cursor { display: none; }

/* Modal */
.modal {
    display: none; position: fixed; inset: 0; z-index: 4000;
    background: rgba(0, 0, 0, 0.7); align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--emerald-light); border: 1px solid var(--brushed-gold);
    border-radius: 12px; padding: 2rem; max-width: 600px; width: 90%;
    max-height: 80vh; overflow-y: auto; position: relative;
}
.modal-content h2 { font-family: 'Outfit'; color: var(--brushed-gold); margin-bottom: 1rem; }
.close-modal {
    position: absolute; top: 1rem; right: 1.5rem;
    color: var(--brushed-gold); font-size: 1.5rem; cursor: pointer;
    background: none; border: none; line-height: 1;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    position: fixed; top: 1rem; left: 1rem; z-index: 201;
    background: var(--deep-emerald); border: 1px solid var(--brushed-gold);
    color: var(--brushed-gold); width: 44px; height: 44px; border-radius: 8px;
    cursor: pointer; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1;
    transition: background 0.3s;
}
.mobile-menu-btn:hover { background: var(--emerald-light); }

/* Mobile Overlay behind sidebar */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* Cinematic Player */
.cinematic-player {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(6, 31, 26, 0.97); display: none;
    align-items: center; justify-content: center;
}
.cinematic-player.active { display: flex; }
.close-cinematic {
    position: absolute; top: 2rem; right: 2rem;
    background: var(--brushed-gold); color: var(--deep-emerald);
    border: none; padding: 0.8rem 1.5rem; border-radius: 30px;
    font-family: 'Outfit'; font-weight: 800; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
}
.cinematic-content { text-align: center; max-width: 800px; padding: 2rem; }
.cinematic-title { font-family: 'Outfit'; color: var(--brushed-gold); font-size: 2.5rem; margin-bottom: 2rem; }

/* Day Marker Title */
.day-marker-title {
    font-family: 'Outfit'; color: var(--brushed-gold);
    text-transform: uppercase; letter-spacing: 4px; font-size: 2rem;
}

/* Live Transcript Bar */
.transcript-bar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}
.transcript-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    opacity: 0.9;
    font-style: italic;
    overflow: hidden;
    max-height: 4.5rem;
}

/* Empty State */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state h2 { font-family: 'Outfit'; color: var(--brushed-gold); margin-bottom: 1rem; font-size: 1.8rem; }
.empty-state p { color: var(--text-main); opacity: 0.7; }

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== MAP OVERLAY ===================== */

.map-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--deep-emerald);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.map-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    flex-shrink: 0;
}
.map-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--brushed-gold);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.map-close-btn {
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--brushed-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}
.map-close-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--brushed-gold);
}

.map-filter-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.map-filter-btn {
    background: none;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.map-filter-btn:hover {
    border-color: var(--brushed-gold);
    color: var(--brushed-gold);
}
.map-filter-btn.active {
    background: var(--brushed-gold);
    color: var(--deep-emerald);
    border-color: var(--brushed-gold);
}

.map-container {
    flex: 1;
    min-height: 0;
}

.map-legend {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    flex-shrink: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Map Marker Styles */
.map-custom-marker {
    background: none !important;
    border: none !important;
}
.map-marker-icon {
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.map-marker-icon:hover {
    transform: scale(1.15) translateY(-3px);
}

/* Map Popup Styles */
.map-custom-popup .leaflet-popup-content-wrapper {
    background: var(--emerald-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: 0;
    overflow: hidden;
}
.map-custom-popup .leaflet-popup-content {
    margin: 0;
    width: 290px !important;
}
.map-custom-popup .leaflet-popup-tip {
    background: var(--emerald-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: none;
    border-left: none;
}
.map-custom-popup .leaflet-popup-close-button {
    color: var(--brushed-gold) !important;
    font-size: 22px !important;
    width: 30px !important;
    height: 30px !important;
    top: 6px !important;
    right: 6px !important;
    background: rgba(6, 31, 26, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}
.map-popup-image-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.map-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.map-popup-category {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--deep-emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-popup-body {
    padding: 1rem;
}
.map-popup-title {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.map-popup-desc {
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.55;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}
.map-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.map-popup-tag {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--brushed-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.map-popup-captain {
    font-size: 0.75rem;
    color: var(--bocas-turquoise);
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.map-popup-captain-label {
    opacity: 0.6;
    color: var(--text-main);
}
.map-popup-ask-btn {
    width: 100%;
    background: rgba(0, 206, 209, 0.12);
    border: 1.5px solid var(--bocas-turquoise);
    color: var(--bocas-turquoise);
    padding: 0.55rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.map-popup-ask-btn:hover {
    background: var(--bocas-turquoise);
    color: var(--deep-emerald);
}

/* Nav item map highlight */
.nav-item-map {
    border: 1px solid rgba(0, 206, 209, 0.2) !important;
    background: rgba(0, 206, 209, 0.05);
    color: var(--bocas-turquoise) !important;
    transition: all 0.3s;
}
.nav-item-map:hover {
    background: rgba(0, 206, 209, 0.12) !important;
    border-color: var(--bocas-turquoise) !important;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        z-index: 200;
    }
    .sidebar.open { transform: translateX(0); }

    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
        padding-top: 4rem;
    }

    .intro-title { font-size: 2.8rem; letter-spacing: 4px; }
    .intro-subtitle { font-size: 1rem; letter-spacing: 8px; margin-bottom: 2.5rem; }
    .mic-button { width: 100px; height: 100px; font-size: 2.5rem; border-width: 3px; }

    .itinerary-grid { grid-template-columns: 1fr; gap: 1rem; }

    .day-card { padding: 1rem; margin-bottom: 1rem; }

    .card-stack { max-width: 95%; height: 510px; }
    .swipe-card { height: 440px; }
    .swipe-card img { height: 270px; }
    .mood-title { font-size: 1.7rem; }
    .mood-chip { font-size: 0.85rem; padding: 0.6rem 1rem; }
    .filter-title { font-size: 1.5rem; }
    .gesture-video, .gesture-status, .gesture-prompt, .camera-option-container { display: none !important; }
    .day-card.tappable .tap-ask-hint { opacity: 0.7; }

    .close-cinematic { top: 1rem; right: 1rem; padding: 0.6rem 1rem; font-size: 0.8rem; }
    .cinematic-title { font-size: 1.6rem; }
    .cinematic-content { padding: 1rem; }

    .concierge-avatar { width: 80px; height: 80px; margin-bottom: 1rem; }

    .logo { font-size: 1.4rem; margin-bottom: 1.2rem; }

    .empty-state { padding: 2rem 1rem; }
    .empty-state h2 { font-size: 1.3rem; }

    .day-marker-title { font-size: 1.4rem; letter-spacing: 2px; }

    #visualizerContainer canvas { width: 100% !important; }

    .modal-content { padding: 1.5rem; width: 95%; }

    .map-header { padding: 1rem 1rem; }
    .map-heading { font-size: 1.1rem; letter-spacing: 1px; }
    .map-filter-bar { padding: 0.6rem 1rem; gap: 0.4rem; }
    .map-filter-btn { padding: 0.35rem 0.75rem; font-size: 0.72rem; }
    .map-legend { padding: 0.6rem 1rem; gap: 0.75rem; }
    .map-legend-item { font-size: 0.65rem; }
    .map-custom-popup .leaflet-popup-content { width: 260px !important; }
    .map-popup-image-wrap { height: 130px; }
}

@media (max-width: 480px) {
    .intro-title { font-size: 2rem; letter-spacing: 2px; }
    .intro-subtitle { font-size: 0.85rem; letter-spacing: 5px; margin-bottom: 2rem; }
    .mic-button { width: 80px; height: 80px; font-size: 2rem; }

    .main-content { padding: 0.75rem; padding-top: 3.5rem; }
    .itinerary-grid { gap: 0.75rem; }
    .day-card { padding: 0.75rem; }

    .card-stack { height: 470px; }
    .swipe-card { height: 400px; }
    .swipe-card img { height: 230px; }
    .mood-options { gap: 0.5rem; }
    .mood-chip { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .day-marker-title { font-size: 1.2rem; letter-spacing: 1px; }
    .discovery-step-title { font-size: 1.6rem; }
    .discovery-step-desc { font-size: 0.85rem; }
    .swipe-instructions-visual { gap: 1rem; }
}
