:root {
    /* Default Dark Theme Variables */
    --bg-dark: #0a0f1a;
    --bg-glass: rgba(10, 15, 26, 0.7);
    --primary: #cda873; /* Elegant Gold */
    --primary-hover: #b89565;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

:root[data-theme="light"] {
    /* Light Theme Variables */
    --bg-dark: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --primary: #b89565;
    --primary-hover: #9c7c50;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.section-title.center {
    text-align: center;
}
.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Navigation */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.logo {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-main);
}
.logo span {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.nav-btn:hover {
    color: var(--primary);
}
.nav-btn.primary {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}
.nav-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(205, 168, 115, 0.3);
}

.theme-btn {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}
.theme-btn:hover {
    background: var(--card-bg);
    transform: scale(1.1);
}

/* Split Hero Section */
.split-hero {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.split-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex var(--transition-slow);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.rent-panel { background-image: url('assets/photo_2026-04-04_10.14.04.jpeg'); }
.sale-panel { background-image: url('assets/photo_2026-04-04_10.14.12.jpeg'); }

.panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.6);
    transition: var(--transition-slow);
    z-index: 1;
}

.split-panel:hover { flex: 1.5; }
.split-panel:hover .panel-overlay { background: rgba(10, 15, 26, 0.4); }

.split-panel.active { flex: 3; }
.split-panel.inactive { flex: 0; opacity: 0; pointer-events: none; }

.panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition-slow);
}
.split-panel:hover .panel-content { transform: translateY(0); }

.offer-type {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: #fff;
}

.price {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}
.price span { font-size: 1.2rem; color: #cbd5e1; }
.subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.action-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(205, 168, 115, 0.4);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: all 1s ease;
    display: none;
}
main.visible { display: block; }
main.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Banner */
.active-offer-banner {
    margin-top: 6rem;
    margin-bottom: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.banner-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.badge {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.offer-summary { font-size: 1.2rem; font-weight: 400; color: var(--text-main); }

/* Overview Layout */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-item .icon { font-size: 2rem; background: rgba(205, 168, 115, 0.1); padding: 1rem; border-radius: 12px; color: var(--primary); }
.feature-item strong { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text-main); }
.feature-item span { color: var(--text-muted); font-size: 0.95rem; }

.overview-image { position: relative; cursor: pointer; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.overview-image img { width: 100%; display: block; transition: transform 0.5s ease; }
.overview-image:hover img { transform: scale(1.03); }
.img-hint { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.6); color: #fff; padding: 0.4rem 1rem; border-radius: 30px; font-size: 0.85rem; opacity: 0; transition: var(--transition-fast); pointer-events: none;}
.overview-image:hover .img-hint { opacity: 1; }

/* Grid Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.adv-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}
.adv-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(205, 168, 115, 0.1); }
.adv-card h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1.3rem; }
.adv-card p { color: var(--text-muted); line-height: 1.5; }

/* Complex Section */
.complex-section {
    margin: 8rem 0;
    padding: 4rem;
    border-radius: 20px;
}
.complex-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}
.complex-info-text h3 { color: var(--primary); margin-bottom: 1.5rem; font-size: 1.8rem; }
.complex-info-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; font-size: 1.1rem; }
.infographics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.stat-box {
    background: var(--bg-glass);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.stat-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.95rem; color: var(--text-main); font-weight: 500; display: block; margin-top: 0.5rem; }

.complex-visuals {
    display: grid;
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
    margin-top: 3rem;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: zoom-in;
}
.gallery-item:nth-child(1), .gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%); opacity: 0; transition: var(--transition-fast);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item span {
    position: absolute; bottom: 20px; left: 20px; z-index: 2; color: #fff; font-size: 1.2rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: var(--transition-fast);
}
.gallery-item:hover span { opacity: 1; transform: translateY(0); }


/* Modal Lightbox */
.modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}
.modal-close {
    position: absolute;
    top: 20px; right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: var(--primary); }

/* Contacts */
.contacts {
    padding: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    margin-top: 8rem;
}
.contact-wrap { max-width: 600px; margin: 0 auto; }
.contact-wrap p { color: var(--text-muted); margin-bottom: 3rem; }
.contact-details {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-border); padding: 2rem; border-radius: 16px; margin-bottom: 2rem;
}
.contact-person { display: flex; align-items: center; gap: 1rem; text-align: left; }
.avatar { width: 60px; height: 60px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 600; border-radius: 50%; }
.contact-person strong { display: block; font-size: 1.2rem; color: var(--text-main); }
.contact-person span { color: var(--text-muted); font-size: 0.9rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.contact-link { color: var(--text-main); text-decoration: none; transition: color var(--transition-fast); }
.contact-link:hover { color: var(--primary); }
.messengers { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.messenger-btn { text-decoration: none; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; transition: var(--transition-fast); }
.messenger-btn.tg { background: #0088cc; color: white; }
.messenger-btn.tg:hover { background: #0099e6; transform: translateY(-3px); }
.messenger-btn.wa { background: #25D366; color: white; }
.messenger-btn.wa:hover { background: #128C7E; transform: translateY(-3px); }
.messenger-btn.max { background: var(--text-main); color: var(--bg-dark); border: 1px solid var(--text-main); }
.messenger-btn.max:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(205, 168, 115, 0.4); }

/* Animations Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Adaptations */
@media (max-width: 1024px) {
    .nav-glass { padding: 1rem 2rem; }
    .complex-split { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
    .complex-visuals { grid-auto-rows: 300px; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .split-hero { flex-direction: column; }
    .offer-type { font-size: 3rem; }
    .price { font-size: 2rem; }
    
    .nav-links { display: none; } /* Hide heavy links on tiny screens, keep theme btn */
    
    .features-list { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(4) { grid-column: span 1; }
    
    .infographics { grid-template-columns: 1fr; }
    .complex-visuals { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    
    .contact-details { flex-direction: column; gap: 2rem; text-align: center; }
    .contact-person { flex-direction: column; text-align: center; }
    .contact-links { text-align: center; }
    .contacts { padding: 2rem; }
}
