body, html { 
    margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; 
    font-family: 'Segoe UI', 'Arial Condensed', sans-serif; 
    background: #000;
}

header { 
    padding: 40px; 
    text-align: center; 
    border-bottom: 1px solid #222; 
}

.logo img { 
    max-height: 80px; 
    width: auto; 
}

.header-title { 
    margin-top: 15px; 
    font-size: 1.1rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    color: #888; 
}

.tour-section { 
    width: 100vw; 
    box-sizing: border-box; 
    padding: 0 20px; 
    margin: 20px 0; 
}

.tour-frame { 
    position: relative;
    width: 100%; 
    padding-bottom: 56.25%; /* Default 16:9 Desktop Ratio */
    height: 0;
    border: 1px solid #333; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #000;
}

.tour-frame iframe { 
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
}

@media (max-width: 900px) {
    .tour-frame {
        padding-bottom: 50% !important; /* 18:9 Mobile Ratio */
    }
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 8px; 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.gallery-box { 
    aspect-ratio: 16/9; 
    background: #111; 
    border: 1px solid #333; 
    overflow: hidden; 
}

.gallery-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-box:hover img { 
    transform: scale(1.05); 
    opacity: 0.8; 
}

/* Force hide the A-Frame VR button */
.a-enter-vr { display: none !important; }

a-scene { 
    width: 100%; 
    height: 100%; 
    cursor: all-scroll;
    touch-action: none !important;
}

a-scene:active { cursor: grabbing; }

/* Initial Full loading Screen Overlay */
#initial-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #050505;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#initial-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.progress-bar-container {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #00ff00;
    transition: width 0.2s ease;
}

.progress-text {
    color: #888888;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: monospace;
}

/* Fullscreen fade transition overlay for room switches */
#fade-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); opacity: 0; pointer-events: none; z-index: 9999;
    transition: opacity 0.3s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}

#fade-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Neon Green Branding Loading Spinner */
.spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1); border-left-color: #00ff00;
    border-radius: 50%; animation: spin 1s linear infinite; opacity: 0; transition: opacity 0.3s ease;
}
#fade-overlay.loading .spinner { opacity: 1; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* UI Layer Wrapper */
.ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
.ui-layer > * { pointer-events: auto; }

#brand-container { position: absolute; top: 20px; left: 20px; display: flex; flex-direction: row; align-items: flex-start; gap: 12px; pointer-events: none; }
#brand-container img { width: 45px; height: 40px; object-fit: contain; }

#brand-header { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

#brand-header b { 
    color: #ffffff; 
    font-weight: 800; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    line-height: 1;
}

#brand-header span { 
    color: white; 
    opacity: 0.9; 
    font-size: 1.3rem; 
    font-weight: 700;
    letter-spacing: 1px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    transition: opacity 0.2s ease; 
    line-height: 1.1;
}

.copyright { position: absolute; bottom: 20px; right: 20px; font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); pointer-events: none; }

:root {
    --btn-size: 70px; --floor-btn-size: 85px; --action-padding: 12px 24px; --action-font: 0.85rem; --layer-gap: 15px; --track-padding: 12px; --hamburger-size: 50px;
}

#floor-ui-layer-mobile { display: none; }

@media (max-width: 900px) {
    :root {
        --btn-size: 50px; --floor-btn-size: 60px;
        --action-padding: 8px 16px; --action-font: 0.7rem; --layer-gap: 8px; --track-padding: 6px; --hamburger-size: 38px;
    }
    .copyright { display: none !important; }
    
    #brand-container { top: 12px !important; left: 12px !important; display: flex !important; gap: 8px !important; }
    #brand-container img { width: 30px !important; height: 26px !important; }
    #brand-header b { font-size: 0.65rem !important; letter-spacing: 1px !important; }
    #brand-header span { font-size: 0.9rem !important; letter-spacing: 0.5px !important; }

    #btn-fullscreen { display: none !important; }

    #nav-bar { display: none !important; }
    #floor-ui-layer { display: none !important; }

    #floor-ui-layer-mobile { 
        display: flex !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: column !important;
        background: rgba(242, 245, 245, 0.95); 
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-bottom: none;
        border-radius: 0; 
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
        padding: 0;
        overflow: hidden;
        width: 250px; 
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }
    #floor-ui-layer-mobile.visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .design-card-content {
        padding: 12px 16px 8px 16px !important;
        gap: 8px !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .floor-button-group {
        justify-content: center !important;
        margin-top: 2px !important;
    }

    .street-label {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
        border-radius: 0 !important; 
    }
    
    #menu-drawer { 
        top: calc(12px + var(--hamburger-size) + 6px) !important; 
        right: 15px !important; 
        gap: 5px !important;
        max-height: 65vh !important; 
        overflow-y: auto !important;
        padding: 8px !important;
        border-radius: 0 !important; 
    }
    #menu-drawer::-webkit-scrollbar { width: 3px; }
    #menu-drawer::-webkit-scrollbar-thumb { background: #00ff00; border-radius: 2px; }

    #menu-trigger { top: 12px !important; right: 15px !important; border-radius: 0 !important; }
}

.nav-track {
    background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0; padding: var(--track-padding);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

#floor-ui-layer { 
    position: absolute; 
    top: 50%;
    right: -2px; 
    left: auto !important;
    transform: translateY(-50%) translateX(20px); 
    display: flex; 
    flex-direction: column !important; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    background: rgba(242, 245, 245, 0.93); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-right: none; 
    border-radius: 0; 
    box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
    width: 240px; 
}
#floor-ui-layer.visible { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }

