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

body { 
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfcf8;
}

/* header */

header {
    background-color: #fff;
    color: #333;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-bottom: 1px solid #eee;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

header h1 a {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: #fff;
    text-decoration: none;
}

header p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #eaf1f3;
}

.top-bar {
    background-color: #fff;
    padding: 0.75rem 1rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    display: inline-block;
}

.logo-img {
    display: block;
    height: 90px;
    width: auto;
    max-width: 100%;
}

.site-title-header {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.site-title-header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.2;
}

.site-title-header h1 a {
    color: #345521;
    text-decoration: none;
}

.site-subtitle {
    font-size: 0.95rem;
    color: #4e7b31;
    margin: 0.1rem 0 0 0;
    line-height: 1.3;
    font-weight: 400;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.contact-link {
    color: #345521;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-link:hover {
    color: #4e7b31;
}

.contact-link i {
    font-size: 1rem;
    line-height: 1;
}

nav {
    background-color: #345521;
    padding: 0.5rem 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.3rem 0.75rem;
}

nav ul li a {
    color: #f0f4f0;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    background-color: #eaf1f3;
    color: #345521;
}

nav ul li a.active {
    background-color: #fff;
    color: #4e7b31;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* content sec */
.content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #345521;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4e7b31;
    margin: 0.5rem auto 0;
}

.page-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.page-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #345521;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    position: relative;
}

.page-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4e7b31;
    margin: 0.5rem auto 0;
}
.page-content p, .page-content ul, .page-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.page-content ul {
    list-style: disc;
    margin-left: 20px;
}
.page-content a {
    color: #4e7b31;
    text-decoration: none;
    font-weight: bold;
}
.page-content a:hover {
    text-decoration: underline;
}

/* main */
.main-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
}

/* map container */
.map-container {
    flex: 2;
    min-width: 300px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #345521;
    font-family: 'Playfair Display', serif;
}

#subdivision-map {
    width: 100%;
    height: auto;
    display: block;
}

/* svg lot */
.lot {
    stroke: #555;
    stroke-width: 1.5px;
    transition: fill 0.6s ease-in-out, transform 0.6s ease;
    cursor: pointer;
}

.lot:hover {
    stroke-width: 2.5px;
    stroke: #345521;
}

.lot.active-hover {
    stroke-width: 2.5px;
    stroke: #345521;
}

