/* ========================================
   AVATOUR - Global Styles
   ======================================== */

:root {
    /* Brand Colors */
    --primary-blue: #1e40af;
    --primary-orange: #f59e0b;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;

    /* UI Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #ffffff;

    /* Accents */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 200;
    --z-sticky: 50;
    --z-modal: 100;
    --z-splash: 200;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    line-height: 1.5;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

input {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

/* ========================================
   Splash Screen
   ======================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-splash);
    animation: fadeOut 0.5s ease 2s forwards;
}

.splash-content {
    text-align: center;
    color: var(--text-light);
}

.logo-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-lg);
    background: white;
    border-radius: 1.5rem;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: logoEntrance 1s ease forwards;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-circle {
    fill: none;
    stroke: var(--primary-orange);
    stroke-width: 3;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawCircle 1.5s ease forwards;
}

.logo-arrow {
    opacity: 0;
    animation: fadeIn 0.5s ease 1s forwards;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.splash-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   Tutorial Overlay
   ======================================== */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-lg);
}

.tutorial-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    text-align: center;
}

.tutorial-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tutorial-content h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.tutorial-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.tutorial-lang-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.tutorial-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tutorial-lang-btn .fi {
    width: 22px !important;
    height: 16px !important;
}

.tutorial-lang-btn.active {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #eff6ff;
}

.tutorial-tips {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.tip {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Orientation Warning
   ======================================== */

.orientation-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-lg);
}

.orientation-content {
    text-align: center;
    color: var(--text-light);
}

.phone-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
    animation: rotate 2s ease infinite;
}

.orientation-content p {
    font-size: 1.25rem;
    font-weight: 500;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

/* ========================================
   App Container
   ======================================== */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: -webkit-fill-available;
    background: var(--bg-dark);
    overflow: hidden;
}

/* ========================================
   Video Wrapper (Fullscreen Layout)
   ======================================== */

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

/* ========================================
   Instagram-style Side Controls
   ======================================== */

.side-controls {
    position: absolute;
    right: 12px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.side-control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.side-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: var(--text-light);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.side-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.side-btn:active {
    transform: scale(0.95);
}

.side-btn svg {
    width: 24px;
    height: 24px;
}

.side-btn .flag-icon {
    font-size: 1.5rem;
}

.side-label {
    display: none !important;
}

/* Language flag icons (flag-icons library) */
.lang-flag-badge, span.fi {
    width: 24px !important;
    height: 18px !important;
    border-radius: 3px;
    background-size: cover !important;
    flex-shrink: 0;
}

/* Locate button on map */
.locate-btn {
    background: transparent;
    border-radius: 4px;
    color: white;
    padding: 6px;
}
.locate-btn:hover { background: rgba(255,255,255,0.2); }
.locate-btn svg { width: 20px; height: 20px; }

/* Language dropdown for side controls */
.side-control-item .lang-dropdown {
    position: absolute;
    right: 60px;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--radius-md);
    min-width: 140px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.side-control-item .lang-option {
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ========================================
   Play/Pause Overlay
   ======================================== */

.play-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: var(--text-light);
    opacity: 0;
    transition: opacity var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.play-pause-btn svg {
    width: 40px;
    height: 40px;
}

/* Show play button only when video is paused */
.video-container.video-paused .play-pause-btn {
    opacity: 1;
}

/* Hide when playing */
.video-container:not(.video-paused) .play-pause-btn {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   POI Description Overlay
   ======================================== */

.poi-description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 16px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: var(--text-light);
    z-index: 15;
}

.poi-title-overlay {
    font-size: 0.975rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.poi-description-overlay p {
    display: none;
}

/* ========================================
   Header (Hidden in new layout)
   ======================================== */

.app-header {
    display: none;
}

.poi-title {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Language Selector
   ======================================== */

.language-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: background var(--transition-fast);
    border: 2px solid transparent;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-button.active {
    border-color: var(--primary-orange);
}

.flag-icon {
    font-size: 1.25rem;
}

.lang-code {
    font-size: 0.875rem;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.lang-button:hover .chevron {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    background: #1e2d42;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    overflow: hidden;
    z-index: var(--z-dropdown);
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-light);
    text-align: left;
    background: #1e2d42;
    transition: background var(--transition-fast);
}

.lang-option:hover {
    background: #2a3d54;
}

.lang-option.active {
    background: var(--primary-orange);
    color: var(--text-light);
}

/* ========================================
   Video Container
   ======================================== */

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 25;
}

.video-loading .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.video-loading p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   Video Controls (Progress bar only)
   ======================================== */

.video-controls {
    position: absolute;
    bottom: 100px;
    left: 16px;
    right: 70px;
    z-index: 18;
    opacity: 1;
}

/* Vimeo iframe deve stare sotto i controlli */
#vimeo-iframe {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-container {
    margin-bottom: 0;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-orange);
    width: 0%;
    z-index: 1;
}

.progress-bar:hover {
    height: 5px;
}

.time-display {
    display: none;
}

.controls-row {
    display: none;
}

.control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.volume-control {
    display: none;
}

.volume-slider {
    display: none;
}

/* ========================================
   POI Description (Legacy - hidden)
   ======================================== */

.poi-description {
    display: none;
}

/* ========================================
   Bottom Navigation (Hidden in new layout)
   ======================================== */

.bottom-nav {
    display: none;
}

.poi-navigation {
    display: none;
}

.nav-btn {
    display: none;
}

.btn-map {
    display: none;
}

.social-share {
    display: none;
}

.share-btn {
    display: none;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-orange);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: var(--warning);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Modal
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-lg);
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 1;
    transition: background var(--transition-fast);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--bg-secondary);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.modal-body {
    padding: var(--spacing-xl);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.share-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.share-option svg {
    width: 32px;
    height: 32px;
}

.share-option span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   Map Page
   ======================================== */

.map-page {
    overflow: hidden;
}

/* View toggle tabs */
.view-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    background: none;
    cursor: pointer;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: #f0f4ff;
}

