/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    overflow: hidden;
    font-family: sans-serif;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/building.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.logo-area {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.logo {
    max-height: 60px;
}

.ui-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.left-ui { left: 25px; }
.right-ui { right: 25px; }

/* Base Button Styling */
.icon-btn {
    position: relative; /* Required for the tooltips to attach properly */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Button Hover State - Matches your new image */
.icon-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- TOOLTIP STYLES (Connecting Line) --- */
.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevents the line from interfering with clicks */
}

/* --- TOOLTIP STYLES (Text Pill) --- */
.icon-btn::after {
    content: attr(data-label); /* Grabs text from the HTML attribute */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(45, 50, 55, 0.95); /* Dark grey pill */
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Positioning for Left Side Buttons */
.left-ui .icon-btn::before { left: 100%; } /* Line extends to the right */
.left-ui .icon-btn::after { left: calc(100% + 12px); } /* Pill sits after the line */

/* Positioning for Right Side Buttons */
.right-ui .icon-btn::before { right: 100%; } /* Line extends to the left */
.right-ui .icon-btn::after { right: calc(100% + 12px); } /* Pill sits after the line */

/* Show tooltips on hover */
.icon-btn:hover::before,
.icon-btn:hover::after {
    opacity: 1;
    visibility: visible;
}




/* =========================================
   3DVISTA VIRTUAL TOUR PLAYER
   ========================================= */

.tour-player-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000; /* Black background for cinematic feel */
    z-index: 100000; /* Extremely high z-index to sit above everything */
}

.tour-nav-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none; /* Lets clicks pass through the gradient */
}

/* Re-enable clicks for the actual buttons */
.tour-tabs, .tour-close-btn {
    pointer-events: auto; 
}

.tour-tabs {
    display: flex;
    gap: 15px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.tour-tab-btn:hover {
    color: #ffffff;
}

.tour-tab-btn.active {
    background: #85754e; /* Gold accent */
    color: #ffffff;
}

.tour-close-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-close-btn:hover {
    background: #ef4444; /* Red on hover */
    border-color: #ef4444;
}

.tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =========================================
   WALKTHROUGH VIDEO MODAL
   ========================================= */

.video-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Takes up 80% of screen width */
    max-width: 1100px;
    aspect-ratio: 16 / 9; /* Perfect widescreen ratio */
    background: #000000;
    border-radius: 16px;
    z-index: 10007; /* Sits higher than other modals */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}



.video-close-btn:hover {
    background: #ef4444; /* Red close button on hover */
    color: white;
}

.video-container {
    width: 100%;
    height: 100%;
    background: #000000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* Unified Close Button for Full-Screen Modals (Video, 3DVista, Ecosystem) */
.overlay-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5000001; /* Keeps it above everything */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    color:#000;
}

.overlay-close-btn:hover {
     background: #ef4444; /* Red close button on hover */
    color: white;
}

/* The background overlay behind the modals */
.modal-backdrop {
    display: none; /* Hidden by default, JavaScript turns it on */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8); /* Dark blue/black tint */
    backdrop-filter: blur(6px); /* Blurs your main website behind it */
    z-index: 10005; /* Sits right below the video player (10007) */
}

/* =========================================
   PDF VIEWER MODAL
   ========================================= */

.pdf-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    max-width: 1200px;
    height: 90vh; /* Make it tall for reading documents */
    /* background: #ffffff; White background for documents */
    border-radius: 16px;
    z-index: 10007; /* Sits above the backdrop */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.pdf-container {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    /* REMOVE the padding-top: 40px; if you had it here earlier */
}


/* =========================================
   IMAGE GALLERY MODAL
   ========================================= */

.gallery-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px; /* Allow images to be quite large */
    height: 85vh;
    z-index: 10007; /* Above backdrop */
}

.gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents stretching */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

/* Image Counter */
.gallery-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 2px;
}


/* =========================================
   LOCATION MAP MODAL & SIDEBAR
   ========================================= */

.map-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* max-width: 1300px; */
    height: 100vh;
    background: #000000;
    border-radius: 16px;
    z-index: 10007; 
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden; 
}

.mapbox-container {
    width: 100%;
    height: 100%;
}

/* Map Sidebar Styles */
.om-sidebar-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: rgba(35, 35, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.om-sidebar-panel.om-closed {
    transform: translateX(-100%);
}

.om-sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.om-nav-link {
    padding: 18px 20px;
    color: #a3a3a3;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.om-nav-link:hover {
    color: #d4af37; /* Gold accent */
    background: rgba(255, 255, 255, 0.03);
}

.om-sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -30px;
    width: 30px;
    height: 60px;
    background: rgba(35, 35, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    cursor: pointer;
    transform: translateY(-50%);
}

.om-reset-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.om-reset-btn:hover {
    background: #d4af37;
    color: #000000;
}
/* =========================================
   ABOUT US MODAL
   ========================================= */

.about-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    z-index: 10007; 
}

.about-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents the image from stretching */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}


/* =========================================
   CONTACT US MODAL
   ========================================= */

.contact-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1100px;
    height: 70vh; /* Keeps it wide and cinematic */
    background: #ffffff;
    border-radius: 16px;
    z-index: 10007;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.contact-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.contact-left {
    flex: 1; /* Takes up 50% of the width */
    height: 100%;
    background: #e5e7eb;
}

.contact-right {
    flex: 1; /* Takes up 50% of the width */
    padding: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* Typography & Spacing */
.contact-divider {
    width: 40px;
    height: 1px;
    background: #333333;
    border: none;
    margin: 0 0 25px 0;
}

.contact-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #333333;
    margin-bottom: 50px;
}

.contact-company {
    font-size: 15px;
    font-weight: 700;
    color: #444444;
    margin-bottom: 12px;
}

.contact-address {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 320px;
}

/* Social Media Circles */
.contact-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #d4af37; /* Luxury gold highlight on hover */
    color: #ffffff;
    border-color: #d4af37;
    transform: translateY(-3px);
}

/* Responsive adjustment for small screens */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-left, .contact-right {
        flex: none;
        height: 50%;
    }
    .contact-right {
        padding: 40px;
    }
}