.lot.available { fill: #a8d8b9; }
.lot.reserved { fill: #fde4a4; }
.lot.sold { fill: #e8a8a8; }

/* sidebar */
.sidebar {
    flex: 1; 
    min-width: 280px;
    background-color: #ecf3ea; 
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content; 
}

.sidebar h2 {
    margin-bottom: 1.5rem;
    color: #4e7b31; 
    border-bottom: 2px solid #4e7b31;
    padding-bottom: 0.5rem;
}

#lot-details-content .placeholder {
    color: #4e7b31;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

.details-group h3 {
    font-family: 'Playfair Display', serif;
    color: #345521;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.details-group p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.details-group strong {
    color: #4e7b31;
}

.details-group .notes {
    font-size: 0.85rem;
    font-style: italic;
    color: #4e7b31;
    margin-top: 1rem;
    border-top: 1px dashed #4e7b31;
    padding-top: 0.75rem;
}

/* status */
.status {
    font-weight: bold;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
}
.status.Available { background-color: #5cb85c; }
.status.Reserved { background-color: #f0ad4e; }
.status.Sold { background-color: #d9534f; }

/* legend */
.legend {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #4e7b31;
}
.legend h4 {
    margin-bottom: 0.75rem;
    color: #4e7b31;
}
.legend div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.legend-color.available { background-color: #a8d8b9; }
.legend-color.reserved { background-color: #fde4a4; }
.legend-color.sold { background-color: #e8a8a8; }

/* gallery sec */

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* faq */
.faq-container {
    background-color: #f7fff7;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-radius: 8px;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #eaf1f3;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    transition: margin-bottom 0.3s ease;
}

.faq-item[open] {
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(74, 109, 124, 0.1);
    border-color: #d8e2e6;
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #345521;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: block;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #fdfcf8;
}

.faq-question:focus {
    outline: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) scale(1.2);
    font-weight: 700;
    color: #345521;
    transition: transform 0.3s ease, content 0.3s step-end;
}

.faq-item[open] > .faq-question::after {
    content: '-';
    transform: translateY(-50%) scale(1.2);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-answer {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #eaf1f3;
    line-height: 1.7;
    color: #444;
    font-size: 0.95rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #345521;
    font-weight: bold;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* location */
.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-embed {
    flex: 2;
    min-width: 300px;
}

.map-embed h2,
.address-details h3 {
     text-align: left;
     margin-bottom: 1rem;
     font-family: 'Playfair Display', serif;
     color: #345521;
     font-size: 1.6rem;
}

.map-embed h2::after,
.address-details h3::after {
    display: none;
}

.map-embed .location-description {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
}

.address-details {
    flex: 1;
    min-width: 250px;
}

.address-details p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
}

.address-details strong {
    color: #4e7b31;
}

/* button */

.button-link {
    display: inline-block;
    background-color: #4e7b31;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.button-link:hover {
    background-color: #345521;
    transform: translateY(-2px);
}

/* lots page */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid #ddd; 
    border-radius: 6px;
}

table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.85rem;
}

th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

td:last-child {
    white-space: normal;
}

th {
    background-color: #eeffee;
    font-weight: bold;
    color: #345521;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

.status-badge {
    font-weight: bold;
    padding: 0.2em 0.6em;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85em;
    display: inline-block;
}

.status-badge.Available { background-color: #5cb85c; }
.status-badge.Reserved { background-color: #f0ad4e; }
.status-badge.Sold { background-color: #d9534f; color: #eee}

/* contact page */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info, .loc-container {
    flex: 1;
    min-width: 280px;
}

.contact-info h3, .loc-container h3 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: #345521;
    font-size: 1.6rem;
    border-bottom: 2px solid #eaf1f3;
    padding-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #345521;
}

.contact-info a {
    color: #4e7b31;
    text-decoration: none;
}
.contact-info a:hover {
   color: #345521;
   text-decoration: none;
}

.loc-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
    display: block;
}

.table-container table tbody tr td:first-child {
    font-weight: bold;
    color: #345521;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background-color: #4e7b31;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
    display: none; 
    box-shadow: 0 4px 8px rgba(1, 27, 2, 0.2);
}

#backToTop:hover {
    background-color: #345521;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #eee;
    

}

.social-links a {
    color: #4e7b31;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    color: #345521;
    outline: none;
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75 rem;
    }

    .logo-area {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo-img {
        height: 70px;
    }

    .site-title-header h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .site-subtitle {
        text-align: center;
        font-size: 0.9rem;
    }

    header h1 a {
        font-size: 2rem;
    }

    .header-contact {
        justify-content: center;
        gap: 1rem;
    }

    .contact-link {
        font-size: 0.85rem;
    }

    .header-contact {
        order: 2; 
        align-items: center; 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 0.75rem; 
        min-width: auto; 
    }

    .contact-link {
        font-size: 0.8rem;
    }

    nav ul {
        justify-content: center;
    }
    nav ul li a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        padding-right: 2.5rem;
    }
    .faq-question::after {
        right: 1rem;
    }
    .faq-answer {
        padding: 0.5rem 1rem 1rem 1rem;
        font-size: 0.85rem;
    }
    .map-embed, .address-details {
        flex-basis: auto;
        width: 100%;
    }
    .map-embed iframe {
        height: 250px; 
    }

    table {
        min-width: 500px; 
    }
    th, td {
        padding: 6px 8px; 
        font-size: 0.8rem;
    }
    .status-badge {
        font-size: 0.75rem;
    }

    .page-content {
        padding: 1rem; /* Reduce padding */
    }

}