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

:root {
    --cherry-dark: #8B1538;
    --cherry-primary: #A0203A;
    --cherry-light: #C41E3A;
    --farm-green: #6B8E6B;
    --farm-brown: #8B6F47;
    --farm-cream: #FAF8F3;
    --farm-warm: #FFF8F0;
    --text-dark: #3E2723;
    --text-medium: #5D4037;
    --white: #ffffff;
    --border-color: #E8DCC6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--farm-warm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Hero Combined */
header.hero {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(139, 21, 56, 0.2);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.75) 0%, rgba(160, 32, 58, 0.65) 50%, rgba(196, 30, 58, 0.6) 100%);
    z-index: 1;
}

header.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}

header.hero .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header.hero .hero-content .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header.hero .hero-content .subtitle .address-link {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

header.hero .hero-content .subtitle .address-link:hover {
    opacity: 1;
    text-decoration: underline;
}

header.hero .hero-content .hero-text {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-top: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Property Stats Section */
.property-stats {
    padding: 2rem 0;
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
}

.price-display {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cherry-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--farm-cream);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.15);
    border-color: var(--cherry-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cherry-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Property Description Section */
.property-description {
    padding: 3rem 0;
    background-color: var(--white);
}

.property-description .container {
    max-width: 800px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.description-section {
    margin-bottom: 2.5rem;
}

.description-section h3 {
    font-size: 1.5rem;
    color: var(--cherry-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.feature-list,
.amenity-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li,
.amenity-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cherry-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.amenity-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--farm-green);
    font-weight: bold;
    font-size: 1.5rem;
}

.highlight-box {
    background-color: var(--farm-cream);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--cherry-primary);
    margin-top: 2rem;
}

.closing-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--cherry-primary) 0%, var(--cherry-light) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 21, 56, 0.5);
    background: linear-gradient(135deg, var(--cherry-light) 0%, var(--cherry-primary) 100%);
}

.floating-cta-icon {
    font-size: 1.25rem;
}

.floating-cta-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .floating-cta-text {
        display: none;
    }

    .floating-cta-icon {
        font-size: 1.5rem;
    }
}

/* Gallery Section */
.gallery {
    padding: 3rem 0;
    background-color: var(--farm-cream);
}

.gallery h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--cherry-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.15);
    aspect-ratio: 4 / 3;
    background-color: var(--farm-warm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.25);
    border-color: var(--cherry-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Fallback for missing images */
.gallery-item img[src=""],
.gallery-item:has(img[src=""]) {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img[src=""]::after {
    content: "📷 Image";
    color: #999;
    font-size: 1rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-note {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Neighborhood Info Section */
.neighborhood-info {
    padding: 3rem 0;
    background-color: var(--white);
}

.neighborhood-info h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--cherry-primary);
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.neighborhood-section {
    background-color: var(--farm-cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.neighborhood-section h3 {
    font-size: 1.3rem;
    color: var(--cherry-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.neighborhood-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.neighborhood-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.neighborhood-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--farm-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.neighborhood-list a {
    color: var(--cherry-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.neighborhood-list a:hover {
    color: var(--cherry-light);
    text-decoration: underline;
}

/* Open House Popup Styles */
.open-house-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.open-house-content {
    background: linear-gradient(135deg, var(--cherry-dark) 0%, var(--cherry-primary) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.open-house-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.open-house-close:hover {
    color: var(--cherry-light);
    opacity: 1;
}

.open-house-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.open-house-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.open-house-details {
    margin-bottom: 2rem;
}

.open-house-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cherry-light);
}

.open-house-time {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.open-house-address {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.open-house-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.open-house-btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.open-house-btn-primary {
    background-color: var(--white);
    color: var(--cherry-primary);
}

.open-house-btn-primary:hover {
    background-color: var(--cherry-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.open-house-btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.open-house-btn-secondary:hover {
    background-color: var(--white);
    color: var(--cherry-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .open-house-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .open-house-content h2 {
        font-size: 1.75rem;
    }

    .open-house-date {
        font-size: 1.3rem;
    }

    .open-house-time {
        font-size: 1.1rem;
    }

    .open-house-cta-buttons {
        flex-direction: column;
    }

    .open-house-btn {
        width: 100%;
        text-align: center;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--cherry-light);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    max-width: 90%;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        bottom: 15px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Contact Section */
.contact {
    padding: 3rem 0;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--cherry-primary);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--farm-cream);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(139, 21, 56, 0.2);
    border-color: var(--cherry-light);
}

.contact-item h3 {
    font-size: 1.5rem;
    color: var(--cherry-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-item a {
    color: var(--cherry-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--cherry-light);
    text-decoration: underline;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: normal;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
}

/* Property Info Section */
.property-info {
    padding: 3rem 0;
    background-color: var(--farm-cream);
}

.property-info h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--cherry-primary);
}

.property-info > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.listing-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.listing-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2rem;
    background-color: var(--white);
    color: var(--cherry-primary);
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.15);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
}

.listing-link:hover {
    background-color: var(--cherry-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
    border-color: var(--cherry-primary);
}

.link-icon {
    font-size: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--cherry-dark) 0%, var(--cherry-primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(107, 142, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--cherry-light);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--cherry-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--cherry-primary);
    transform: translateY(-2px);
}

/* Social Sharing Section */
.social-sharing {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-sharing h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn.facebook:hover {
    background-color: rgba(24, 119, 242, 0.3);
}

.social-btn.twitter:hover {
    background-color: rgba(29, 161, 242, 0.3);
}

.social-btn.email:hover,
.social-btn.sms:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .social-btn span {
        display: none;
    }

    .social-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Footer */
footer {
    background-color: var(--cherry-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header.hero {
        min-height: 50vh;
    }

    header.hero .hero-content {
        padding: 1.5rem 0;
    }

    header.hero .hero-content h1 {
        font-size: 1.75rem;
    }

    header.hero .hero-content .subtitle {
        font-size: 0.95rem;
    }

    header.hero .hero-content .hero-text {
        font-size: 1rem;
    }

    .price-display {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .neighborhood-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .neighborhood-section {
        padding: 1.25rem;
    }

    .property-description {
        padding: 2rem 0;
    }

    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .description-section {
        margin-bottom: 2rem;
    }

    .description-section h3 {
        font-size: 1.3rem;
    }

    .description-section p {
        font-size: 1rem;
    }

    .feature-list li,
    .amenity-list li {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .listing-links {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-link {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header.hero {
        min-height: 45vh;
    }

    header.hero .hero-content {
        padding: 1.25rem 0;
    }

    header.hero .hero-content h1 {
        font-size: 1.5rem;
    }

    header.hero .hero-content .subtitle {
        font-size: 0.85rem;
    }

    header.hero .hero-content .hero-text {
        font-size: 0.9rem;
    }

    .gallery,
    .contact,
    .property-info,
    .cta {
        padding: 2rem 0;
    }

    .gallery h2,
    .contact h2,
    .property-info h2,
    .cta h2 {
        font-size: 1.5rem;
    }

    .price-display {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

