:root {
    --bg-main: #ffffff;
    --bg-sec: #f8f9fa;
    --text-main: #18181b;
    --text-muted: #52525b;
    --accent: #c4a47c;
    --accent-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* ANTI-COPY MEASURES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent text selection */
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
}

/* Custom Cursor - Only on hoverable screens */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none; }
    .cursor {
        width: 20px; height: 20px;
        border: 2px solid var(--accent);
        border-radius: 50%; position: fixed;
        pointer-events: none; z-index: 99999;
        transition: transform 0.1s ease;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }
    .cursor.hover-active {
        transform: translate(-50%, -50%) scale(2.5);
        background-color: rgba(196, 164, 124, 0.2);
        border-color: transparent;
    }
}
@media (hover: none) {
    .cursor { display: none; }
    * { cursor: auto !important; }
}

/* Navbar */
nav {
    position: fixed; top: 0; width: 100%; padding: 2rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 5%; background: var(--glass-bg);
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.logo { font-size: 1.8rem; font-weight: 600; font-family: 'Playfair Display', serif; color: var(--accent-dark); position: relative; z-index: 1001; }
nav.scrolled .logo, nav.scrolled .nav-links a { color: var(--accent-dark); }
nav:not(.scrolled) .logo, nav:not(.scrolled) .nav-links a { color: #ffffff; }
.logo span { color: var(--accent); }

/* Hamburger Menu */
.hamburger {
    display: none; cursor: pointer; z-index: 1001;
}
.hamburger div {
    width: 25px; height: 3px; margin: 5px;
    background-color: var(--accent-dark); transition: all 0.3s ease;
}
nav:not(.scrolled) .hamburger div { background-color: #ffffff; }

.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; font-weight: 600; }
.nav-links a:hover { color: var(--accent) !important; }

.btn-outline { border: 1px solid var(--accent); padding: 0.6rem 1.5rem; border-radius: 30px; color: #fff; }
nav.scrolled .btn-outline { color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent); color: #fff !important; border-color: var(--accent); }

/* Responsive Nav */
@media screen and (max-width: 768px) {
    body { overflow-x: hidden; }
    .nav-links {
        position: fixed; right: -100%; top: 0;
        height: 100vh; width: 100%;
        background-color: var(--bg-main);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        transition: transform 0.5s ease-in-out;
    }
    .nav-links a { color: var(--accent-dark) !important; font-size: 1.5rem; margin: 1.5rem 0;}
    .nav-links.nav-active { transform: translateX(-100%); }
    .hamburger { display: block; }
    /* Hamburger Animations */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--accent-dark) !important;}
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--accent-dark) !important;}
}

