/* Basic Reset & Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header & Main Nav */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 150px;
    width: auto;
}
.main-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
}
/* General Content Box Style */
.property-listing, .contact-form-section {
    background-color: #fff;
    padding: 30px 40px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
h1 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}
.button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
}
.button:hover { background-color: #0056b3; }
.section-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* --- START: CORRECTED CONTACT FORM STYLES --- */

/* Specific Contact Form Styles for the Contact Us Page */
.contact-form-section .form-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-section .form-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-section .form-right {
    flex: 1;
    display: flex;
}

.contact-form-section .form-right textarea {
    flex-grow: 1;
}

.contact-form-section .contact-form .button {
    width: 100%;
}

/* General input styling now specific to the contact page form */
.contact-form-section .contact-form input, 
.contact-form-section .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- END: CORRECTED CONTACT FORM STYLES --- */

/* Property Listing Page Specific Styles */
.property-listing { position: relative; }
.property-listing h1 { padding-right: 60px; }
.property-info { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.gallery .main-image img { width: 100%; border-radius: 8px; }
.thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 15px; }
.thumbnails .thumbnail { width: 100%; border-radius: 5px; cursor: pointer; border: 2px solid transparent; }
.details table { width: 100%; border-collapse: collapse; }
.details td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.details td:first-child { font-weight: bold; }
.description { margin-top: 40px; border-top: 1px solid #e0e0e0; padding-top: 30px; }

/* This rule from the original file is important for the property page form */
.inquiry-form input, .inquiry-form textarea {
    width: 100%; 
    box-sizing: border-box; 
    padding: 12px;
    margin-bottom: 15px; 
    border: 1px solid #ccc; 
    border-radius: 5px;
}
.inquiry-form h3 { margin-top: 30px; margin-bottom: 15px; }

/* Property Includes & Location Map */
.property-includes { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e0e0e0; }
.property-includes ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; list-style-position: inside; padding-left: 0; }
.property-includes li { margin-bottom: 8px; }
.location-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e0e0e0; }
.map-container { margin-top: 15px; border-radius: 8px; overflow: hidden; }

/* Favorite Button Position */
.favorite-button { position: absolute; top: 30px; right: 40px; background: #f0f0f0; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; transition: transform 0.2s; }
.favorite-button:hover { transform: scale(1.1); }
.favorite-button svg { stroke: #333; fill: none; width: 22px; height: 22px; }
.favorite-button.active svg { fill: #ff4d4d; stroke: #ff4d4d; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 15px; }
    .main-nav { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; border-top: 1px solid #f0f0f0; padding-top: 15px; }
    .main-nav a { margin: 5px 10px; }
    .property-info { grid-template-columns: 1fr; }
    .favorite-button { top: 25px; right: 20px; }

    /* Make form columns stack on mobile */
    .contact-form-section .form-columns {
        flex-direction: column;
    }
}