/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-blue: #1a2a44;
    --accent-brown: #8c7355;
    --text-dark: #2d2d2d;
    --text-light: #5c5c5c;
    --bg-light: #f9f7f4;
    --white: #ffffff;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans-font);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navigation */
header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.logo {
    text-align: center;
}


.logo img {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    padding: 0;
    margin: 0;
    z-index: 1100;
}


.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--accent-brown); }

.contact-btn-header {
    padding: 0.8rem 2.2rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-blue);
    white-space: nowrap;
}

.contact-btn-header:hover {
    background: transparent;
    color: var(--primary-blue);
}

/* Mobile Menu Toggle - HIDDEN on desktop */
.menu-toggle {
    display: none; /* Completely hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s;
}

/* Hero Slider */
.hero {
    margin-top: 85px;
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-slider { width: 100%; height: 100%; }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    padding: 0 20px;
}

.slide-content .subtitle {
    font-family: var(--sans-font);
    font-size: 0.9rem;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    color: var(--accent-brown);
    text-transform: uppercase;
}

.slide-content h1 {
    font-family: var(--serif-font);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    max-width: 900px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { background: var(--accent-brown); transform: scale(1.2); }

/* Welcome Section */
.welcome {
    padding: 8rem 0;
    background: var(--bg-light);
    text-align: center;
}

.welcome h2 {
    font-family: var(--serif-font);
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.welcome p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 300;
}

/* Properties Section */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 6rem 0;
}

.title-line { height: 1px; background: var(--accent-brown); flex: 1; max-width: 200px; opacity: 0.3; }

.section-location-title {
    font-family: var(--serif-font);
    font-style: italic;
    color: var(--primary-blue);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.property-row {
    display: flex;
    min-height: 600px;
    margin-bottom: 6rem;
}

.property-row.reverse { flex-direction: row-reverse; }

.property-image-side {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    min-height: 450px;
}

.property-info-side {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.loc-sub {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-brown);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.property-info-side h3 {
    font-family: var(--sans-font); /* Matches the old sub-label font */
    font-size: 1.6rem;            /* Matches sub-label size */
    letter-spacing: 3px;          /* Matches sub-label spacing */
    color: var(--accent-brown);   /* Matches sub-label color */
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.property-description {
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.learn-more-btn {
    align-self: flex-start;
    padding: 15px 35px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.learn-more-btn:hover { background: var(--primary-blue); color: var(--white); }

/* Divider */
.home-divider {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-light);
    font-family: var(--serif-font);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary-blue);
    border-top: 1px solid #eee;
}

/* Contact */
.contact { 
    padding: 8rem 0;
    text-align: center; 
    background-color: var(--white);
}

.contact h2 { 
    font-family: var(--serif-font); 
    font-size: 3.5rem;
    color: var(--primary-blue); 
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.contact p { 
    font-family: var(--sans-font);
    font-size: 1rem; 
    letter-spacing: 1px;
    margin-bottom: 3.5rem; 
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-family: var(--sans-font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--primary-blue);
}

.contact-btn:hover { 
    background: transparent;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 42, 68, 0.1);
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 30px; right: 30px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Property Page Specifics */
.prop-hero {
    height: 70vh;
    margin-top: 85px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.prop-hero-content {
    z-index: 10;
    color: var(--white);
}

.prop-hero-content h1 {
    font-family: var(--serif-font);
    font-size: 4.5rem;
    font-weight: 400;
}

/* Amenities */
.amenities {
    padding: 6rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
}

.amenities-wrapper {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.amenity-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
}

.amenity-value {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    color: var(--primary-blue);
}

/* Gallery */
.property-gallery {
    padding: 8rem 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.masonry-item {
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item.large { grid-column: span 2; grid-row: span 2; }
.masonry-item.tall { grid-row: span 2; }
.masonry-item.wide { grid-column: span 2; }

/* ============================================
   TABLET BREAKPOINT (992px and below)
   ============================================ */
@media (max-width: 992px) {
    .container { padding: 0 30px; }
    
    .navbar { padding: 1rem 2rem; }
    
    .nav-menu { gap: 2rem; }
    
    .logo img { height: 60px; }
    
    .slide-content h1 { font-size: 3rem; }
    
    .welcome { padding: 6rem 0; }
    .welcome h2 { font-size: 2.2rem; }
    
    .property-row, .property-row.reverse { 
        flex-direction: column;
        min-height: auto;
    }
    
    .property-image-side { 
        min-height: 400px;
        aspect-ratio: 16/9;
    }
    
    .property-info-side { padding: 3rem 2rem; }
    
    .contact { padding: 6rem 0; }
    .contact h2 { font-size: 2.5rem; }
    
    .prop-hero-content h1 { font-size: 3rem; }
    
    .masonry-grid { 
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

/* ============================================
   MOBILE BREAKPOINT (768px and below)
   ============================================ */
@media (max-width: 768px) {
@media (max-width: 768px) {
    .navbar { 
        padding: 1rem 1.5rem;
        display: grid;
        /* Create 3 columns: Burger | Logo | Spacer */
        grid-template-columns: 50px 1fr 50px; 
        align-items: center;
    }
    
    .menu-toggle {
        display: flex; 
        position: relative; /* Remove absolute positioning */
        left: 0; 
        top: 0;
        transform: none;
        grid-column: 1; /* Force to first column */
        z-index: 1101;
    }

    .nav-right .contact-btn-header {
    display: none; /* Removes the clipped button from the header flow */
}
    
    /* Ensure the logo container stays in the middle column */
    .logo {
        grid-column: 2;
        justify-self: center;
    }
    
    .logo img { height: 45px; }

    /* Hide the desktop containers but NOT the menu inside */
    .nav-left, .nav-right {
        display: contents; /* This lets children (the menu) ignore the hidden parent container */
    }

    /* Target the links specifically to hide them, but keep the menu visible */
    .nav-left .nav-menu li:not(.mobile-visible) {
        display: none; 
    }

    /* Fixed Mobile Menu Logic */
    .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        flex-direction: column;
        background: var(--white);
        border-top: 1px solid #eee;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1100;
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu li {
        display: block !important; /* Force items to show when menu is active */
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        border-bottom: 1px solid #f8f8f8;
    }
}
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    /* Contact button inside mobile menu */
    .nav-menu li a.contact-btn-header {
        display: inline-block;
        width: auto;
        padding: 0.8rem 2rem;
        margin: 0.5rem 0;
    }
    
    .hero {
        height: 60vh;
        margin-top: 70px;
    }
    
    .slide-content h1 { font-size: 2rem; }
    .slide-content .subtitle { font-size: 0.75rem; letter-spacing: 3px; }
    
    .welcome { padding: 4rem 0; }
    .welcome h2 { font-size: 1.8rem; }
    .welcome p { font-size: 1rem; }
    
    .section-title-wrapper { margin: 4rem 0; }
    .section-location-title { font-size: 1.4rem; }
    
    .property-image-side { 
        min-height: 300px;
    }
    
    .property-info-side { padding: 2rem 1.5rem; }
    .property-info-side h3 { font-size: 1.8rem; }
    
    .home-divider { 
        padding: 4rem 0;
        font-size: 1.2rem;
    }
    
    .contact { padding: 4rem 0; }
    .contact h2 { font-size: 2rem; }
    .contact p { font-size: 0.9rem; }
    
    .contact-btn { 
        padding: 1rem 2rem;
        font-size: 0.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .prop-hero { height: 50vh; }
    .prop-hero-content h1 { font-size: 2rem; }
    
    .amenities { padding: 4rem 0; }
    .amenities-wrapper { 
        flex-direction: column;
        gap: 2rem;
    }
    
    .property-gallery { padding: 4rem 0; }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .masonry-item.large,
    .masonry-item.tall,
    .masonry-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    
    .slide-content h1 { font-size: 1.5rem; }
    
    .welcome h2 { font-size: 1.5rem; }
    
    .property-info-side h3 { font-size: 1.5rem; }
    
    .contact h2 { font-size: 1.6rem; }
    
    .prop-hero-content h1 { font-size: 1.6rem; }
}

/* Clean Grid & Stylized Section Styles */
.property-details-section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-light); /* Slight contrast for different house areas */
}

.section-header-styled {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-styled .sub-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-header-styled h2 {
    font-family: var(--serif-font);
    font-size: 2.8rem;
    color: var(--primary-blue);
}

.styled-line {
    width: 60px;
    height: 2px;
    background: var(--accent-brown);
    margin: 1.5rem auto 0;
}

/* The Clean Uniform Grid */
.clean-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row like the reference */
    gap: 30px;
}

.grid-image-item {
    width: 100%;
    aspect-ratio: 4 / 3; /* Keeps all images the same size regardless of original crop */
    overflow: hidden;
}

.grid-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key to no "weird shapes" */
    display: block;
}

.property-description {
    text-align: justify;
    hyphens: auto; /* Ensures clean edges on mobile */
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 400;
}

/* Ensure the last paragraph doesn't add extra space above the button */
.property-description:last-of-type {
    margin-bottom: 2.5rem; 
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 4rem auto !important;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.contact-card {
    padding: 2.5rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-brown);
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 1rem;
}

.contact-link, .contact-text {
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-btn.small {
    padding: 0.8rem 1.5rem;
    font-size: 0.7rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Uniform Grid */
@media (max-width: 768px) {
    .clean-image-grid {
        grid-template-columns: 1fr; /* 1 large image per row on phones */
        gap: 20px;
    }
    
    .section-header-styled h2 {
        font-size: 2rem;
    }
}