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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header Container Styles */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
    padding: 50px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: none;
}

.header-container.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container.scrolled + .hamburger {
    color: #5D5D5D;
}

/* Hamburger Menu Styles */
.hamburger {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 105;
    color: #5D5D5D;
}

.logo {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 103;
    width: 120px;
    height: auto;
}

/* Optional hover effect for logo */
.logo:hover {
    opacity: 0.8;
    cursor: pointer;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 0;
    background-color: #ffffff;
    z-index: 103;
    transition: width 0.5s;
    padding-top: 60px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow-x: hidden;
    display: block;
}

.header-container.scrolled + .hamburger + .nav-menu {
    padding-top: 110px;
}

.nav-menu a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #000000;
    display: block;
    transition: 0.3s;
    margin: 0;
    line-height: 1;
}

/* Highlight active link */
.nav-menu a.active {
    background-color: #f1f1f1;
    color: #3B3B3C;
}

.nav-menu a:hover {
    color: #f1f1f1;
}

/* Hero Section Styles */
.hero-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-text {
    position: absolute;
    bottom: 70px; /* Positioned above .hero-address */
    left: 30px; /* Matches .hero-address */
    color: #ffffff;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in;
    text-align: left;
}

.hero-text h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero-address {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #ffffff;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero-address .address-line {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.hero-address .price-line {
    font-size: 1em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Property Details Section Styles */
.property-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.details-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-item {
    font-size: 1.1em;
    color: #5D5D5D;
}

.detail-label {
    font-weight: bold;
    color: #3B3B3C;
    margin-right: 5px;
}

/* Property Content Section Styles */
.property-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

.content-container {
    display: flex;
    gap: 40px;
}

.description {
    flex: 1;
    padding: 0;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.description-wrapper {
    height: auto;
    padding: 8px 0;
}

.description p {
    font-size: 1em; /* 16px */
    color: #000000;
    line-height: 1.3;
    text-align: left;
    margin: 0;
    padding: 0 20px;
}

/* Key Features Section */
.key-features {
    margin: 0px 0 0;
    padding: 0;
    text-align: left;
    margin-left: 0;
}

.key-features h2 {
    font-family: Arial, sans-serif;
    font-size: 1em; /* 16px */
    font-weight: bold;
    color: #000000;
    margin: 0 0 4px 0 !important;
    padding: 0 20px 0 0 !important;
    white-space: nowrap;
    display: block;
    text-align: left !important;
    margin-left: 0 !important;
}

.key-features ul {
    font-family: Arial, sans-serif;
    font-size: 1em; /* 16px */
    color: #000000;
    line-height: 1.3;
    text-align: left;
    margin: 0;
    padding: 0 20px 0 40px;
    list-style-type: disc;
}

.key-features ul li {
    margin-bottom: 4px;
}

/* Sales Team Section Styles */
.sales-team {
    margin: 8px 0 0;
    padding: 0;
    text-align: left;
    margin-left: 0;
}

.sales-team h2 {
    font-size: 1em; /* 16px */
    font-weight: bold;
    color: #000000;
    margin: 0 0 4px 0 !important;
    padding: 0 20px 0 0 !important;
    white-space: nowrap;
    display: block;
    text-align: left !important;
    margin-left: 0 !important;
}

.sales-team p {
    font-size: 1.0em; /* 12.8px */
    color: #000000;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    display: block;
    text-align: left !important;
    margin-left: 0 !important;
    line-height: 1.3;
}

.content-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: auto; /* Changed to auto for flexible sizing */
    max-height: 400px; /* Optional max height */
    background-color: #f9f9f9; /* Background for empty space */
}

.main-image {
    width: 100%;
    height: 100%; /* Changed to adapt to container */
    object-fit: contain; /* Changed to show full image */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Indicates clickability for popup */
}

.thumbnail-container {
    width: 100%;
    overflow: hidden;
    display: flex !important;
    justify-content: center;
}

.thumbnail-wrapper {
    display: flex !important;
    gap: 10px;
    transition: transform 0.3s ease;
}

.thumbnail-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-image:hover {
    transform: scale(1.05);
}

/* Slideshow Arrow Styles */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    text-indent: -9999px;
}

.slideshow-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.slideshow-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.left-arrow {
    left: 10px;
}

.left-arrow::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.7)"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>');
}

.right-arrow {
    right: 10px;
}

.right-arrow::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.7)"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
}

.right-arrow:hover::before,
.left-arrow:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.9)"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
}

.left-arrow:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.9)"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>');
}

