/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1. Make the main background Clean White (Professional Standard) */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Changed from #f9f9f9 (Gray) to White */
}

/* 2. Update Hero to use your Local Image */
.hero {
    height: 85vh; /* Slightly taller for impact */
    
    /* This adds a dark overlay (0.5 opacity) so white text stays readable */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero_banner.jpg') no-repeat center center/cover;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    
    /* Optional: Parallax effect (image stays still while scrolling) - Looks very premium */
    background-attachment: fixed; 
}


.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography & Buttons */
.highlight { color: #d4af37; /* Gold color */ }

.btn-primary {
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover { background: #d4af37; }

.btn-secondary {
    background: #d4af37;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #d4af37; }


/* Section Styling */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

.card-details { padding: 1.5rem; }
.card-details h3 { margin-bottom: 0.5rem; }
.price { color: #d4af37; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }
.btn-text { background: none; border: none; color: #2c3e50; font-weight: bold; cursor: pointer; border-bottom: 1px solid #2c3e50; }

/* Contact Form */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-info, .contact-form { flex: 1; min-width: 300px; }

.contact-info p { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
footer { background: #2c3e50; color: #fff; text-align: center; padding: 2rem 0; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu requires JS toggle, kept simple for now */
    .hero h1 { font-size: 2rem; }
}

/* --- Property Detail Page Styles --- */

.property-header {
    background: #f4f4f4;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.property-header h1 { margin-bottom: 0.5rem; }
.property-header .address { color: #666; font-size: 1.1rem; }

/* Layout Grid: 2 Columns (Content Left, Form Right) */
.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content takes 2/3, Sidebar takes 1/3 */
    gap: 2rem;
    align-items: start;
}

/* Gallery Styles */
.gallery-container { margin-bottom: 2rem; }

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease-in-out;
}

.imgs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.imgs-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}

.imgs-grid img:hover, .imgs-grid img.active-thumb {
    opacity: 1;
    border-color: #d4af37; /* Gold highlight */
}

/* Property Info */
.specs {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.specs li { display: flex; align-items: center; gap: 8px; font-weight: bold; color: #555; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin-top: 10px; }
.badge { background: #d4af37; color: white; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; vertical-align: middle; margin-left: 10px;}

/* Video Section */
.video-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sidebar Contact Form */
.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px; /* Sticks to top when scrolling */
}
.contact-card h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.w-100 { width: 100%; }
.agent-phone { text-align: center; margin-top: 1.5rem; border-top: 1px solid #eee; padding-top: 1rem; }
.agent-phone a { font-size: 1.2rem; font-weight: bold; color: #2c3e50; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .layout-grid { grid-template-columns: 1fr; } /* Stack them on mobile */
    .main-image img { height: 250px; }
}
/* --- Validation Styles --- */

/* The input box when there is an error */
.input-error {
    border-color: #e74c3c !important; /* Red border */
    background-color: #fdf0ed;
}

/* Success message styling */
#form-status.success {
    color: #27ae60;
    font-weight: bold;
    padding: 10px;
    background: #eafaf1;
    border-radius: 4px;
}

/* Error status styling */
#form-status.error {
    color: #c0392b;
    font-weight: bold;
}

/* CORRECTED Error Message Style */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;       /* CHANGED: Was -10px, now positive 5px to push it down */
    margin-bottom: 10px;
    display: block;
    text-align: left;
    font-weight: 600;      /* Added bold for better readability */
}

/* Optional: Add some breathing room to your form groups */
.form-group {
    margin-bottom: 1.5rem; /* Increases space between fields so errors fit nicely */
}