/* Hero Section */
.hero {
    height: 100vh; display: flex; align-items: center; padding: 0 5%;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #ffffff;
}
.hero-content h1 { font-size: clamp(3rem, 5vw + 1rem, 5rem); line-height: 1.1; margin-bottom: 1.5rem; color: #ffffff; }
.hero-content h1 span { color: var(--accent); font-style: italic; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 500px; margin-bottom: 2.5rem; color: #f1f5f9; }

.btn-primary {
    display: inline-block; background: var(--accent-dark); color: #ffffff;
    padding: 1rem 2.5rem; text-decoration: none; font-weight: 600; border-radius: 30px;
    transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); background: var(--accent); box-shadow: 0 10px 20px rgba(196, 164, 124, 0.3); }

/* Properties Section */
.properties-section { padding: 8rem 5%; background-color: var(--bg-sec); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; text-align: center; }

.tabs-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }
.tab-btn {
    background: transparent; border: 2px solid var(--accent-dark); color: var(--accent-dark);
    padding: 0.8rem 2rem; border-radius: 30px; font-family: 'Outfit', sans-serif;
    font-weight: 600; font-size: 1rem; transition: all 0.3s ease; outline: none; cursor: pointer;
}
.tab-btn.active, .tab-btn:hover { background: var(--accent-dark); color: #ffffff; border-color: var(--accent-dark); }

.tab-content { display: none; animation: fadeIn 0.6s ease-in-out forwards; }
.tab-content.active { display: grid; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.properties-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden; backdrop-filter: blur(12px);
    box-shadow: var(--shadow); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.card-img { height: 200px; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.glass:hover .card-img { transform: scale(1.05); }

.card-content { padding: 1.5rem; }
.badge {
    background: rgba(196, 164, 124, 0.15); color: #9c7b50;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.future-badge { background: rgba(15, 23, 42, 0.1); color: var(--accent-dark); }

.card-content h3 { font-size: 1.25rem; margin: 0.8rem 0 0.4rem 0; }
.location { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.price { font-size: 1.1rem; font-weight: 600; color: var(--accent-dark); }
.price small { font-size: 0.75rem; color: var(--text-muted); }
.btn-text { background: none; border: none; color: var(--accent-dark); font-family: 'Outfit', sans-serif; font-weight: 600; transition: color 0.3s; font-size: 0.9rem; cursor: pointer;}
.btn-text:hover { color: var(--accent); }

/* Modal Styles */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); z-index: 2000;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; padding: 20px;
}
.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: #ffffff; width: 100%; max-width: 1000px; max-height: 90vh;
    border-radius: 20px; position: relative; display: flex; overflow: hidden;
    transform: scale(0.95) translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal.active .modal-content { transform: scale(1) translateY(0); }

.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2.5rem; line-height: 1;
    color: var(--text-muted); cursor: pointer; z-index: 10; transition: color 0.3s;
    background: white; border-radius: 50%; width: 40px; height: 40px; text-align: center; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.close-modal:hover { color: var(--accent); }

/* Left Side - Image Carousel */
.modal-image-col { flex: 1.2; background: #f1f5f9; display: flex; flex-direction: column; }
.carousel-container { position: relative; flex: 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #e2e8f0; }
.carousel-container img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.8);
    border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: pointer;
}
.carousel-btn:hover { background: var(--accent-dark); color: #fff; }
.prev-btn { left: 15px; } .next-btn { right: 15px; }

.modal-gallery { display: flex; gap: 10px; padding: 15px; background: #f8f9fa; justify-content: center; border-top: 1px solid var(--glass-border); flex-wrap: wrap;}
.modal-gallery img { width: 70px; height: 50px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; transition: all 0.3s; opacity: 0.6; cursor: pointer;}
.modal-gallery img.active { border-color: var(--accent); opacity: 1; }
.modal-gallery img:hover { opacity: 1; }

/* Right Side - Info */
.modal-info-col { flex: 1; padding: 3rem; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.modal-info-col h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 1rem 0 0.5rem 0; line-height: 1.2;}
.modal-price { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.modal-desc { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }

/* About Section */
.about-section { padding: 8rem 5%; background-color: var(--bg-main); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; }
.about-text { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.about-text h2 span { color: var(--accent); }
.about-text p { margin-bottom: 1.5rem; color: var(--text-muted); line-height: 1.7; }
.about-img { background-size: cover; background-position: center; min-height: 400px; }

/* Contact Section Updated */
.contact-section { padding: 8rem 5%; background-color: var(--bg-sec); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; max-width: 1000px; margin: 0 auto; }
.contact-info h3, .company-details h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info p, .company-details p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.contact-info ul { list-style: none; }
.contact-info li { margin-bottom: 1.5rem; color: var(--text-main); }
.contact-info li strong { color: var(--accent-dark); display: block; font-size: 0.9rem; margin-bottom: 0.3rem;}

.business-hours { background: rgba(15, 23, 42, 0.03); padding: 1.5rem; border-radius: 10px; border: 1px solid var(--glass-border); margin-bottom: 2rem; }
.business-hours strong { color: var(--accent-dark); display: block; margin-bottom: 0.5rem; }
.business-hours p { margin-bottom: 0.2rem; font-size: 0.9rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap;}
.social-btn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #ffffff; border: 1px solid var(--glass-border); color: var(--accent-dark); transition: all 0.3s ease; text-decoration: none; cursor: pointer;}
.social-btn:hover { background: var(--accent-dark); color: #ffffff; transform: translateY(-5px); border-color: var(--accent-dark); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Footer */
footer { padding: 4rem 5%; text-align: center; background-color: var(--accent-dark); color: #ffffff; }
footer h2 { font-size: 2rem; margin-bottom: 1rem; color: #ffffff; }
footer h2 span { color: var(--accent); }
footer p { color: #94a3b8; margin-bottom: 2rem; }
.copyright { font-size: 0.8rem; }

/* Scroll Animations */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 992px) {
    .about-container, .contact-wrapper { grid-template-columns: 1fr; gap: 2rem;}
    .about-img { min-height: 300px; }
    .contact-wrapper { padding: 2rem; }
    .modal-content { flex-direction: column; overflow-y: auto; }
    .modal-image-col { min-height: 350px; flex: none; }
    .modal-info-col { padding: 2rem; flex: none;}
}

@media (max-width: 500px) {
    .properties-section, .about-section, .contact-section { padding: 5rem 5%; }
    .card-img { height: 220px; }
    .modal-image-col { min-height: 250px; }
    .modal-info-col { padding: 1.5rem; }
    .about-text { padding: 2rem; }
}