/* --- GLOBAL & FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@700&display=swap');

*{ margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat light', sans-serif; line-height: 1.6; color: #333; background-color: #ffffff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- ANIMATION --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- HEADER / NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3%;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.logo { text-decoration: none; z-index: 1001; }
.logo h3 {
    font-family: 'Montserrat light', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}
.links ul { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.links a { text-decoration: none; color: #ffffff; font-weight: 500; transition: color 0.4s ease; position: relative; padding-bottom: 5px; }
.links a::after { content: ''; position: absolute; width: 0; height: 2px; display: block; bottom: 0; left: 0; background: #ffffff; transition: width 0.3s ease, background-color 0.4s ease; }
.links a:hover::after { width: 100%; }
.nav.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav.scrolled .logo h3, .nav.scrolled .links a { color: #333; }
.nav.scrolled .links a::after { background-color: #333; }
.nav-toggle { display: none; } 

/* Styles for non-homepage pages */
.content-page { padding-top: 100px; }
.content-page .nav { position: fixed; background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.content-page .nav .logo h3, .content-page .nav .links a { color: #333; }
.content-page .nav .links a::after { background: #333; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    color: #ffffff;
    padding: 4rem 2rem; 
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: left; 
}
.hero-content h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: 2.8rem; 
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem; 
}
.hero-search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none; 
    width: 100%;
    padding: 0; 
}
.search-bar-item {
    flex: 1 1 15%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    position: relative;
}
.search-bar-item.location-input { flex: 1 1 40%; }
.search-bar-item:last-of-type { border-right: none; }
.search-bar-item i { color: #ffffff; font-size: 1rem; padding: 0 0.5rem 0 1rem; }
.search-bar-item input,
.search-bar-item select {
    width: 100%;
    height: 60px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #ffffff;
    padding: 0 1rem;
    font-family: 'Montserrat light', sans-serif;
    appearance: none;
}
.search-bar-item select option {
    background: #333333;
    color: #ffffff;
}
.search-bar-item input::placeholder { color: #e0e0e0; opacity: 1; }
.search-bar-item select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em 1em;
    cursor: pointer;
}
.hero-search-button {
    flex-shrink: 0;
    background: transparent; 
    color: #fff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2); 
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin-left: 0;
}
.hero-search-button:hover { background-color: rgba(255, 255, 255, 0.1); }

/* --- SECTIONS (GENERAL) --- */
.stats-section, .properties-section, .about-us-section, .reviews-section, .contact-section {
    padding: 5rem 0;
}




.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 600; }
.section-tag { display: inline-block; background: #eee; padding: 0.3rem 1rem; font-size: 0.9rem; margin-bottom: 0.5rem; color: #555; }

/* --- STATS SECTION --- */
.stats-section { background: #fff; }
.stats-header { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }
.stats-header h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; }
.stats-header p { color: #555; }
.stats-list { display: flex; justify-content: space-around; text-align: center; }
.stat-item { padding: 1rem; border-left: 1px solid #e0e0e0; flex-grow: 1; }
.stat-item:first-child { border-left: none; }
.stat-value { font-size: 3rem; font-weight: 600; }
.stat-label { color: #555; }

/* --- PROPERTIES SECTION --- */
.properties-section { background: #f8f8f8; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.property-card { background-color: #ffffff; border: 1px solid #e0e0e0; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.property-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.property-image-container { position: relative; }
.property-image-container img { width: 100%; height: 250px; object-fit: cover; display: block; }
.property-status-tag { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(2px); padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 500; }
.card-content { padding: 1.5rem; }
.card-header { display: flex; flex-direction: column-reverse; margin-bottom: 1rem; }
.card-header h4 { font-size: 1.4rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-header a { text-decoration: none; color: inherit; }
.property-location { font-size: 0.9rem; color: #555; }
.property-location i { margin-right: 0.3rem; }
.property-specs { display: flex; gap: 1.5rem; color: #555; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; }
.property-specs i { margin-right: 0.5rem; }
.property-price span { font-size: 1.5rem; font-weight: 700; color: #000; }
.button-container { text-align: center; margin-top: 3rem; }
.view-all-button { display: inline-block; background-color: #000; color: #fff; padding: 0.8rem 2.5rem; text-decoration: none; font-size: 1.1rem; font-weight: 500; border: 1px solid #000; cursor: pointer; transition: all 0.3s ease; }

/* --- PARTNERS SECTION --- */
.developers-section { background-color: #111; padding: 4rem 0; text-align: center; overflow: hidden; }
.developers-section .section-header h2 { color: #ffffff; }
.developer-list-container { width: 100%; overflow: hidden; position: relative; }
.developer-list-container::before, .developer-list-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; }
.developer-list-container::before { left: 0; background: linear-gradient(to right, #111, transparent); }
.developer-list-container::after { right: 0; background: linear-gradient(to left, #111, transparent); }
.developer-list { display: flex; width: 200%; animation: marquee 30s linear infinite; }
.developer-list:hover { animation-play-state: paused; }
.developer-item { flex-shrink: 0; width: 200px; padding: 0 2rem; display: flex; align-items: center; justify-content: center; }
.developer-item img { max-width: 100%; height: auto; opacity: 0.7; transition: all 0.3s ease; }
.developer-item:hover img { opacity: 1; }

/* --- ABOUT US SECTION --- */
.about-us-section { background: #fff; }
.about-content-wrapper { display: flex; align-items: center; gap: 4rem; }
.about-text { flex: 1; }
.about-text h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text p { color: #555; line-height: 1.8; }
.about-image { flex: 1; }
.about-image img { width: 100%; }

/* --- REVIEWS SECTION --- */
.reviews-section { background: #f8f8f8; }
.reviews-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.review-card { background: #fff; border: 1px solid #e0e0e0; padding: 2rem; text-align: left; }
.review-stars { color: #f9c74f; margin-bottom: 1rem; font-size: 1.2rem; }
.review-quote { font-size: 1.1rem; color: #333; margin-bottom: 1.5rem; }
.review-author { display: flex; flex-direction: column; text-align: left; }
.author-name { font-weight: 600; }
.author-location { font-size: 0.9rem; color: #777; }

/* --- CONTACT SECTION --- */
.contact-section { background-color: #fff; background-image: url('img/hero-background.jpg'); background-size: cover; background-position: center bottom; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-wrapper { display: flex; gap: 3rem; background: #ffffff; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; background: #f8f8f8; padding: 1.5rem;margin-bottom: 1rem; }
.contact-info-card i { font-size: 1.2rem; color: #000; margin-top: 5px; }
.contact-info-card span { display: block; font-size: 0.9rem; color: #555; }
.contact-info-card strong { font-size: 1rem; color: #000; }
.contact-form { flex: 1.5; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form .form-row { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; font-family: 'Montserrat light', sans-serif; border: 1px solid #ccc;}
.contact-form input:focus, .contact-form textarea:focus { border-color: #333; outline: none; }
.contact-form .submit-button { width: 100%; background: #000; color: #fff; padding: 1rem; border: none;font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s; }

/* --- FOOTER --- */
.site-footer {
    background-color: #111;
    color: #aaa;
    padding: 4rem 1.5rem 2rem;
    font-size: 0.9rem;
}
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-col .logo h3 { color: #fff; margin-bottom: 1rem; }
.footer-col p { line-height: 1.7; margin-bottom: 1rem; }
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { text-decoration: none; color: #aaa; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }
.newsletter-form { display: flex; margin-top: 1rem; overflow: hidden; border: 1px solid #444; }
.newsletter-form input { width: 100%; padding: 0.8rem 1rem; border: none; background: #222; color: #fff; font-family: 'Montserrat light', sans-serif; }
.newsletter-form input:focus { outline: none; background: #333; }
.newsletter-form button { background: #fff; color: #111; border: none; padding: 0 1.2rem; font-size: 1.5rem; cursor: pointer; transition: background-color 0.3s ease; }
.newsletter-form button:hover { background-color: #ddd; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copyright p { margin: 0; color: #777; }
.footer-socials a { color: #aaa; text-decoration: none; font-size: 1.1rem; margin-left: 1rem; transition: color 0.3s ease; }
.footer-socials a:hover { color: #fff; }
.admin-login-link { color: #555; font-size: 0.8rem; text-decoration: none; transition: color 0.3s ease; }
.admin-login-link:hover { color: #888; }

/* --- RESPONSIVE STYLES --- */

/* Medium Devices (Tablets, etc.) */
@media (max-width: 992px) {
    .section-header h2, .about-text h2, .stats-header h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.4rem; }
    
    .about-content-wrapper, .contact-wrapper { flex-direction: column; gap: 2rem; }
    .about-text { text-align: center; }

    .hero-search-bar {
        flex-wrap: wrap;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
    }
    .search-bar-item {
        flex: 1 1 48%;
        margin-bottom: 8px;
        background: rgba(0, 0, 0, 0.25); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
    .search-bar-item.location-input { flex: 1 1 100%; }
    .hero-search-button {
        flex: 1 1 100%;
        width: 100%;
        height: 55px;
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Small Devices (Mobiles) */
@media (max-width: 768px) {


    .section-header h2, .about-text h2, .stats-header h2 { font-size: 2rem; }
    .stat-value { font-size: 2.5rem; }
    
    /* === FINAL MOBILE HERO FIX START === */
    .hero {
        align-items: flex-end; /* Keep search bar at the bottom */
        padding: 2rem 1rem;
    }

    .hero-content {
        width: 100%;
    }
    
    /* Hides the title and subtitle on mobile */
    .hero-content h1,
    .hero-content p {
        display: none; 
    }

    /* Stacks the search bar items vertically */
    .search-bar-item {
        flex-basis: 100%;
        width: 100%;
    }
    /* === FINAL MOBILE HERO FIX END === */

    /* --- MOBILE NAVIGATION --- */
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 22px;
    }
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 2px;
        background: #fff;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    .nav.scrolled .hamburger, .content-page .nav .hamburger { background-color: #333; }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: inherit;
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    
    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before,
    .nav-toggle.active .hamburger::after {
        background: #fff; /* Ensures 'X' is always white */
    }
    .nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

    .nav {
        padding: 1rem 5%;
        background: transparent;
        transition: background-color 0.3s ease;
    }
    .nav.menu-open:not(.scrolled) {
        background-color: #111;
    }
    
    .links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .links.active { transform: translateX(0); }
    .links ul { flex-direction: column; gap: 2rem; }
    .links a { color: #fff; font-size: 1.5rem; }
    .nav.scrolled .links a { color: #fff; } 
    
    .stats-list { flex-direction: column; }
    .stat-item { border-left: none; border-top: 1px solid #e0e0e0; padding: 1.5rem 1rem; }
    .stat-item:first-child { border-top: none; }
    
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-form .form-group { margin-bottom: 1rem; }
    
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-socials { order: -1; }

    .property-grid { grid-template-columns: 1fr; }
    .developer-item { width: 150px; padding: 0 1rem;}
}


/* --- FOOTER --- */
.site-footer {
    background-color: #111;
    color: #aaa;
    padding: 4rem 1.5rem 2rem;
    font-size: 0.9rem;
}
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-col .logo h3 { color: #fff; margin-bottom: 1rem; }
.footer-col p { line-height: 1.7; margin-bottom: 1rem; }
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { text-decoration: none; color: #aaa; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }

/* NEW STYLES FOR ADDRESS BLOCK */
.footer-address address {
    font-style: normal;
    line-height: 1.8;
}
.footer-address address a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-address address a:hover {
    color: #fff;
}
/* END OF NEW STYLES */

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copyright p { margin: 0; color: #777; }
.footer-socials a { color: #aaa; text-decoration: none; font-size: 1.1rem; margin-left: 1rem; transition: color 0.3s ease; }
.footer-socials a:hover { color: #fff; }
.admin-login-link { color: #555; font-size: 0.8rem; text-decoration: none; transition: color 0.3s ease; }
.admin-login-link:hover { color: #888; }