/* Contact Section Styles */
.contact-section {
    max-width: 1400px;
    padding: 20px 15px;
    text-align: left;
    margin-top: 40px;
}

.contact-section h1 {
    font-size: 3em;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.contact-section p {
    font-size: 1.3em;
    color: #5D5D5D;
    text-align: center;
}

.contact-section p:first-of-type {
    margin-bottom: 0;
}

.contact-section p:last-of-type {
    margin-bottom: 40px;
}

.contact-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-column {
    flex: 1;
}

.contact-column .form-group {
    margin-bottom: 15px;
}

.contact-column .form-group label {
    display: block;
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-column .form-group input,
.contact-column .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.contact-column .form-group input::placeholder,
.contact-column .form-group textarea::placeholder {
    color: #999999;
    font-style: italic;
    opacity: 0.8;
}

.contact-column .form-group textarea {
    resize: vertical;
    height: 80px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.submit-button {
    background-color: #3B3B3C;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #228B22;
}

/* Footer Styles */
footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

footer p {
    margin: 0;
}

.footer-links {
    margin: 0;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #e6e6e6;
}

.footer-links .instagram-icon {
    vertical-align: middle;
    width: 16px;
    height: 16px;
    transition: opacity 0.3s;
}

.footer-links a:hover .instagram-icon {
    opacity: 0.8;
}

/* Full-Screen Popup Styles */
.fullscreen-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Matches hero-overlay opacity */
    z-index: 110; /* Above hamburger (105) and other elements */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 80%; /* Reduced to leave space for title */
    object-fit: contain; /* Scales image while preserving aspect ratio */
    border-radius: 5px; /* Default for main images */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for depth */
}

.fullscreen-image.no-border {
    border-radius: 0; /* No border for floorplan images */
}

.popup-title {
    position: absolute;
    top: 5%; /* Position above the image */
    left: 5%; /* Align to the left */
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 1em; /* 16px */
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 3px;
    text-align: left;
    margin-bottom: 10px;
    z-index: 112; /* Above fullscreen-image and arrows */
    display: none; /* Hidden by default, shown via JavaScript */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff; /* Matches hero-text color */
    font-size: 30px;
    font-family: Arial, sans-serif; /* Matches body font */
    cursor: pointer;
    z-index: 111; /* Above fullscreen-image */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Matches hero-text shadow */
    transition: color 0.3s; /* Smooth hover transition */
}

.close-button:hover {
    color: #e6e6e6; /* Matches footer-links hover color */
}

/* Popup Slideshow Arrow Styles */
.popup-slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3); /* Matches slideshow-arrow */
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 111; /* Above fullscreen-image */
    transition: background-color 0.3s;
    text-indent: -9999px;
}

.popup-slideshow-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Matches slideshow-arrow hover */
}

.popup-slideshow-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.popup-left-arrow {
    left: 10px;
}

.popup-left-arrow::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.7)"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>');
}

.popup-right-arrow {
    right: 10px;
}

.popup-right-arrow::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.7)"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
}

.popup-right-arrow:hover::before,
.popup-left-arrow:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.9)"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
}

.popup-left-arrow:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.9)"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>');
}

/* Floorplan Styles */
.floorplan-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.floorplan-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.floorplan-image-container {
    max-width: 48%; /* Slightly less than 50% to account for gap */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Align title and image to the left */
}

.floorplan-image {
    width: 200%;
    height: auto;
    object-fit: contain;
    border-radius: 0; /* No border for floorplan images */
    cursor: pointer;
}

