@import url('./vr-landing.css');

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html, body {
    width: 100%;
    font-family: var(--font-body);
    background: var(--bg-darker);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Note: this file is shared by the old full-screen VR SPA (index.backup.php,
   not live — it isn't linked from any live page) and the public multi-page
   site (template-parts/part-header.php, body class "landing-body"). A previous
   version locked `html, body` to height:100%/overflow:hidden for the SPA's
   internal panel scrolling, but nothing live still needs that, and it
   silently disabled page scrolling (and all content below the hero) on
   every public page. The dedicated VR tour viewer (vr-tour/index.html) has
   its own inline <style> with its own overflow:hidden and isn't affected. */
body.landing-body {
    min-height: 100vh;
    background: var(--color-white, #ffffff);
    color: var(--color-gray-800, #1f2937);
}

.vr-tour-body {
    background: var(--bg-darker);
}

/* ===== LOADER ===== */
#vr-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0c1222 100%);
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    visibility: visible;
}

#vr-loader.active {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.loader-subtext {
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== VR VIEWER ===== */
#vr-viewer {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg-darker);
    cursor: grab;
}

#vr-viewer:active {
    cursor: grabbing;
}

#vr-viewer canvas {
    display: block;
}

/* ===== FADE OVERLAY ===== */
#vr-fade {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: var(--bg-darker);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#vr-fade.fade-active {
    opacity: 1;
}

/* ===== VR UI CONTROLS ===== */
#vr-ui {
    position: fixed;
    z-index: 100;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#vr-ui.hidden {
    opacity: 0;
    pointer-events: none;
}

#vr-ui.controls-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#vr-ui.controls-hidden > * {
    pointer-events: none;
}

#vr-ui > * {
    pointer-events: auto;
}

.vr-controls-top {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
}

.vr-controls-top::-webkit-scrollbar {
    display: none;
}

.vr-scene-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.scene-description {
    display: none;
}

.vr-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.vr-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.vr-btn:active {
    transform: translateY(0);
}

.vr-btn.active {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.15);
}

.vr-btn-primary,
.vr-btn-vr,
.vr-btn-audio,
.vr-btn-music {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.vr-btn-primary:hover,
.vr-btn-vr:hover,
.vr-btn-audio:hover,
.vr-btn-music:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.35); }
    50% { box-shadow: 0 0 0 10px rgba(148, 163, 184, 0); }
}

.vr-btn-music.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

.vr-btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    z-index: 10;
}

#btn-overlays {
    display: none;
}

#overlays-panel {
    display: none;
}

/* ===== BOTTOM CONTROLS ===== */
.vr-controls-bottom {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
}

.vr-controls-bottom::-webkit-scrollbar {
    display: none;
}

.vr-controls-bottom .vr-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}
#vr-map-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: min(82vw, 900px);
    height: min(80vh, 780px);
    min-width: 360px;
    min-height: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    background: rgba(8, 15, 39, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.45);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    resize: both;
    overflow: auto;
    cursor: grab;
}

#vr-map-panel .map-resize-handle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    cursor: nwse-resize;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vr-map-panel .map-resize-handle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,0.75);
    border-bottom: 2px solid rgba(255,255,255,0.75);
    transform: rotate(45deg);
}

#vr-map-panel.dragging {
    cursor: grabbing;
}

#vr-map-panel.hidden {
    display: none !important;
}

#vr-map-panel .map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: grab;
}

#vr-map-panel .map-header:hover {
    opacity: 0.95;
}

#vr-map-panel .map-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
}

#vr-map-panel .map-body #google-map {
    flex: 1 1 auto;
    width: 100%;
    min-height: 420px;
    height: 100%;
    position: relative;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}
#vr-map-panel .map-body #google-map .leaflet-container,
#vr-map-panel .map-body #google-map .leaflet-pane {
    width: 100% !important;
    height: 100% !important;
}

#vr-map-panel .map-body #map-spots-list {
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.95);
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 230px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#vr-map-panel .map-body #map-spots-list #spots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

#vr-map-panel .map-fallback-message {
    min-height: 260px;
    width: 100%;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

#vr-map-panel .spot-item {
    font-size: 0.75rem;
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#vr-map-panel .spot-item:hover,
#vr-map-panel .spot-item.active {
    background: rgba(96, 165, 250, 0.15);
    transform: translateX(0px);
}

#vr-map-panel .map-subtitle {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.4;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#btn-close-map {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    z-index: 310;
}

@media (max-width: 900px) {
    #vr-map-panel {
        top: 60px;
        left: 12px;
        width: calc(100vw - 24px);
        height: calc(55vh);
    }
}

#map-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.map-hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    animation: mapPulse 2s ease-in-out infinite;
}

