/* Hide Scrollbar */
html, body {
    overflow-x: hidden;
    scrollbar-width: none;
    margin: 0; padding: 0; width: 100%; height: 100%;
}

body::-webkit-scrollbar {
    display: none;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 0px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-bottom: 2px solid #f4b80f;
}

.logo-left,
.logo-right {
    flex-shrink: 0; /* Prevents logos from shrinking */
}

.logo-left img
{
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: 55%;
    padding-top: 2%;
}

.logo-right img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: 75%;
    padding-top: 2%;
}

.navbar {
    flex-grow: 1; /* Allows navbar to take available space */
    display: flex;
    align-items: center;
    margin-left: 20px; /* Adds space between left logo and menu */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin-left: 10px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-menu li.active a {
    font-weight: 600; /* Normal weight for active item */
    color: #000000; /* Optional: distinguish active item with color */
}

.nav-menu li a i {
    margin-left: 5px;
    font-size: 14px;
}

.nav-menu li:hover > a {
    color: #000000;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px;
    transform: translateY(10px);
}

.nav-menu li.active .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 8px 0;
    transition: transform 0.2s ease;
}

.dropdown li a {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    border-radius: 5px;
    background: linear-gradient(to right, #fff, #f9f9f9);
    display: block;
    transition: all 0.3s ease;
}

.dropdown li a:hover {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: #fff;
    transform: translateX(5px);
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

#pano {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#base-pano {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translateZ(0);
    background-color: #f0f0f0; /* Background color in case image fails to load */
}

.overlay-pano {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translateZ(0);
    top: 0;
    left: 0;
    pointer-events: none;
    transition: opacity 0.5s ease; /* Added transition for smoother overlay changes */
    opacity: 1;
}

/* Error message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    text-align: center;
    max-width: 80%;
}

.error-message button {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.error-message button:hover {
    background-color: #3367d6;
}

/* Button container at the bottom - adjusted position */
.btn-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Color options panel - adjusted to connect directly with button container */
.color-options {
    position: fixed;
    bottom: 41px; /* Changed from 40px to 41px to account for the button container's height + padding */
    left: 0;
    width: 100%;
    z-index: 101;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    display: none; /* Hidden by default */
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; /* Ensure no margin at bottom */
    border-bottom: none; /* Remove any border that might create visual gap */
}


/* Button styles */
.btn {
    cursor: pointer;
    border: none;
    background-color: transparent;
    padding: 8px 12px; /* Adjusted padding for shorter buttons */
    transition: all 0.3s ease;
    position: relative; /* For the line indicator */
}

.btn-label {
    font-size: 13px;
    color: #808080;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
}

.btn.active .btn-label {
    color: #fff; /* Active button text color */
}

.btn:hover .btn-label {
    color: #fff;
}

/* White line indicator only for main menu buttons, not submenu */
.btn-container .btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Color button styles */
.color-btn {
    width: 105px;
    height: 75px;
    cursor: pointer;
    border: 0.2px solid #000;
    border-radius: 1%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative; /* For positioning indicators */
    background-size: cover;
    background-position: center;
}

.color-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modify the selected button style to be simpler */
.color-btn.selected {
    border: 0.2px solid #000;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Remove the green circle indicator */
.color-btn.selected::after {
    display: none;
}

/* Hide layer indicators */
.layer-indicator {
    display: none; /* Hide layer indicators completely */
}

/* Wrap label and button together */
.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Label styles */
.color-label {
    font-size: 12px;
    color: #fff;
    font-weight: 400;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    text-align: center;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .hamburger { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 10px 0; }
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px;
        border-radius: 0;
    }
    .logo img { max-height: 80px; }
    header { padding: 0px 30px; }
    .button-bar { padding: 4px 6px; bottom: 10px; }
    .button-item { padding: 6px 10px; }
    .button-item img { width: 36px; height: 36px; }

    .btn-container {
        height: 20px;
        padding: 5px 15px;
    }

    .color-options {
        bottom: 30px;
        padding: 15px;
    }

    .color-btn {
        width: 80px;
        height: 60px;
    }

    .btn {
        padding: 5px 10px;
    }

    .btn-container .btn.active::after {
        bottom: -5px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 10px 0; }
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px;
        border-radius: 0;
    }
    header { padding: 0px 20px; }
    .logo img { max-height: 50px; }

    .btn-container {
        height: 17.5px;
        padding: 5px 15px;
        gap: 8px;
    }

    .color-options {
        bottom: 27.5px;
        padding: 10px 15px;
        gap: 10px;
    }

    .color-btn {
        width: 70px;
        height: 50px;
    }

    .btn {
        padding: 5px 8px;
    }

    .btn-container .btn.active::after {
        bottom: -5px;
    }

    /* Adjust hotspot size for mobile */
    .hotspot-inner {
        width: 30px;
        height: 30px;
    }

    .hotspot {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    /* Header Styles */
    header {
        padding: 0px 20px;
    }

    .logo-left {
        flex-shrink: 1;
    }

    .logo-right {
        flex-shrink: 1;
    }

    .logo-left img {
        order: 1;
        width: 45%;
        padding-top: 2%;
    }

    .logo-right img {
        order: 2;
        width: 65%;
        padding-top: 2%;
        margin-left: 20px;
    }

    .navbar {
        flex-shrink: 1;
        display: contents;
        align-items: end;
        margin-left: 20px;
        order: 3;
    }

    .hamburger {
        order: 3;
        display: flex;
        font-size: 28px;
        cursor: pointer;
    }

    /* Button container at the bottom */
    .btn-container {
        width: 100%;
        height: 17.5px;
        padding: 5px 10px;
        gap: 10px;
    }

    /* Color options panel above the button container */
    .color-options {
        bottom: 27.5px;
        width: 100%;
        padding: 10px;
        gap: 12px;
    }

    /* Button styles */
    .btn {
        padding: 5px;
    }

    /* Color button styles */
    .color-btn {
        width: 65px;
        height: 45px;
    }

    .color-label {
        font-size: 10px;
    }

    .btn-container .btn.active::after {
        bottom: -5px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    /* Header Styles */
    header {
        padding: 0px 20px;
    }

    .logo-left img {
        order: 1;
        width: 45%;
        padding-top: 2%;
    }

    .logo-right img {
        order: 2;
        width: 16%;
        padding-top: 2%;
        margin-left: 380px;
    }

    .navbar {
        flex-shrink: 1;
        display: contents;
        align-items: end;
        margin-left: 20px;
        order: 3;
    }

    .hamburger {
        order: 3;
        display: flex;
        font-size: 28px;
        cursor: pointer;
    }

    /* Button container at the bottom */
    .btn-container {
        height: 17.5px;
        padding: 5px 10px;
        gap: 12px;
    }

    /* Color options panel above the button container */
    .color-options {
        bottom: 27.5px;
        padding: 10px;
        gap: 14px;
        max-height: 40vh; /* Limit height to prevent overflow */
        overflow-y: auto; /* Add scrolling if needed */
    }

    /* Button styles */
    .btn {
        padding: 5px 5px;
    }

    /* Color button styles */
    .color-btn {
        width: 65px;
        height: 45px;
    }

    .btn-container .btn.active::after {
        bottom: -5px;
    }
}


/* A-Frame VR Experience Additions */

/* Enhance VR button visibility */
#enter-vr-button {
    background-color: #7957d5;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#enter-vr-button:hover {
    background-color: #5a3eb5;
}

#enter-vr-button .btn-label {
    color: white;
}

/* Hide default A-Frame VR button */
.a-enter-vr {
    display: none !important;
}

/* Custom cursor styling */
.a-cursor {
    animation: none !important;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

.a-cursor.a-mouse-cursor-hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.9);
}

/* Hotspot styling optimized for VR */
.hotspot-inner {
    transition: background-color 0.3s ease;
}

.hotspot:hover .hotspot-inner {
    background-color: rgba(244, 184, 15, 0.8);
}

/* VR UI additions */
#vr-ui, #vr-color-options {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

#vr-ui:hover, #vr-color-options:hover {
    opacity: 1;
}

/* Enhance tooltip visibility in VR */
.a-text.tooltip {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 4px;
}

/* Make A-Frame canvas full size */
a-scene {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Ensure UI is on top of A-Frame scene */
#overlay-content {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Add loading indicator */
.a-loader-title {
    color: #f4b80f !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
}

/* Improvement for mobile VR mode */
@media (max-width: 768px) {
    #vr-ui, #vr-color-options {
        transform: scale(1.2);
    }

    .btn-container {
        gap: 5px;
    }

    #enter-vr-button {
        padding: 8px 12px;
        margin-left: auto;
    }
}