/* ==========================================================================
   360 VIRTUAL TOUR VIEWER STYLES - TURIYA / AERIAL LUXURY EDITION
   ========================================================================== */

#pano-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: #000;
}

/* Scene Canvas Overlay Transition */
#pano-transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#pano-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 1. TOP RIGHT "EXPLORE" BUTTON */
.top-right-explore-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 60;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 24px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.top-right-explore-btn:hover {
    background: var(--accent-blue);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* 2. RIGHT VERTICAL FLOATING TOOLBAR DOCK */
.right-vertical-toolbar {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.right-vertical-toolbar .toolbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.right-vertical-toolbar .toolbar-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* 3. LEFT FLOATING MAP BUTTON */
.left-map-btn-wrap {
    position: fixed;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 50;
}

.left-map-btn-wrap .map-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.left-map-btn-wrap .map-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* 4. BOTTOM CENTER LOCATION BAR & ACTIONS */
.bottom-center-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bottom-center-bar .location-title-badge {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 20px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.bottom-center-bar .action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 6px 16px;
}

.bottom-center-bar .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-center-bar .action-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* 5. TURIYA DIAMOND HOTSPOT MARKER WITH LABEL ABOVE */
.hotspot-element {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: z-index 0.1s ease;
}

.hotspot-element:hover {
    z-index: 50 !important;
}

.hotspot-label-box {
    background: rgba(180, 83, 9, 0.85); /* Amber / Gold Luxury Label */
    border: 1px solid rgba(254, 243, 199, 0.5);
    border-radius: 4px;
    padding: 3px 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

.hotspot-diamond-pin {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #b45309;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    transition: all 0.3s ease;
}

.hotspot-element:hover .hotspot-diamond-pin {
    transform: rotate(45deg) scale(1.3);
    background: #fbbf24;
    border-color: #ffffff;
    box-shadow: 0 0 25px #fbbf24;
}

.hotspot-element:hover .hotspot-label-box {
    background: #d97706;
    transform: translateY(-2px);
}

/* 6. RIGHT EXPANDABLE EXPLORE DRAWER */
/* Exact Explore Drawer matching Dayananda Sagar University Aerial Views Reference */
.right-explore-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 320px;
    height: 100vh;
    z-index: 99999;
    background: #003a6b;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.right-explore-drawer.open {
    right: 0;
}

/* White Top Brand Bar */
.explore-brand-bar {
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
}

.brand-logo-area {
    display: flex;
    align-items: center;
}

.brand-name-wrap .brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #004b87;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-name-wrap .brand-sub {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
}

.explore-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #004b87;
    cursor: pointer;
    line-height: 1;
}

/* Category Title Bar */
.explore-category-hdr {
    background: #0070c0;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Stacked Location Cards */
.explore-thumb-stack {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.explore-location-item {
    position: relative;
    width: 100%;
    height: 110px;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.explore-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.explore-location-item:hover .explore-item-img {
    transform: scale(1.08);
}

.explore-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 14px;
    transition: background 0.3s ease;
}

.explore-location-item.active .explore-item-overlay {
    background: linear-gradient(180deg, rgba(0, 112, 192, 0.45) 0%, rgba(0, 58, 107, 0.85) 100%);
    border-left: 5px solid #38bdf8;
}

.explore-radio-circle {
    font-size: 16px;
    color: #ffffff;
}

.explore-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Initial Splash Screen Overlay Style */
.splash-cover-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #000;
    overflow: hidden;
    perspective: 1200px; /* 3D perspective for airplane dive */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
    /* Focus the zoom target exactly on the entrance gate in the image */
    transform-origin: 50% 40%;
}

.splash-bg-image {
    position: absolute;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    object-fit: cover;
    animation: flatRotate 120s linear infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes flatRotate {
    0% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.1); }
}

.splash-cover-container.fade-out {
    /* Simple, elegant 1.2s crossfade to reveal the 360 scene */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease; 
}

/* Removed the zoom/dive transition entirely to keep it clean and simple */

.splash-cover-container.fade-out .splash-backdrop,
.splash-cover-container.fade-out .splash-content-box,
.splash-cover-container.fade-out .splash-footer-brand {
    /* Fade out the UI text immediately when Play is clicked */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.splash-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.60) 80%);
    pointer-events: none;
}

.splash-content-box {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 640px;
    padding: 30px;
}

.splash-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.splash-logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.splash-logo-icon .bar-left,
.splash-logo-icon .bar-right {
    display: inline-block;
    width: 24px;
    height: 64px;
    background: #ffffff;
    transform: skewX(-20deg);
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.splash-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.splash-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.splash-tour-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 42px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.splash-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    animation: pulsePlayBtn 2s infinite;
}

@keyframes pulsePlayBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.splash-play-btn:hover {
    transform: scale(1.18);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.9);
}

.splash-footer-brand {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.splash-footer-brand .powered-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

.splash-footer-brand .brand-logo-text {
    font-size: 14px;
    color: #ffffff;
}

.tour-ui-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-15px) !important;
    transition: all 0.6s ease !important;
}

.minimap-card {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 220px;
    height: 160px;
    z-index: 40;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimap-card.expanded {
    width: 480px;
    height: 360px;
}

.minimap-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111827;
}

.minimap-wrapper img.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.minimap-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px var(--accent-blue);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}

.minimap-pin:hover {
    transform: translate(-50%, -50%) scale(1.4);
}

.minimap-pin.active {
    background: #fbbf24;
    border-color: #ffffff;
    box-shadow: 0 0 15px #fbbf24;
}

.radar-beam {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-origin: center center;
    pointer-events: none;
    z-index: 4;
}

.radar-beam::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.6) 0deg, rgba(56, 189, 248, 0) 60deg);
    border-radius: 50%;
}

.glass-modal {
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    color: #fff;
}