.design-card-content {
    padding: 24px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.design-category-label {
    font-family: 'Segoe UI', 'Arial Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #685b52; 
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.design-option-subhead {
    font-size: 0.95rem;
    color: #8c8882;
    margin-top: 3px;
    font-weight: 400;
    text-transform: capitalize;
}

.floor-button-group {
    display: flex;
    flex-direction: row; 
    gap: 10px;
    justify-content: flex-start;
    margin-top: 5px;
}

#nav-bar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--layer-gap); max-width: 90vw; justify-content: center; align-items: center; transition: opacity 0.3s, transform 0.3s; z-index: 101; opacity: 1; }

.glass-ui { background: rgba(0,0,0,0.25); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.2); color: white; border-radius: 0; cursor: pointer; font-weight: 600; user-select: none; }

.room-btn { width: var(--btn-size); height: var(--btn-size); max-width: 80px; max-height: 80px; flex-shrink: 0; background-size: cover; background-position: center; border: 2px solid transparent; transition: 0.3s; }

.floor-nav-btn { 
    width: 60px; height: 60px; 
    background-color: #ffffff;
    background-size: cover; background-position: center; 
    border: 2px solid #ffffff; transition: all 0.2s ease-in-out; 
    border-radius: 0; 
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.floor-nav-btn.active { 
    border-color: #ffffff; 
    box-shadow: 0 0 0 2px #4fc1b3, 0 4px 10px rgba(0,0,0,0.15); 
}
.room-btn.active { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }

.street-label {
    background-color: #c96b46; 
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2.5px;
    padding: 18px 10px;
    user-select: none;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0; 
}

#menu-trigger { position: absolute; top: 20px; right: 20px; width: var(--hamburger-size); height: var(--hamburger-size); z-index: 110; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
#menu-trigger span { display: block; width: 50%; height: 3px; background-color: white; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
#menu-trigger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-trigger.open span:nth-child(2) { opacity: 0; }
#menu-trigger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#menu-drawer { position: absolute; top: calc(20px + var(--hamburger-size) + 15px); right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 109; opacity: 0; transform: translateY(-20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; min-width: 160px; }
#menu-drawer.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.action-btn { font-size: var(--action-font); padding: var(--action-padding); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; text-align: center; transition: 0.2s; width: 100%; box-sizing: border-box; }
.menu-active { border: 2px solid #00ff00 !important; background: rgba(0, 255, 0, 0.2) !important; }

.modal-container { 
    display: none; position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); width: 80%; height: 80%; 
    background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; 
    z-index: 200; padding: 30px 20px 20px 20px; align-items: center; justify-content: center;
    box-sizing: border-box;
}

.modal-close-btn {
    position: absolute; top: 10px; right: 15px; background: none; 
    border: none; color: white; cursor: pointer; font-size: 1.4rem; z-index: 210;
}

.modal-scroll-area {
    width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden;
    padding-right: 5px; box-sizing: border-box;
}

.modal-scroll-area::-webkit-scrollbar { width: 6px; }
.modal-scroll-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.modal-scroll-area::-webkit-scrollbar-thumb { background: #00ff00; border-radius: 3px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px; width: 100%;
}

.gallery-item {
    aspect-ratio: 16/9; background: #111; border: 1px solid #333; 
    border-radius: 0; overflow: hidden; cursor: zoom-in; transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover { transform: scale(1.02); border-color: #00ff00; }

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

#lightbox-overlay {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 300; cursor: zoom-out; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease-in-out;
}
#lightbox-overlay.show { display: flex; opacity: 1; }
#lightbox-image { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 0; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }

.lightbox-close-btn {
    position: absolute; top: 20px; right: 25px; background: none; 
    border: none; color: white; cursor: pointer; font-size: 2.2rem; z-index: 310;
    opacity: 0.6; transition: opacity 0.2s, transform 0.2s;
    line-height: 1; padding: 5px;
}
.lightbox-close-btn:hover { opacity: 1; transform: scale(1.1); color: #00ff00; }

/* Contact Layout Wrapper - Locked 2-Column Engine */
.contact-modal-body {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    gap: 12px;
    margin: auto;
}

.contact-modal-body img {
    width: 100%;
    max-height: calc(80vh - 120px);
    object-fit: contain;
    display: block;
}

.contact-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.3;
    box-sizing: border-box;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px;
}

.contact-card b {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.contact-card div {
    white-space: nowrap;
}

.contact-card a,
.contact-card a:link,
.contact-card a:visited,
.contact-card a:hover,
.contact-card a:active,
.contact-card a:focus {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    outline: none;
}

.contact-card a:hover {
    text-decoration: underline;
}


/* High-specificity override for contact links */
#contact-modal .contact-card a,
#contact-modal .contact-card a:link,
#contact-modal .contact-card a:visited,
#contact-modal .contact-card a:hover,
#contact-modal .contact-card a:active,
#contact-modal .contact-card a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

#contact-modal .contact-card a:hover {
    text-decoration: underline !important;
}



@media (max-width: 600px) {
    .contact-info-grid {
        font-size: 0.65rem !important;
    }
    .contact-card b {
        font-size: 0.72rem !important;
    }
}