.map-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--secondary);
}

@keyframes mapPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

/* ===== GALLERY ===== */
#vr-gallery {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.95);
    padding: 40px;
    overflow-y: auto;
}

#vr-gallery.hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--glass-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== COMPASS ===== */
#vr-compass {
    position: fixed;
    bottom: 120px;
    right: 24px;
    width: 60px;
    height: 60px;
    z-index: 100;
    pointer-events: none;
}

#vr-compass.hidden {
    display: none;
}

.compass-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--glass-shadow);
}

.compass-needle {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, #ef4444 50%, var(--text-primary) 50%);
    border-radius: 1px;
    transform-origin: center center;
    transition: transform 0.1s linear;
}

.compass-label {
    position: absolute;
    top: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ef4444;
}

.gyro-indicator {
    position: fixed;
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 400;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.gyro-indicator.active {
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 20px rgba(59,130,246,0.4);
    animation: gyroPulse 2s ease-in-out infinite;
}

.gyro-indicator.hidden {
    display: none;
}

@keyframes gyroPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.3); }
    50% { box-shadow: 0 0 25px rgba(59,130,246,0.6); }
}

/* ===== CARDBOARD VR (split-screen fallback when WebXR isn't available) ===== */
.vr-cardboard-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    background: #000;
}

.cardboard-left,
.cardboard-right {
    flex: 1;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.12), #000 70%);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.cardboard-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 240px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vr-controls-top {
        top: 12px;
        gap: 6px;
        padding: 6px 12px;
    }
    
    .vr-controls-bottom {
        bottom: 16px;
        gap: 6px;
        padding: 8px 12px;
    }
    
    .vr-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .vr-scene-title {
        font-size: 0.8rem;
        max-width: 30vw;
    }
}

@media (max-width: 480px) {
    .vr-controls-top {
        gap: 4px;
        padding: 4px 8px;
    }
    
    .vr-controls-bottom {
        gap: 4px;
        padding: 6px 10px;
    }
    
    .vr-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .vr-scene-title {
        font-size: 0.75rem;
        max-width: 25vw;
    }
}

/* ===== SIDEBAR (Thumbnails) ===== */
.vr-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    z-index: 150;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px;
}

.vr-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.thumbnail-item {
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.7rem;
    color: white;
    text-align: center;
}

