/* ===== CSS RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --acorn-orange: #F5841F;
    --acorn-orange-hover: #e0750f;
    --acorn-navy: #1B3A5C;
    --acorn-navy-light: #244a72;
    --acorn-navy-dark: #122840;
    --sidebar-width: 300px;
    --transition-speed: 0.4s;
    --card-radius: 16px;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
}

/* ===== SPLASH SCREEN ===== */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    background: var(--acorn-navy-dark);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#splashScreen.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

/* Subtle animated background */
.splash-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /*background: radial-gradient(circle at 30% 40%, rgba(245, 132, 31, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(245, 132, 31, 0.05) 0%, transparent 50%);*/
    animation: bgFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, -20px) rotate(2deg);
    }
}

.splash-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease forwards;
}

.splash-logo img {
    max-width: 320px;
    width: 80vw;
}

.splash-tagline {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0E3E67;
    margin-bottom: 0px;
    animation: fadeInDown 0.8s 0.2s ease both;
}

.splash-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.splash-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.splash-card:hover img {
    transform: scale(1.05);
}

.splash-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease;
}

.splash-card:hover .splash-card-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.splash-card-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.splash-card:hover .splash-card-content {
    transform: translateY(0);
}

.splash-card-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.splash-card-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.splash-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--acorn-orange);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.splash-card:hover .splash-card-btn {
    opacity: 1;
}

.splash-card-btn:hover {
    background: var(--acorn-orange-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.splash-footer {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    animation: fadeInUp 0.8s 0.6s ease both;
}

.splash-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.splash-footer a:hover {
    color: var(--acorn-orange);
}

/* ===== TOUR VIEW ===== */
#tourView {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#tourView.visible {
    opacity: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform var(--transition-speed) ease;
    overflow: hidden;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar-header img {
    max-width: 220px;
    width: 100%;
}

.sidebar-location {
    padding: 12px 20px;
    background: rgba(245, 132, 31, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar-location-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--acorn-orange);
    margin-bottom: 2px;
}

.sidebar-location-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--acorn-navy-dark);
}

/* Back button */
.sidebar-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fafafa;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--acorn-navy);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    flex-shrink: 0;
}

.sidebar-back:hover {
    background: rgba(245, 132, 31, 0.05);
    color: var(--acorn-orange);
}

.sidebar-back i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-back:hover i {
    transform: translateX(-4px);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: none;
    /* Hidden by default until location selected */
    flex-direction: column;
}

.sidebar-nav.active-menu {
    display: flex;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: var(--acorn-navy-dark);
    background: rgba(0, 0, 0, 0.03);
    border-left-color: var(--acorn-orange);
}

.nav-item.active {
    font-weight: 700;
    background: rgba(245, 132, 31, 0.1);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #0E3E67;
    text-align: center;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    background: #74D0CB;
    color: var(--acorn-navy);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--acorn-orange);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(245, 132, 31, 0.3);
}

.sidebar-credit {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar-credit a {
    color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-credit a:hover {
    color: var(--acorn-orange);
}

/* ===== MAIN CONTENT / IFRAME AREA ===== */
.main-content {
    flex: 1;
    height: 100%;
    position: relative;
    background: #111;
}

.iframe-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    color: rgba(255, 255, 255, 0.3);
}

.iframe-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    color: rgba(245, 132, 31, 0.3);
}

.iframe-placeholder p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.iframe-placeholder .placeholder-sub {
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.15);
}

/* ===== MOBILE HAMBURGER ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--acorn-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-menu-btn:hover {
    background: var(--acorn-orange);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-overlay.visible {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    #splashScreen {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 1fr 1fr;
        height: 100vh;
        min-height: 100%;
        position: fixed;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .splash-logo-container {
        padding: 50px 20px;
        min-height: 200px;
        order: 1;
    }

    .splash-logo img {
        max-width: 240px;
    }

    .splash-card {
        height: 40vh;
        min-height: 300px;
        order: 2;
    }

    .splash-card-content {
        transform: translateY(0);
    }

    .splash-card .splash-card-btn {
        opacity: 1;
    }

    .splash-tagline {
        font-size: 13px;
        margin-bottom: 0px;
    }

    /* Sidebar mobile */
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-overlay {
        display: block;
    }

    .main-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .splash-card {
        height: 180px;
    }

    .splash-card-title {
        font-size: 18px;
    }

    .sidebar {
        width: 85vw;
        min-width: unset;
    }
}

/* ===== CUSTOM CONTEXT MENU ===== */
.custom-context-menu {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.custom-context-menu a {
    color: var(--acorn-navy-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.custom-context-menu a:hover {
    color: var(--acorn-orange);
}