/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-red: #c0392b;
    --dark-grey: #2c3e50;
    --medium-grey: #34495e;
    --light-grey: #ecf0f1;
    --white: #ffffff;
    --font-logo: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    padding-top: 100px; /* Adjust based on header height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-logo);
    color: var(--dark-grey);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
}

section {
    padding: 60px 0;
}

/* --- DISCLAIMER BANNER --- */
#disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 10px 20px;
    text-align: center;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
}

#disclaimer-banner.visible {
    transform: translateY(0);
}

#disclaimer-banner p {
    margin: 0;
    padding-right: 20px;
}

#close-disclaimer {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* --- HEADER --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: top 0.4s ease-in-out;
}

#main-header.header-hidden {
    top: -120px;
}

#main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    text-align: center;
}

.logo h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.logo p {
    font-size: 0.8rem;
    margin: 0;
    font-family: var(--font-body);
}

/* --- CTA BUTTON --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #a53125;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
#hero {
    background-color: var(--white);
    text-align: center;
    padding: 80px 0;
}

#hero h2 {
    font-size: 2.8rem;
}

/* --- ABOUT & SCHEDULE SECTIONS --- */
#about, #schedule-visit, .property-schedule {
    text-align: center;
}

#about p, #schedule-visit p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- PROPERTIES SECTION --- */
#properties {
    background-color: var(--white);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1.5rem;
}

.card-content .address {
    font-style: italic;
    color: #7f8c8d;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.card-content ul li {
    margin-bottom: 5px;
}

.card-cta {
    margin: 0 20px 20px 20px;
    text-align: center;
}

/* --- DEDICATED PROPERTY PAGES --- */
.property-hero {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
}
.property-hero h2 { color: var(--white); font-size: 3rem; }
.property-details { background: var(--white); }
.property-details ul { margin-left: 20px; }
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px auto;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s;
}
.gallery a:hover img {
    opacity: 0.8;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: var(--white);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
}

.footer-disclaimer {
    border-top: 1px solid var(--medium-grey);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body { padding-top: 85px; }
    .logo h1 { font-size: 2rem; }
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    #disclaimer-banner { font-size: 0.8rem; }
}

@media (max-width: 576px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    #hero h2 { font-size: 2rem; }
}