/* ===== POPUP OVERLAY ===== */
.vr-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 250;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.vr-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.popup-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.vr-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 249;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vr-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===== INFO PANEL ===== */
.vr-info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 250;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.vr-info-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.info-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.info-tag {
    padding: 4px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== SURVEY PAGE ===== */
.survey-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.survey-header {
    text-align: center;
    margin-bottom: 32px;
}

.survey-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ===== FOOTER ===== */
/* Note: .site-footer was originally a thin, fixed, click-through caption bar
   for the old full-screen VR SPA (index.backup.php, not live). The public
   site's real multi-column footer (template-parts/part-footer.php) reuses the
   class name but needs normal document flow — position:fixed + pointer-events:none
   made it overlap page content with completely unclickable links. */
.site-footer {
    position: static;
    z-index: auto;
    padding: 48px 24px 0;
    text-align: left;
    background: var(--color-gray-900, #111827);
    pointer-events: auto;
}

.site-footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Real public-site footer content (template-parts/part-footer.php). Selectors are
   scoped under .site-footer so they win over the conflicting bare
   .footer-inner/.footer-brand/.footer-links rules in survey.css and
   vr-theme.css's older declarations regardless of stylesheet load order. */
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    padding: 0 0 32px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    align-items: start;
    justify-content: initial;
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .footer-brand strong {
    font-size: 1rem;
    color: #fff;
}

.site-footer .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-gray-400, #9ca3af);
    margin: 0;
}

.site-footer .footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-footer .footer-wa-btn:hover {
    background: rgba(16, 185, 129, 0.28);
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-footer .footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 14px;
}

.site-footer .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-links a,
.site-footer .footer-links li {
    font-size: 0.83rem;
    color: var(--color-gray-400, #9ca3af);
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #6ee7b7;
}

.site-footer .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer .footer-bottom span {
    font-size: 0.78rem;
    color: var(--color-gray-500, #6b7280);
}

.site-footer .footer-social {
    display: flex;
    gap: 10px;
}

.site-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-footer .footer-social a:hover {
    background: rgba(16, 185, 129, 0.3);
}

@media (max-width: 860px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 40px 20px 0;
    }
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== HEADER ===== */
/* Note: .site-header is only used by template-parts/part-header.php (the live IVT-style
   multi-page site). It intentionally uses a light background here, not the dark
   navy translucent one the old SPA (index.backup.php) used with this class name -
   .header-nav/.header-title text is dark-on-light (see vr-landing.css ~1377-1389). */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
    padding: 8px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* Scoped under .site-header (not a bare .header-inner rule) so this wins
   over survey.css's conflicting narrower .header-inner (max-width:960px,
   height:100%, flex-row-for-a-thin-bar) regardless of stylesheet load order -
   see the .site-footer .footer-inner note above for the same pattern. */
.site-header .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.site-header .header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-nav a.active {
    color: var(--color-primary, #10b981);
    background: rgba(16, 185, 129, 0.08);
    font-weight: 700;
}

/* Hamburger button (mobile-toggle) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: rgba(16, 185, 129, 0.08);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-gray-800, #1f2937);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        background: #fff;
        border: 1px solid var(--color-gray-200, #e5e7eb);
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav a {
        padding: 12px 14px;
        border-radius: 10px;
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-list a {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

 @media (max-width: 768px) {
     .main-nav {
         display: none;
     }
     
     .mobile-menu-toggle {
         display: flex;
     }
     
     .site-header {
         padding: 10px 16px;
     }
     
     .logo-text {
         font-size: 0.9rem;
     }
 }

 /* ===== NEW PANELS ===== */
 .hidden { display: none !important; }

 #event-log-panel.hidden, #service-panel.hidden, #elevation-panel.hidden, #overlays-panel.hidden { display: none !important; }

 .panel-backdrop {
     position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 600;
 }

 .panel-content {
     position: fixed; z-index: 601; background: rgba(2,6,23,0.98);
     backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08);
     border-radius: var(--radius-lg); overflow: hidden;
     top: 50%; left: 50%; transform: translate(-50%, -50%);
     width: 90%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column;
 }

 .panel-wide { max-width: 800px; }

 .panel-header {
     display: flex; justify-content: space-between; align-items: center;
     padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
 }

 .panel-header h3 { font-size: 0.9rem; margin: 0; }

 .panel-body { padding: 16px; overflow-y: auto; }

 /* Event Log */
 .event-stats {
     display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
 }

 .stat-card {
     background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
     border-radius: var(--radius-sm); padding: 8px; text-align: center;
 }

 .stat-label { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
 .stat-value { font-size: 0.85rem; font-weight: 600; color: #e2e8f0; margin-top: 4px; }

 .event-stream { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

 .event-item {
     display: grid; grid-template-columns: 70px 80px 1fr; gap: 8px; padding: 6px 8px;
     background: rgba(255,255,255,0.02); border-radius: 6px; font-size: 0.7rem;
 }

 .event-time { color: #64748b; }
 .event-type { font-weight: 600; text-transform: uppercase; font-size: 0.6rem; }
 .event-type.system { color: #60a5fa; }
 .event-type.interaction { color: #34d399; }
 .event-type.camera { color: #fbbf24; }

 /* Service Panel */
 .search-input {
     width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
     background: rgba(0,0,0,0.3); color: #f8fafc; font-family: inherit; font-size: 0.85rem;
     margin-bottom: 12px;
 }

 .pano-grid {
     display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
     max-height: 60vh; overflow-y: auto;
 }

 .pano-card {
     border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
     cursor: pointer; transition: var(--transition); background: rgba(255,255,255,0.02);
 }

 .pano-card:hover, .pano-card.active {
     border-color: rgba(59,130,246,0.5); box-shadow: 0 0 20px rgba(59,130,246,0.15);
 }

 .pano-card img { width: 100%; height: 100px; object-fit: cover; display: block; }

 .pano-card-body { padding: 8px; }
 .pano-label { font-size: 0.7rem; color: #94a3b8; }
 .pano-title { font-size: 0.8rem; font-weight: 600; color: #e2e8f0; margin-top: 2px;
     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

 /* Overlays Panel */
 .overlay-list { display: flex; flex-direction: column; gap: 8px; }

 .overlay-item {
     display: flex; align-items: center; gap: 10px; padding: 10px;
     background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
     border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
 }

 .overlay-item:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.05); }

 .overlay-type { font-size: 1.2rem; }
 .overlay-title { font-size: 0.8rem; font-weight: 600; color: #e2e8f0; }
 .overlay-detail { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; }

 /* Elevation */
 #elevation-chart { width: 100%; }

 /* Buttons */
  .btn-sm { padding: 4px 10px; font-size: 0.7rem; border-radius: 6px; }

  /* Mini Map */
  #mini-map-container {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 320px;
    height: 260px;
    z-index: 150;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  #mini-map-container.visible {
    opacity: 1;
    pointer-events: auto;
  }

  #mini-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: grab;
    user-select: none;
  }

  #mini-map-header:active {
    cursor: grabbing;
  }

  #mini-map-header .mini-map-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
  }

  #mini-map-header .mini-map-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .mini-map-icon-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
  }

  .mini-map-icon-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
  }

  #mini-map-body {
    flex: 1;
    position: relative;
    min-height: 0;
  }

  #mini-map {
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  #mini-map .leaflet-container {
    background: #1e293b;
  }

  #mini-map-settings {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(12px);
  }

  #mini-map-settings.visible {
    display: flex;
  }

  .mini-map-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: #e2e8f0;
  }

  .mini-map-setting-row input[type="range"] {
    width: 100px;
    accent-color: #3b82f6;
  }

  @media (max-width: 480px) {
    #mini-map-container {
      width: 260px;
      height: 220px;
      left: 10px;
      bottom: 10px;
    }
  }

  /* ===== STREET VIEW-STYLE WALK HUD ===== */