/* Map view: show map, hide list */
.map-page.view-map .map-container {
    height: calc(100vh - 60px - 44px);
}
.map-page.view-map .poi-list-panel {
    display: none;
}

/* List view: hide map, show list */
.map-page.view-list .map-container {
    display: none;
}
.map-page.view-list .poi-list-panel {
    height: calc(100vh - 60px - 44px);
    overflow-y: auto;
}
.map-page.view-list .poi-list {
    max-height: none;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--primary-blue);
    color: var(--text-light);
    position: relative;
    z-index: var(--z-sticky);
    box-shadow: 0 2px 8px var(--shadow);
    overflow: visible;
}

/* Language toggle button in header */
.lang-current-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.15);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.lang-current-btn:hover {
    background: rgba(255,255,255,0.25);
}
.lang-current-btn .fi {
    font-size: 1.2rem;
}

/* Language panel: fixed, direct body child */
.lang-panel {
    position: fixed;
    background: #1e2d42;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
}

.lang-panel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
    background: #1e2d42;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lang-panel-btn:last-child {
    border-bottom: none;
}
.lang-panel-btn:hover {
    background: #2a3d54;
}
.lang-panel-btn.active {
    background: var(--primary-orange);
}
.lang-panel-btn .fi {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.map-icon {
    width: 24px;
    height: 24px;
}

.client-logo-header {
    height: 42px;
    max-width: 117px;
    object-fit: contain;
    margin-right: 8px;
}

.map-container {
    height: calc(100vh - 60px - 200px);
    position: relative;
    z-index: var(--z-base);
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 10;
}

.map-loading .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Leaflet Customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow);
}

.leaflet-popup-content {
    margin: var(--spacing-md);
}

/* ========================================
   POI List Panel
   ======================================== */

.poi-list-panel {
    background: var(--bg-primary);
    box-shadow: 0 -2px 8px var(--shadow);
    position: relative;
    z-index: var(--z-sticky);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--bg-secondary);
}

.panel-header h2 {
    font-size: 1.125rem;
    color: var(--primary-blue);
}

.toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    background: var(--bg-secondary);
}

.toggle-btn svg {
    width: 20px;
    height: 20px;
}

.poi-list {
    max-height: 200px;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.poi-list.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.poi-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.poi-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
}

.poi-card-image {
    width: 60px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.poi-card-content {
    flex: 1;
}

.poi-card-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.poi-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   POI Modal
   ======================================== */

.modal-poi {
    max-width: 600px;
}

.poi-modal-header {
    padding: 0;
    border: none;
}

.poi-thumbnail {
    width: 100%;
    max-height: 300px;
    min-height: 200px;
    object-fit: contain;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.poi-info {
    padding: var(--spacing-xl);
}

.poi-info h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.poi-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.poi-modal-body {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.poi-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.poi-detail-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.poi-detail-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.poi-modal-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--bg-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }

    .side-controls {
        right: 8px;
        gap: 16px;
    }

    .side-btn {
        width: 44px;
        height: 44px;
    }

    .side-btn svg {
        width: 22px;
        height: 22px;
    }

    .poi-description-overlay {
        padding: 50px 12px 20px;
        padding-right: 65px;
    }

    .poi-title-overlay {
        font-size: 1rem;
    }

    .poi-description-overlay p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .video-controls {
        bottom: 85px;
        right: 60px;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .app-container {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 450px;
        margin: 0 auto;
        box-shadow: 0 0 20px var(--shadow);
    }

    .map-container {
        height: calc(100vh - 60px - 300px);
    }
}

/* Landscape mode - wider controls area */
@media (orientation: landscape) {
    .side-controls {
        right: 16px;
        bottom: 80px;
        gap: 10px;
    }

    .side-btn {
        width: 40px;
        height: 40px;
    }

    .poi-description-overlay {
        padding: 40px 80px 16px 16px;
    }

    .video-controls {
        bottom: 70px;
        right: 80px;
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ========================================
   Fullscreen Styles (App is already fullscreen)
   ======================================== */

/* Standard Fullscreen */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.video-container:fullscreen .avatar-video,
.video-container:-webkit-full-screen .avatar-video,
.video-container:-moz-full-screen .avatar-video,
.video-container:-ms-fullscreen .avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Rotation Hint
   ======================================== */

.rotation-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: var(--z-modal);
    animation: slideInUp 0.3s ease, fadeOutHint 0.5s ease 3.5s forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rotation-hint.hidden {
    display: none !important;
}

.rotation-hint-icon {
    font-size: 1.5rem;
    animation: rotatePhone 2s ease-in-out infinite;
}

.rotation-hint-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

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

@keyframes fadeOutHint {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(90deg);
    }
}

/* Hide rotation hint in landscape */
@media (orientation: landscape) {
    .rotation-hint {
        display: none !important;
    }
}
