@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;0,6..96,800;0,6..96,900;1,6..96,400;1,6..96,500;1,6..96,600;1,6..96,700;1,6..96,800;1,6..96,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Instrument Sans', sans-serif; color: #333; line-height: 1.6; }

/* Navbar */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.nav-left { display: flex; align-items: center; gap: 30px; }

/* Explore toggle */
.explore-toggle { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    user-select: none; 
    text-transform: uppercase; 
    font-size: 14px; 
    letter-spacing: 1px; 
    color: #000; 
    padding: 8px;
    min-height: 44px;
    justify-content: center;
}
.explore-toggle .bars { display: flex; flex-direction: column; gap: 3px; width: 20px; height: 14px; position: relative; }
.explore-toggle .bar { width: 18px; height: 2px; background: #B8860B; transition: 0.3s; transform-origin: center; }
.explore-toggle .bar:nth-child(1), .explore-toggle .bar:nth-child(3) { position: relative; }
.explore-toggle.open .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.explore-toggle.open .bar:nth-child(2) { opacity: 0; }
.explore-toggle.open .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 5px; position: absolute; left: 50%; transform: translateX(-50%); }
.logo img { height: 40px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-link { color: #666; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.3s; }
.nav-link:hover { color: #333; }

/* Sidebar Drawer */
.side-drawer-wrapper { position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: 10001; pointer-events: none; }
.side-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.3s ease; }
.side-drawer { position: absolute; top: 0; left: 0; height: 100%; width: 300px; background: #fff; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15); transform: translateX(-100%); transition: transform 0.3s ease; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.side-close { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; background: transparent; border: none; cursor: pointer; }
.side-close:before, .side-close:after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 2px; background: #888; transform-origin: center; }
.side-close:before { transform: translate(-50%, -50%) rotate(45deg); }
.side-close:after { transform: translate(-50%, -50%) rotate(-45deg); }
.side-menu { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.side-category { display: flex; flex-direction: column; gap: 12px; }
.side-category-title { color: #B8860B; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.side-link { text-decoration: none; color: #333; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.side-link:hover { color: #000; }
.side-social-icons { display: flex; gap: 12px; margin-top: 8px; }
.side-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 4px; color: #555; text-decoration: none; transition: all 0.3s ease; }
.side-social-icon:hover { background: #B8860B; color: white; border-color: #B8860B; transform: translateY(-1px); }
.side-social-icon svg { width: 18px; height: 18px; }
.side-drawer-wrapper.open { pointer-events: auto; }
.side-drawer-wrapper.open .side-overlay { opacity: 1; }
.side-drawer-wrapper.open .side-drawer { transform: translateX(0); }

/* About hero */
.nav-spacer { height: 90px; }
.about-hero { height: 60vh; background: url('assets/AboutPrime.png') center/cover no-repeat; display: block; width: 100%; }

/* About content section */
.about-content { background: #f8f8f8; padding: 80px 20px; }
.about-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.about-title { font-family: 'Bodoni Moda', serif; font-size: clamp(32px, 5vw, 48px); font-weight: 300; color: #333; margin-bottom: 40px; letter-spacing: 1px; }
.about-text-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 40px; text-align: left; }
.about-text { font-size: 16px; line-height: 1.8; color: #666; margin-bottom: 20px; }
.about-cta { display: inline-block; background: #B8860B; color: white; padding: 12px 30px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid #B8860B; transition: all 0.3s; margin-top: 20px; }
.about-cta:hover { background: transparent; color: #B8860B; }

@media (max-width: 768px) {
  .about-text-columns { grid-template-columns: 1fr; gap: 30px; }
  .about-content { padding: 60px 20px; }
}

/* Residences content section */
.residences-hero { height: 60vh; background: url('assets/Residences.png') center/cover no-repeat; display: block; width: 100%; }
.residences-content { background: #f8f8f8; padding: 80px 20px; }
.residences-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.residences-title { font-family: 'Bodoni Moda', serif; font-size: clamp(32px, 5vw, 48px); font-weight: 300; color: #333; margin-bottom: 40px; letter-spacing: 1px; }
.residences-text { max-width: 800px; margin: 0 auto 40px; }
.residences-text p { font-size: 16px; line-height: 1.8; color: #666; margin-bottom: 20px; }
.residences-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.residences-btn { display: inline-block; padding: 12px 30px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid transparent; transition: all 0.3s; }
.residences-btn.primary { background: #B8860B; color: white; border-color: #B8860B; }
.residences-btn.primary:hover { background: transparent; color: #B8860B; }
.residences-btn.secondary { background: #222; color: white; border-color: #222; }
.residences-btn.secondary:hover { background: transparent; color: #222; }

@media (max-width: 768px) {
  .residences-content { padding: 60px 20px; }
  .residences-actions { flex-direction: column; align-items: center; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container { padding: 0 15px; }
}

/* ====== Home page sections (migrated from index.html) ====== */
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: -2; 
    will-change: transform;
    transform: translateZ(0);
}
.hero-video-mobile { 
    display: none; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1; }
.hero-content { text-align: center; color: white; z-index: 1; max-width: 900px; padding: 0 20px; }
.hero-title { font-family: 'Bodoni Moda', serif; font-size: clamp(36px, 6vw, 60px); font-weight: 300; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(16px, 1.5vw, 18px); font-weight: 300; line-height: 1.6; margin-bottom: 30px; letter-spacing: 1px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-button { display: inline-block; background: #B8860B; color: white; padding: 15px 40px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s; border: 2px solid #B8860B; }
.hero-button:hover { background: transparent; color: white; border-color: white; }
.hero-button-bottom { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 10; }

/* Landmark Section */
.landmark {
    background: linear-gradient(rgb(0 0 0 / 39%), rgba(0, 0, 0, 0.2)), url("assets/TheResidenceHero.png");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 5%;
    z-index: 2;
}


.landmark-content { text-align: left; color: white; z-index: 1; max-width: 600px; padding: 0 20px; position: absolute; left: 5%; bottom: 200px; }
.landmark-title { font-family: 'Bodoni Moda', serif; font-size: clamp(36px, 6vw, 60px); font-weight: 300; line-height: 1.2; margin-bottom: 10px; }
.landmark-description { font-size: 14px; font-weight: 300; line-height: 1.6; margin-bottom: 20px; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.9); max-width: 520px; }
.landmark-button { display: inline-block; background: transparent; color: white; padding: 12px 30px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; border: 2px solid white; transition: all 0.3s; }
.landmark-button:hover { background: white; color: #333; }
.landmark-cta { position: absolute; right: 5%; bottom: 200px; display: inline-block; background: rgba(0,0,0,0.4); color: white; padding: 12px 22px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.8); transition: all 0.3s; }
.landmark-cta:hover { background: rgba(255,255,255,0.85); color: #333; border-color: rgba(255,255,255,1); }

/* Amenities Section */
.amenities { min-height: 100vh; display: flex; align-items: flex-start; justify-content: flex-start; position: relative; z-index: 3; overflow: hidden; background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('assets/ExploreAmenties.png'); background-size: cover; background-position: center; }
.amenities-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.25); z-index: -1; }
.amenities-content { color: white; z-index: 1; max-width: 640px; padding: 0 20px; margin-top: 40px; margin-left: 5%; }
.amenities-text { font-size: 16px; font-weight: 300; line-height: 1.8; letter-spacing: 0.2px; color: rgba(255, 255, 255, 0.95); margin-bottom: 16px; }
.amenities-button { display: inline-block; background: transparent; color: white; padding: 10px 18px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.9); transition: all 0.3s; }
.amenities-button:hover { background: rgba(255, 255, 255, 0.9); color: #333; }

/* City Section (Final Hero) */
.city { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 4; text-align: center; color: white; overflow: hidden; }
.city-video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: -2; 
    will-change: transform;
    transform: translateZ(0);
}
.city-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1; }
.city-content { max-width: 900px; padding: 0 20px; z-index: 1; }
.city-title { font-family: 'Bodoni Moda', serif; font-size: clamp(32px, 5.5vw, 54px); font-weight: 300; letter-spacing: 1px; margin-bottom: 20px; }
.city-text { font-size: 16px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.95); margin-bottom: 24px; }
.city-button { display: inline-block; background: transparent; color: white; padding: 12px 26px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.9); transition: all 0.3s; }
.city-button:hover { background: rgba(255,255,255,0.9); color: #333; }

/* Footer */
.footer-bar { position: relative; background: #ffffff; color: #333; padding: 24px 20px; z-index: 5; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-size: 14px; letter-spacing: 1px; }
.footer-subtitle { font-size: 11px; color: #777; letter-spacing: 1px; }
.footer-address { font-size: 11px; color: #777; letter-spacing: 1px; }
.footer-actions { display: flex; align-items: center; gap: 16px; }
.footer-btn { display: inline-block; padding: 10px 18px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid #333; color: #333; transition: all 0.3s; }
.footer-btn.gold { background: #B8860B; border-color: #B8860B; color: #fff; }
.footer-btn.gold:hover { filter: brightness(1.05); }
.footer-btn.dark { background: #222; border-color: #222; color: #fff; }
.footer-btn.dark:hover { filter: brightness(1.1); }
.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 4px; color: #555; text-decoration: none; font-size: 14px; }
.footer-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 10002;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
    background: #ffffff !important;
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
    background: #ffffff !important;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
    background: #ffffff !important;
}

/* Mobile hamburger open state - white for all pages */
.mobile-nav-toggle.open {
    color: #ffffff !important;
    z-index: 10003 !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
}

.mobile-nav-toggle.open span:nth-child(1),
.mobile-nav-toggle.open span:nth-child(2),
.mobile-nav-toggle.open span:nth-child(3) {
    background: #ffffff !important;
    opacity: 1 !important;
}

/* Force white color when mobile menu is open */
.mobile-nav-menu.open + * .mobile-nav-toggle.open span,
.mobile-nav-menu.open ~ * .mobile-nav-toggle.open span {
    background: #ffffff !important;
}

/* Debug: Make sure button is visible when menu is open */
.mobile-nav-menu.open ~ .mobile-nav-toggle {
    display: flex !important;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 20px 0;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: #B8860B;
}

/* Mobile menu close button */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 10004;
    padding: 8px;
    box-sizing: border-box;
}

.mobile-nav-close span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: 6px;
    display: block;
}

.mobile-nav-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-nav-close span:nth-child(2) {
    transform: rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile navbar improvements */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
    }
    
    .nav-left {
        gap: 15px;
    }
    
    .nav-left .nav-link {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-right {
        display: flex;
        gap: 15px;
    }

    .nav-right .nav-link:nth-child(1) {
        display: none;
    }

    .nav-right .nav-link:nth-child(2) {
        display: flex;
    }

    .nav-right .nav-link:nth-child(3) {
        display: none;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 35px;
    }
    
    .explore-toggle {
        font-size: 12px;
    }
    
    .explore-toggle .bars {
        width: 18px;
        height: 12px;
    }
    
    .explore-toggle .bar {
        width: 16px;
    }
    
    /* Side drawer mobile adjustments */
    .side-drawer {
        width: 280px;
        padding: 20px;
    }
    
    .side-link {
        font-size: 14px;
    }
    
    /* Hero and content sections */
    .hero-video { display: none; }
    .hero-video-mobile { 
        display: block; 
        position: absolute; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        z-index: -2; 
        will-change: transform;
        transform: translateZ(0);
    }
    .hero-button-bottom { 
        bottom: 85px; 
        padding: 12px 30px;
        font-size: 12px;
    }
    .landmark { padding-left: 3%; }
    .landmark-content { padding: 0 15px; left: 3%; bottom: 280px; }
    .landmark-description { text-align: justify; text-align-last: left; }
    .wellness-content, .cowork-content, .concierge-content { padding: 0 15px; left: 3%; bottom: 280px; }
    .landmark-button { padding: 10px 25px; font-size: 12px; }
    .landmark-cta { left: 50%; right: auto; text-align: center; transform: translateX(-50%); }
    
    /* Amenities page only - center all hero sections on mobile */
    .amenities-page .landmark { padding-left: 0; }
    .amenities-page .landmark-content { left: 50%; right: auto; transform: translateX(-50%); text-align: center; max-width: 90%; width: 90%; }
    .amenities-page .landmark-title { text-align: center; width: 100%; }
    .amenities-page .landmark-description { text-align: center !important; width: 100%; max-width: none; display: block; }
    .amenities-page .wellness-content, 
    .amenities-page .cowork-content, 
    .amenities-page .concierge-content { left: 50%; right: auto; transform: translateX(-50%); text-align: center; max-width: 90%; width: 90%; }
    .amenities-page .wellness-title, 
    .amenities-page .cowork-title, 
    .amenities-page .concierge-title { text-align: center; width: 100%; }
    .amenities-page .wellness-description, 
    .amenities-page .cowork-description, 
    .amenities-page .concierge-description { text-align: center !important; width: 100%; max-width: none; display: block; }
    .amenities { align-items: flex-end; }
    .amenities-content { padding: 0 15px; margin-left: auto; margin-right: auto; margin-bottom: 60px; margin-top: 10px; text-align: center; }
    .amenities-text { text-align: justify; text-align-last: center; }
    .amenities-button { padding: 10px 20px; font-size: 12px; }
    .footer-container { flex-direction: column; align-items: stretch; gap: 14px; }
    .footer-actions { justify-content: space-between; }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .navbar { 
        padding: 12px 0; 
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-left .nav-link { 
        display: none; 
    }
    
    .logo img { 
        height: 32px; 
    }
    
    .explore-toggle {
        font-size: 11px;
        gap: 8px;
    }
    
    .explore-toggle .bars {
        width: 16px;
        height: 10px;
    }
    
    .explore-toggle .bar {
        width: 14px;
    }
    
    .mobile-nav-toggle {
        padding: 6px;
    }
    
    .mobile-nav-toggle span {
        width: 20px;
    }
    
    .mobile-nav-menu {
        padding-top: 70px;
    }
    
    .mobile-nav-menu a {
        font-size: 16px;
        margin: 16px 0;
        padding: 12px 20px;
    }
    
    /* Side drawer adjustments for small screens */
    .side-drawer {
        width: 260px;
        padding: 18px;
    }
    
    .side-link {
        font-size: 13px;
    }
    
    /* Content adjustments */
    .hero-button-bottom { 
        bottom: 75px; 
        padding: 10px 25px;
        font-size: 11px;
    }
    .landmark { padding-left: 2%; }
    .landmark-content { bottom: 300px; }
    .wellness-content, .cowork-content, .concierge-content { bottom: 300px; }
    .landmark-title { font-size: clamp(28px, 8vw, 48px); }
    
    /* Amenities page only - center all hero sections on small mobile */
    .amenities-page .landmark { padding-left: 0; }
    .amenities-page .landmark-content { left: 50%; transform: translateX(-50%); max-width: 90%; width: 90%; }
    .amenities-page .wellness-content, 
    .amenities-page .cowork-content, 
    .amenities-page .concierge-content { left: 50%; transform: translateX(-50%); max-width: 90%; width: 90%; }
    
    .amenities { align-items: flex-end; }
    
    /* Footer adjustments */
    .footer-container {
        padding: 0 12px;
    }
    
    .footer-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.modal.show { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: white; padding: 40px; border-radius: 8px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto !important; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideUp 0.3s ease-out; -webkit-overflow-scrolling: touch; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-title { font-family: 'Bodoni Moda', serif; font-size: 28px; font-weight: 300; color: #333; margin-bottom: 10px; }
.modal-subtitle { color: #666; font-size: 16px; line-height: 1.5; }
.close { position: absolute; right: 20px; top: 20px; font-size: 28px; font-weight: bold; color: #999; cursor: pointer; line-height: 1; transition: color 0.3s; }
.close:hover { color: #333; }
.form-group { margin-bottom: 20px; }
.form-row { display: block; }
.form-row .form-group { width: 100%; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-select { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s; background: white; }
.form-input:focus, .form-select:focus { outline: none; border-color: #B8860B; box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.1); }
.phone-input-group { display: flex; gap: 10px; }
.phone-input-group .country-code-select { flex: 0 0 120px; }
.phone-input-group .form-input { flex: 1; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.checkbox-input { width: 18px; height: 18px; accent-color: #B8860B; }
.checkbox-label { font-size: 14px; color: #666; cursor: pointer; }
.submit-button { width: 100%; background: #333; color: white; padding: 15px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.submit-button:hover { background: #B8860B; transform: translateY(-1px); }
.submit-button:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.loading { display: inline-block; width: 20px; height: 20px; border: 2px solid #ffffff; border-radius: 50%; border-top-color: transparent; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-message { text-align: center; padding: 20px; color: #4CAF50; font-size: 16px; font-weight: 500; }
.error-message { color: #f44336; font-size: 12px; margin-top: 5px; }

/* Completion Dialog */
.completion-dialog { 
    display: none; 
    position: fixed; 
    z-index: 10001; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px); 
}
.completion-dialog.show { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: fadeIn 0.3s ease-out; 
}
.completion-content { 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    width: 90%; 
    max-width: 400px; 
    position: relative; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
    animation: slideUp 0.3s ease-out; 
    text-align: center; 
}
.completion-close { 
    position: absolute; 
    right: 20px; 
    top: 20px; 
    font-size: 28px; 
    font-weight: bold; 
    color: #999; 
    cursor: pointer; 
    line-height: 1; 
    transition: color 0.3s; 
}
.completion-close:hover { color: #333; }
.completion-icon { 
    font-size: 48px; 
    color: #4CAF50; 
    margin-bottom: 20px; 
    font-weight: bold; 
}
.completion-title { 
    font-family: 'Bodoni Moda', serif; 
    font-size: 24px; 
    font-weight: 300; 
    color: #333; 
    margin-bottom: 15px; 
}
.completion-message { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.5; 
    margin-bottom: 25px; 
}
.completion-ok { 
    background: #B8860B; 
    color: white; 
    padding: 12px 30px; 
    border: none; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: all 0.3s; 
}
.completion-ok:hover { 
    background: #A0780A; 
    transform: translateY(-1px); 
}

/* Scroll Arrow Styles */
.scroll-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 1);
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.scroll-arrow:hover svg {
    transform: translateY(2px);
}


/* Mobile responsive scroll arrows */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 45px;
        height: 45px;
        bottom: 25px;
    }
    
    .scroll-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-arrow {
        width: 40px;
        height: 40px;
        bottom: 20px;
    }
    
    .scroll-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Virtual Tours Page Styles */
body.virtual-tours-page {
    background: #ffffff;
}

/* Virtual Tours Gallery Styles */
.tours-gallery {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: #ffffff;
}

/* Virtual Tours - Navbar always visible with dark styling */
.virtual-tours-page .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.virtual-tours-page .nav-link {
    color: #666 !important;
}

.virtual-tours-page .explore-toggle {
    color: #000 !important;
}

.virtual-tours-page .explore-toggle .bar {
    background: #B8860B !important;
}

.virtual-tours-page .logo img {
    filter: invert(71%) sepia(77%) saturate(1029%) hue-rotate(6deg) brightness(94%) contrast(89%) !important;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 300;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.tour-item {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tour-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-item:hover .tour-image img {
    transform: scale(1.05);
}

.tour-caption {
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.tour-caption h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Mobile responsive for tours grid */
@media (max-width: 1200px) {
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tours-gallery {
        padding: 100px 0 60px;
    }

    .gallery-subtitle {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tours-gallery {
        padding: 80px 0 40px;
    }

    .tour-caption {
        padding: 16px;
    }

    .tour-caption h3 {
        font-size: 16px;
    }

    .tour-caption p {
        font-size: 13px;
    }
}

/* Index-specific styles */
html { scroll-behavior: auto; }
body { overflow-x: hidden; }

.scroll-container { position: relative; }

/* Section Transitions - DISABLED */
.section { opacity: 1; transform: none; }
.section.in-view { opacity: 1; transform: none; }
.section.fade-out { opacity: 1; transform: none; }

/* Temporarily disable sticky during anchor jumps - NO LONGER NEEDED */
/* .anchor-jumping .hero,
.anchor-jumping .landmark,
.anchor-jumping .amenities,
.anchor-jumping .city {
    position: relative !important;
    top: auto !important;
} */

/* Navbar scroll behavior overrides for index */
.navbar { transition: all 0.3s ease; }

/* Explore toggle - default dark for about page */
.explore-toggle { color: #000; }
.explore-toggle .bar { background: #B8860B; }

/* Index page specific - white at top for hero */
.index-page .explore-toggle { color: #ffffff; }
.index-page .explore-toggle .bar { background: #ffffff; }

/* Mobile hamburger color transitions for index and amenities pages */
.index-page .mobile-nav-toggle span,
.amenities-page .mobile-nav-toggle span {
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.index-page.scrolled .mobile-nav-toggle span,
.amenities-page.scrolled .mobile-nav-toggle span {
    background: #333333;
}

/* Hamburger (unused but in original) */
.hamburger { display: none; flex-direction: column; gap: 3px; cursor: pointer; padding: 5px; }
.hamburger span { width: 20px; height: 2px; background: #333; transition: 0.3s; }

/* Amenities page specific backgrounds */
.amenities-page .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('assets/AmenitiesHeader.jpg');
    background-size: cover;
    background-position: center;
}

.amenities-page .landmark {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/Amenities2.png');
    background-size: cover;
    background-position: center;
}

.amenities-page .wellness {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/Amenities3.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 5%;
    z-index: 3;
}

.amenities-page .cowork {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/Amenities4.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 5%;
    z-index: 4;
}

.amenities-page .concierge {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/AmenitiesConcierge.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 5%;
    z-index: 5;
}

.wellness-content, .cowork-content, .concierge-content {
    text-align: left;
    color: white;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
    position: absolute;
    left: 5%;
    bottom: 170px;
}

.wellness-title, .cowork-title, .concierge-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
}

.wellness-description, .cowork-description, .concierge-description {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
}

/* Lifestyle Gallery Styles */
.lifestyle-gallery {
    background: #ffffff;
    padding: 80px 0;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #f5f5f5;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    will-change: transform;
    transform: translateZ(0);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Full-Screen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-modal .modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.modal-close span {
    line-height: 1;
    font-weight: 300;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

/* Mobile Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .image-modal .modal-content {
        width: 95%;
        height: 95%;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
    }
    
    .modal-nav-prev {
        left: 15px;
    }
    
    .modal-nav-next {
        right: 15px;
    }
    
    .modal-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-counter {
        bottom: 15px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lifestyle-gallery {
        padding: 60px 0;
    }

    .gallery-container {
        padding: 0 15px;
    }
}

/* Hero Image Modal Styles */
.hero-modal {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.hero-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 90%;
    transform: scale(0.8);
    animation: zoomIn 0.3s ease-in-out forwards;
}

.hero-modal-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-modal-close:hover,
.hero-modal-close:focus {
    color: #B8860B;
    background: rgba(0, 0, 0, 0.8);
}

/* Desktop styles */
@media (min-width: 768px) {
    .hero-modal-content {
        max-width: 80%;
    }
}

/* Mobile styles - full width */
@media (max-width: 767px) {
    .hero-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .hero-modal-image {
        max-height: 95vh;
    }

    .hero-modal-close {
        top: -45px;
        right: -5px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }

    /* Center-align all h1 and h2 elements on mobile */
    h1, h2 {
        text-align: center !important;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
