        :root {
            --paper: #FAF8F3;
            --card: #FFFFFF;
            --ink: #201D18;
            --ink-soft: #6B6459;
            --line: #E4DDCF;
            --brass: #9C7A3C;
            --brass-deep: #74581F;
            --forest: #263B30;
            --forest-tint: #EDF1EC;
        }

        * { box-sizing: border-box; }

        body {
            font-family: 'Inter', Arial, sans-serif;
            margin: 0;
            color: var(--ink);
            background: var(--paper);
            line-height: 1.5;
        }

        h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; margin: 0; }

        a { color: var(--brass-deep); }

        .masthead {
            padding: 2.75rem 1.5rem 2rem;
            max-width: 960px;
            margin: 0 auto;
        }

        .masthead h1 {
            font-size: clamp(1.9rem, 3.4vw, 2.6rem);
            font-style: italic;
            letter-spacing: -0.01em;
        }

        .masthead .meta-line {
            margin-top: 0.6rem;
            color: var(--ink-soft);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .status-pill {
            display: inline-block;
            padding: 0.25rem 0.6rem;
            border-radius: 3px;
            font-size: 0.8rem;
            color: white;
        }

        .notice {
            max-width: 960px;
            margin: 0 auto 2rem;
            padding: 1rem 1.5rem;
            background: #FFF6E4;
            border: 1px solid #EBD8A6;
            white-space: pre-wrap;
        }

        main {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 1.5rem 4rem;
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }

        .listing {
            background: var(--card);
            border: 1px solid var(--line);
        }

        .gallery {
            position: relative;
            background: #EDEAE1;
        }

        .gallery-hero {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 10;
            border: 0;
            padding: 0;
            cursor: zoom-in;
            background: #EDEAE1;
            overflow: hidden;
        }

        .gallery-hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .gallery-hero.no-photo {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink-soft);
            font-size: 0.9rem;
            cursor: default;
        }

        .photo-count {
            position: absolute;
            right: 0.75rem;
            bottom: 0.75rem;
            background: rgba(32, 29, 24, 0.72);
            color: white;
            font-size: 0.8rem;
            padding: 0.3rem 0.6rem;
            border-radius: 3px;
        }

        .thumb-strip {
            display: flex;
            gap: 0.4rem;
            padding: 0.5rem;
            overflow-x: auto;
        }

        .thumb-strip button {
            flex: 0 0 auto;
            width: 84px;
            height: 60px;
            padding: 0;
            border: 1px solid var(--line);
            background: #EDEAE1;
            cursor: pointer;
            overflow: hidden;
        }

        .thumb-strip img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .listing-body {
            padding: 1.4rem 1.6rem 1.6rem;
        }

        .listing-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .price {
            font-family: 'Newsreader', Georgia, serif;
            font-size: 1.7rem;
        }

        .tag {
            font-size: 0.78rem;
            padding: 0.28rem 0.55rem;
            border: 1px solid var(--forest);
            color: var(--forest);
            background: var(--forest-tint);
            white-space: nowrap;
        }

        .address {
            margin-top: 0.2rem;
            color: var(--ink);
            font-size: 1.05rem;
        }

        .property-type {
            color: var(--ink-soft);
            font-size: 0.92rem;
        }

        .stats {
            display: flex;
            gap: 1.6rem;
            margin: 1.1rem 0 1rem;
            padding: 0.9rem 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            color: var(--ink);
            font-size: 0.95rem;
        }

        .stat svg { flex: 0 0 auto; }
        .stat .label { color: var(--ink-soft); font-size: 0.85rem; }

        .description {
            color: var(--ink);
            font-size: 0.97rem;
            max-width: 68ch;
        }

        .documents {
            margin-top: 1.25rem;
            display: flex;
            gap: 0.9rem 1.6rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .doc-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.9rem;
            text-decoration: none;
        }

        .doc-link.primary {
            background: var(--brass);
            color: white;
            padding: 0.55rem 0.95rem;
        }

        .doc-link.primary:hover { background: var(--brass-deep); }

        .doc-link.secondary {
            color: var(--ink);
            border-bottom: 1px solid var(--ink-soft);
            padding-bottom: 1px;
        }

        details.more {
            margin-top: 1.1rem;
        }

        details.more summary {
            cursor: pointer;
            color: var(--ink-soft);
            font-size: 0.85rem;
        }

        details.more table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0.75rem;
            font-size: 0.85rem;
        }

        details.more th, details.more td {
            border: 1px solid var(--line);
            padding: 0.5rem;
            text-align: left;
            vertical-align: top;
        }

        details.more th { background: #F4F1E9; width: 220px; }
        details.more pre { white-space: pre-wrap; margin: 0; }

        .raw-response {
            max-width: 960px;
            margin: 0 auto 3rem;
            padding: 0 1.5rem;
        }

        .raw-response pre {
            background: var(--card);
            border: 1px solid var(--line);
            padding: 1rem;
            white-space: pre-wrap;
            font-size: 0.82rem;
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(20, 18, 14, 0.94);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
            padding: 2rem;
        }

        .lightbox.open { display: flex; }

        .lightbox img {
            max-width: 100%;
            max-height: 80vh;
            display: block;
        }

        .lightbox-close, .lightbox-prev, .lightbox-next {
            position: absolute;
            background: transparent;
            border: 0;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
        }

        .lightbox-close { top: 1.2rem; right: 1.4rem; }
        .lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
        .lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

        .lightbox-caption {
            position: absolute;
            bottom: 1.5rem;
            left: 0;
            right: 0;
            text-align: center;
            color: rgba(255,255,255,0.75);
            font-size: 0.85rem;
        }

        @media (max-width: 560px) {
            .listing-body { padding: 1.1rem 1.1rem 1.3rem; }
            .stats { gap: 1.1rem; flex-wrap: wrap; }
        }