#walk-hud {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f8fafc;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  max-width: calc(100vw - 32px);
}
#walk-hud.visible {
  opacity: 1;
  pointer-events: auto;
}
#walk-hud .walk-hud-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}
#walk-hud .walk-hud-target {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a7f3d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
#walk-hud .walk-hud-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
  white-space: nowrap;
}
#walk-hud .walk-hud-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
}
#walk-hud .walk-hud-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Ground click hint overlay */
#ground-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 155;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e2e8f0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
#ground-hint.visible {
  opacity: 1;
}
  #photo-date-badge {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 150;
    padding: 8px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #photo-date-badge.visible {
    opacity: 1;
    pointer-events: auto;
  }

  #photo-date-badge .date-label {
    color: var(--text-primary);
    font-weight: 600;
  }

  /* Landing styles moved to vr-landing.css */


  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  .gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
  }

  .gallery-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .gallery-item-meta {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  /* Video 360 */
  .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .video-card {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
    background: #000;
  }

  .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }

  .video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: all 0.3s;
  }

  .video-card:hover img {
    opacity: 1;
    transform: scale(1.05);
  }

  .video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(239,68,68,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.2s;
  }

  .video-card:hover .video-card-play {
    background: #ef4444;
    transform: translate(-50%, -50%) scale(1.1);
  }

  /* About */
  .landing-about {
    background: #f9fafb;
    border-radius: 24px;
    padding: 48px;
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .landing-about-text {
    flex: 1;
  }

  .landing-about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
  }

  .landing-about-text p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .landing-about-image {
    flex: 0 0 300px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
  }

  .landing-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .landing-about {
      flex-direction: column;
      padding: 32px 24px;
    }
    .landing-about-image {
      flex: 0 0 auto;
      width: 100%;
    }
    .landing-hero-title {
      font-size: 2rem;
    }
    .landing-section {
      padding: 48px 16px;
    }
  }

  /* Landing Footer */
  .landing-footer {
    display: none;
    background: #1f2937;
    color: #f9fafb;
    padding: 64px 24px 32px;
  }

  .landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .landing-footer-brand strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
  }

  .landing-footer-brand p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .landing-footer h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #d1d5db;
  }

  .landing-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .landing-footer ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }

  .landing-footer ul li a:hover {
    color: #f9fafb;
  }

  .landing-footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .landing-footer-copyright {
    font-size: 0.85rem;
    color: #9ca3af;
  }

  .landing-footer-social {
    display: flex;
    gap: 12px;
  }

  .landing-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    text-decoration: none;
    transition: all 0.2s;
  }

  .landing-footer-social a:hover {
    background: rgba(255,255,255,0.2);
  }

  @media (max-width: 768px) {
    .landing-footer-inner {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 480px) {
    .landing-footer-inner {
      grid-template-columns: 1fr;
    }
  }
}

/* ===== PLACE INFO PANEL ===== */
#place-info-panel {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#place-info-panel.hidden {
    display: none !important;
}

.place-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.place-info-content {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
    animation: placeInfoIn 0.3s ease;
}

@keyframes placeInfoIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.place-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.place-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.place-info-title-area {
    flex: 1;
    min-width: 0;
}

.place-info-title-area h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    line-height: 1.3;
}

.place-info-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 4px 0 0;
}

.place-info-body {
    padding: 20px;
}

.place-info-section {
    margin-bottom: 20px;
}

.place-info-section:last-child {
    margin-bottom: 0;
}

.place-info-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-info-section p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.place-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.place-info-meta-item {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hide panels that are no longer needed in VR mode */
body.vr-active #vr-map-panel,
body.vr-active #vr-gallery,
body.vr-active #event-log-panel,
body.vr-active #service-panel,
body.vr-active #elevation-panel,
body.vr-active #overlays-panel,
body.vr-active #mini-map-container {
    display: none !important;
}