        :root {
            --primary-red: #B83A3A;
            --dull-blue: #3A6AB8;
            --secondary-grey: #6B7280;
            --dark-charcoal: #1F2937;
            --warm-cream: #F9F7F2;
            --wood-tone: #C9A77C;
            --light-grey: #E5E7EB;
            --white: #FFFFFF;
            --text-dark: #111827;
        }

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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--warm-cream);
        }

        /* Navigation */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

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

        .logo {
            height: 60px;
            width: auto;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark-charcoal);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
        }

        .nav-links a:hover {
            color: var(--primary-red);
        }

        .phone-btn {
            background-color: var(--dull-blue);
            color: var(--white) !important;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            font-weight: 600;
        }

        .mobile-menu {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background-color: var(--dark-charcoal);
            transition: 0.3s;
        }

        /* Hero Section - Adapted for listings */
        .hero {
            margin-top: 80px;
            height: 50vh;
            min-height: 400px;
            background: linear-gradient(rgba(31, 41, 55, 0.6), rgba(31, 41, 55, 0.6)),
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23C9A77C" width="1200" height="600"/><path fill="%23B83A3A" opacity="0.2" d="M0 300Q400 200 800 300T1200 300V600H0Z"/></svg>') center/cover;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 800px;
            padding: 2rem;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            font-weight: 300;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-family: Georgia, serif;
        }

        .hero-subtitle {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .cta-button {
            display: inline-block;
            background-color: var(--dull-blue);
            color: var(--white);
            padding: 1rem 2.5rem;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 600;
            letter-spacing: 1px;
            transition: all 0.3s;
            border: 2px solid var(--dull-blue);
        }

        .cta-button:hover {
            background-color: transparent;
            color: var(--white);
        }

        /* Search/Filter Bar */
        .search-bar {
            background-color: var(--white);
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 80px;
            z-index: 100;
        }

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

        .search-input {
            padding: 0.75rem 1.5rem;
            border: 1px solid var(--light-grey);
            border-radius: 4px;
            font-size: 1rem;
            flex: 1;
            min-width: 250px;
            max-width: 400px;
        }

        .filter-select {
            padding: 0.75rem 1rem;
            border: 1px solid var(--light-grey);
            border-radius: 4px;
            background-color: var(--white);
            font-size: 1rem;
        }

        .filter-btn {
            background-color: var(--primary-red);
            color: var(--white);
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
        }

        .filter-btn:hover {
            background-color: #9F2E2E;
        }

        /* Listings Grid */
        .listings {
            padding: 5rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 2.5rem;
            color: var(--dark-charcoal);
            margin-bottom: 1rem;
            text-align: center;
            font-family: Georgia, serif;
            font-weight: 400;
            position: relative;
            padding-bottom: 1rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary-red);
        }

        .section-subtitle {
            text-align: center;
            color: var(--secondary-grey);
            margin-bottom: 3rem;
            font-size: 1.1rem;
        }

        .stats-bar {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            color: var(--primary-red);
            font-weight: 700;
            font-family: Georgia, serif;
            display: block;
        }

        .stat-label {
            color: var(--secondary-grey);
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .listings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .listing-card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
        }

        .listing-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .listing-image {
            height: 220px;
            position: relative;
            overflow: hidden;
        }

        .listing-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;  /* Changed from 'cover' to 'contain' */
    background-color: #f5f5f5; /* Light gray background for letterboxing */
}

        .listing-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(184,58,58,0.3), rgba(201,167,124,0.2));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .listing-card:hover .listing-image::before {
            opacity: 1;
        }

        .listing-image-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--wood-tone), #D4AF37);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.9);
            font-family: Georgia, serif;
            font-size: 1.1rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .listing-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background-color: var(--primary-red);
            color: var(--white);
            padding: 0.4rem 0.8rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-radius: 4px;
        }

        .listing-badge.pending {
            background-color: var(--wood-tone);
        }

        .listing-info {
            padding: 1.5rem;
        }

        .listing-price {
            font-size: 1.4rem;
            color: var(--primary-red);
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .listing-title {
            font-size: 1.2rem;
            color: var(--dark-charcoal);
            margin-bottom: 0.5rem;
            font-family: Georgia, serif;
            font-weight: 600;
        }

        .listing-location {
            color: var(--secondary-grey);
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .listing-details {
            display: flex;
            gap: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--light-grey);
            font-size: 0.85rem;
            color: var(--secondary-grey);
            flex-wrap: wrap;
        }

        .listing-cta {
            margin-top: 1rem;
            text-align: center;
        }

        .view-details {
            color: var(--primary-red);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .view-details:hover {
            color: #9F2E2E;
        }

        /* Footer - Same as main page */
        footer {
            background-color: var(--dark-charcoal);
            color: var(--white);
            padding: 3rem 2rem 1rem;
            text-align: center;
            margin-top: 5rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-logo {
            height: 80px;
            margin-bottom: 2rem;
            filter: brightness(0) invert(1);
        }

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

        .footer-links a {
            color: var(--wood-tone);
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary-red);
        }

        .social-links {
            margin: 2rem 0;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background-color: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background-color: var(--primary-red);
            transform: translateY(-3px);
        }

        .copyright {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            margin-top: 2rem;
            color: #6B7280;
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background-color: var(--white);
                flex-direction: column;
                padding: 2rem;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                gap: 1.5rem;
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu {
                display: flex;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .search-container {
                flex-direction: column;
                align-items: stretch;
            }

            .search-input {
                min-width: auto;
            }

            .stats-bar {
                gap: 2rem;
            }

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

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

            .hero h1 {
                font-size: 2rem;
            }

            .listings {
                padding: 3rem 1rem;
            }

            .stats-bar {
                flex-direction: column;
                gap: 1.5rem;
            }
        }

        /* Print Styles */
        @media print {
            header, .search-bar, footer, .stats-bar, .listing-cta {
                display: none !important;
            }

            body {
                background-color: white;
                color: black;
            }

            .listings {
                padding: 1rem;
                max-width: none;
            }

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

            .listing-card {
                box-shadow: none;
                border: 1px solid #ccc;
                page-break-inside: avoid;
            }

            .listing-image {
                height: 150px;
            }

            .section-title {
                page-break-after: avoid;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .listing-card {
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .listing-card:nth-child(odd) { animation-delay: 0.1s; }
        .listing-card:nth-child(2n) { animation-delay: 0.2s; }
        .listing-card:nth-child(3n) { animation-delay: 0.3s; }