.floorplan-title {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 1.5em; /* 16px */
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 3px;
    text-align: left;
    margin-bottom: 10px; /* Space between title and image */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .details-container {
        flex-direction: column;
        gap: 10px;
    }

    .detail-item {
        font-size: 1em;
    }

    .content-container {
        flex-direction: column;
        gap: 30px;
    }

    .description {
        max-height: 400px;
        justify-content: center;
    }

    .description-wrapper {
        height: auto;
        padding: 4px 0;
    }

    .description p {
        font-size: 0.75em; /* 12px */
        padding: 0 15px;
        line-height: 1.2;
    }

    .key-features {
        margin: 6px 0 0;
        padding: 0;
        margin-left: 0;
    }

    .key-features h2 {
        font-size: 0.75em; /* 12px */
        padding: 0 15px 0 0 !important;
        margin: 0 0 4px 0 !important;
        display: block;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .key-features ul {
        font-size: 0.75em; /* 12px */
        padding: 0 15px 0 30px;
        line-height: 1.2;
    }

    .sales-team {
        margin: 6px 0 0;
        padding: 0;
        margin-left: 0;
    }

    .sales-team h2 {
        font-size: 0.75em; /* 12px */
        padding: 0 15px 0 0 !important;
        margin: 0 0 4px 0 !important;
        display: block;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .sales-team p {
        font-size: 0.7em; /* 11.2px */
        padding: 0 15px 0 0 !important;
        margin: 0 !important;
        display: block;
        text-align: left !important;
        margin-left: 0 !important;
        line-height: 1.2;
    }

    .content-images {
        max-width: 100%;
    }

    .main-image-container {
        height: auto; /* Flexible height */
        max-height: 300px; /* Optional max height */
        background-color: #f9f9f9; /* Consistent background */
    }

    .main-image {
        height: 100%; /* Scales with container */
        object-fit: contain; /* Ensure full image is visible */
    }

    .thumbnail-container {
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
    }

    .thumbnail-container::-webkit-scrollbar {
        display: none !important;
    }

    .thumbnail-wrapper {
        flex-direction: row !important;
        gap: 8px !important;
        width: max-content !important;
    }

    .thumbnail-image {
        width: 60px !important;
        height: 60px !important;
        aspect-ratio: 1 / 1;
    }

    .slideshow-arrow {
        width: 32px;
        height: 32px;
    }

    .slideshow-arrow::before {
        width: 16px;
        height: 16px;
    }

    .popup-slideshow-arrow {
        width: 32px;
        height: 32px;
    }

    .popup-slideshow-arrow::before {
        width: 16px;
        height: 16px;
    }

    .contact-section {
        padding: 15px 10px;
    }

    .contact-section h1 {
        font-size: 2.5em;
    }

    .contact-section p {
        font-size: 1.1em;
    }

    .contact-section p:last-of-type {
        margin-bottom: 30px;
    }

    .contact-columns {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 15px;
    }

    .contact-column .form-group {
        margin-bottom: 10px;
    }

    .contact-column .form-group label {
        font-size: 1em;
    }

    .contact-column .form-group input,
    .contact-column .form-group textarea {
        font-size: 0.9em;
    }

    .submit-button {
        font-size: 1em;
        padding: 10px 25px;
    }

    .submit-button:hover {
        background-color: #228B22;
    }

    /* Full-Screen Popup Responsive Adjustments */
    .fullscreen-image {
        max-width: 95%;
        max-height: 85%; /* Adjusted for title space */
    }

    .fullscreen-image.no-border {
        border-radius: 0;
    }

    .popup-title {
        font-size: 0.9em; /* 14.4px */
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .close-button {
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    /* Floorplan Responsive Adjustments */
    .floorplan-container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .floorplan-images {
        flex-direction: column;
        gap: 15px;
    }

    .floorplan-image-container {
        max-width: 100%; /* Full width on smaller screens */
    }

    .floorplan-title {
        font-size: 0.9em; /* 14.4px */
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    /* Hero Text Responsive Adjustments */
    .hero-text {
        bottom: 60px;
        left: 20px;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-address {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: auto; /* Flexible height */
        max-height: 250px; /* Optional max height */
        background-color: #f9f9f9; /* Consistent background */
    }

    .main-image {
        height: 100%; /* Scales with container */
        object-fit: contain; /* Ensure full image is visible */
    }

    .thumbnail-image {
        width: 50px !important;
        height: 50px !important;
    }

    .thumbnail-wrapper {
        gap: 6px !important;
    }

    .slideshow-arrow {
        width: 28px;
        height: 28px;
    }

    .slideshow-arrow::before {
        width: 14px;
        height: 14px;
    }

    .popup-slideshow-arrow {
        width: 28px;
        height: 28px;
    }

    .popup-slideshow-arrow::before {
        width: 14px;
        height: 14px;
    }

    /* Full-Screen Popup Responsive Adjustments */
    .fullscreen-image {
        max-width: 98%;
        max-height: 90%; /* Adjusted for title space */
    }

    .fullscreen-image.no-border {
        border-radius: 0;
    }

    .popup-title {
        font-size: 0.8em; /* 12.8px */
        padding: 5px 8px;
        margin-bottom: 6px;
    }

    .close-button {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    /* Floorplan Responsive Adjustments */
    .floorplan-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .floorplan-images {
        gap: 10px;
    }

    .floorplan-title {
        font-size: 0.8em; /* 12.8px */
        padding: 5px 8px;
        margin-bottom: 6px;
    }

    /* Hero Text Responsive Adjustments */
    .hero-text {
        bottom: 50px;
        left: 15px;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-address {
        bottom: 15px;
        left: 15px;
    }
}