:root{--ink:#30271f;--paper:#f7f1e5;--rdr2map: #d3b790;--cream:#ede3d1;--line:#d4c5ad;--wine:#722f28;--gold:#ba9554;--bs-primary:#722f28;--bs-body-color:#30271f;--bs-body-bg:#ede3d1;--bs-border-color:#d4c5ad}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;background:var(--cream);color:var(--ink)}
a{color:var(--wine);text-underline-offset:3px}a:hover{color:#471914}
.top-rule{height:7px;background:var(--gold);border-bottom:2px solid #2d241c}
.masthead{background:#27241e;color:#f5ead5;border-bottom:4px double #ae8b53;padding:24px 0}
.page-width{max-width:1440px;padding-left:36px;padding-right:36px}
.brand{color:#f5ead5;text-decoration:none;display:flex;align-items:center;gap:17px;font:700 clamp(20px,2vw,28px)/1.2 Georgia,serif;letter-spacing:.01em;width:fit-content}.brand:hover{color:white}.brand small{display:block;font:600 12px/1.5 system-ui,sans-serif;letter-spacing:.19em;color:#c1aa80;margin-top:7px}.brand-seal{border:3px double #bb9b61;width:53px;height:57px;display:grid;place-items:center;color:#d7b36e;font-size:36px;flex-shrink:0}
.masthead nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:25px}.masthead nav a,.nav-button{font-size:14px;color:#e8dac0;text-decoration:none}.masthead nav a:hover,.nav-button:hover{color:#fff;text-decoration:underline}.staff-link{margin-left:auto}.nav-button{background:none;border:0;padding:0}
.staff-strip{font-size:12px;letter-spacing:.14em;color:#765f42;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:24px;display:flex;justify-content:space-between;gap:15px}.staff-strip span{letter-spacing:0;font-size:14px}
.eyebrow{font-size:12px;font-weight:750;letter-spacing:.17em;color:#7c5938;margin-bottom:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 28px}h1,h2,h3{font-family:Georgia,"Times New Roman",serif}h1{font-size:clamp(32px,4vw,48px);font-weight:700;letter-spacing:-.035em;margin-bottom:12px}h2{font-size:27px;margin-bottom:20px;font-weight:700}.muted{color:#756752}.page-heading .muted{margin-bottom:0;max-width:850px}
.btn{border-radius:3px;font-weight:600;font-size:14px;padding:11px 18px}.btn-primary{--bs-btn-bg:#722f28;--bs-btn-border-color:#722f28;--bs-btn-hover-bg:#54231e;--bs-btn-hover-border-color:#54231e;--bs-btn-active-bg:#54231e;--bs-btn-active-border-color:#54231e;--bs-btn-disabled-bg:#722f28;--bs-btn-disabled-border-color:#722f28}.btn-outline-dark{--bs-btn-color:#463628;--bs-btn-border-color:#a38b6f;--bs-btn-hover-bg:#463628;--bs-btn-hover-border-color:#463628}.btn-sm{padding:5px 10px}
.form-label{font-size:14px;font-weight:650;color:#534430}.form-control,.form-select{border-radius:3px;background-color:#fffcf5;border-color:#bfae94;min-height:43px;font-size:16px}.form-control:focus,.form-select:focus{background:#fffdf8;border-color:#987641;box-shadow:0 0 0 .2rem #ba955433}.form-check-input:checked{background-color:#722f28;border-color:#722f28}.filter-bar{margin:0 0 27px;padding:10px 8px 24px;background:#e4d7c1;border-top:1px solid #cdbb9e;border-bottom:1px solid #cdbb9e}.filter-bar .mb-3{margin-bottom:0!important}
.paper{background:var(--paper);border:1px solid var(--line);border-radius:3px;box-shadow:0 3px 0 #d8cab5}.table{--bs-table-bg:transparent;--bs-table-color:var(--ink);--bs-table-border-color:#ded2bf;margin-bottom:0;min-width:720px}.table thead{background:#e9decb}.table th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#715c40;padding:17px 14px;white-space:nowrap}.table td{padding:17px 14px;font-size:14px}.numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.property-link{font-size:16px;font-weight:650;text-decoration:none}
.status{font-size:12px;font-weight:700;letter-spacing:.035em;display:inline-block;padding:5px 9px;border:1px solid;border-radius:2px;white-space:nowrap}.status-available{color:#23533d;background:#e1ebdb;border-color:#acc0a0}.status-owned{color:#792c28;background:#f0ddd4;border-color:#d1a299}.status-reserved{color:#755017;background:#f1e6c7;border-color:#cbb984}.status-benefactor{color:#594168;background:#e9e0ea;border-color:#bcb0c3}.status-unavailable{color:#56534d;background:#e4e0d8;border-color:#beb6a7}
.listing-card{height:100%;padding:27px;background:var(--paper);border:1px solid #cfbea2;border-top:4px solid #876741;display:flex;flex-direction:column;box-shadow:0 4px 0 #d8cab5;position:relative}.listing-top{display:flex;justify-content:space-between;padding-bottom:17px;margin-bottom:24px;border-bottom:1px solid var(--line);font:italic 16px Georgia,serif;color:#765c3f}.listing-card h2{font-size:29px;line-height:1.2;margin-bottom:17px}.listing-description{color:#756752;font-size:15px;white-space:normal;overflow-wrap:anywhere;flex:1}.listing-price{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:27px}.listing-price strong{font:700 29px Georgia,serif;font-variant-numeric:tabular-nums}.listing-tax{border-top:1px dashed #bfad91;margin-top:20px;padding-top:14px;font-size:14px;display:flex;justify-content:space-between;color:#756752}.listing-tax span{color:var(--ink);font-weight:600}
.empty-state{padding:60px 24px;text-align:center;border:1px dashed #bda987}.ledger-totals{display:grid;grid-template-columns:1fr auto;gap:14px;font-size:15px}.ledger-totals dt{font-weight:500}.ledger-totals dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:650}.balance{font-size:22px;color:var(--wine)}details summary{cursor:pointer;font-weight:650}details summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.sale-history{padding:18px;background:#ede4d4;border:1px solid #d7c6aa}.audit-event{border-bottom:1px solid #d7c6aa;padding:22px 0}.audit-event:first-child{padding-top:0}.audit-event:last-child{border-bottom:0}.audit-event time{font-size:14px;color:#756752}pre{padding:15px;background:#e9dfcf;font-size:13px;max-height:450px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px}.type-name{width:auto;min-width:150px}.map-picker{height:380px;border:1px solid #ad9673;background:#cfc3a7}.county-map{height:68vh;min-height:420px;border:1px solid #ad9673;background:#cfc3a7}.map-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:15px;margin-bottom:20px;font-size:14px}.leaflet-container{font:14px system-ui,sans-serif}.leaflet-popup-content{min-width:190px}.leaflet-popup-content p{margin:12px 0}.leaflet-popup-content strong{font:700 20px Georgia,serif}.leaflet-control-attribution{font-size:12px!important}
.page-footer{margin-top:55px;border-top:3px double #b7a07a;padding:24px 0;display:flex;justify-content:space-between;gap:16px;font:600 12px system-ui,sans-serif;letter-spacing:.12em;color:#806c4e}.page-footer span{font-weight:400;letter-spacing:0;font-size:13px}
@media(max-width:767px){.page-width{padding-left:18px;padding-right:18px}.masthead{padding:20px 0}.brand{font-size:21px}.brand small{font-size:10px;letter-spacing:.12em}.masthead nav{gap:15px}.staff-link{margin-left:0}.listing-card{padding:22px}.staff-strip,.page-footer{flex-direction:column}.paper.p-4{padding:19px!important}.map-picker{height:310px}.county-map{min-height:380px}h1{font-size:36px}.filter-bar{padding-left:0;padding-right:0}.listing-description{font-size:16px}}

.house-popup h2{font-size:23px;margin:0 0 8px}.house-popup-meta{font-size:13px;color:#756752}.house-popup-data{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:16px 0;font-size:14px}.house-popup-data dt{font-weight:500}.house-popup-data dd{margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.house-popup-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.house-popup-links{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid #d4c5ad;margin-top:16px;padding-top:14px}.house-popup section{margin-top:14px}.house-popup section strong{font-family:inherit;font-size:14px}

.public-atlas{margin:0;overflow:hidden;background:var(--rdr2map);}.public-county-map{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;background:#cfc3a7}.atlas-title{position:fixed;top:22px;left:22px;z-index:1000;padding:17px 22px;background:#27241ef2;color:#f5ead5;border:1px solid #ad8b53;border-top:4px solid #ba9554;max-width:calc(100vw - 200px);box-shadow:0 4px 18px #0003}.atlas-title .eyebrow{color:#d8ba7b;font-size:11px}.atlas-title h1{font-size:25px;margin:5px 0 10px;letter-spacing:-.02em}.atlas-title a{color:#e9d4aa;font-size:14px}.atlas-signin{position:fixed;right:22px;top:22px;z-index:1000;padding:12px 18px;background:#722f28;color:#fff6e5;border:1px solid #b18b58;text-decoration:none;font-size:14px;font-weight:650;box-shadow:0 4px 18px #0003}.atlas-signin:hover{background:#54231e;color:white}.atlas-message{position:fixed;bottom:45px;left:70px;right:22px;z-index:1000;background:#f7f1e5f2;border:1px solid #ad8b53;padding:12px 16px;width:fit-content;max-width:650px;font-size:14px}.public-atlas .leaflet-popup-content-wrapper{background:#f7f1e5;color:#30271f}.public-atlas .leaflet-popup-tip{background:#f7f1e5}.public-atlas .leaflet-control-attribution{max-width:80vw;white-space:normal}
@media(max-width:600px){.atlas-title{top:12px;left:12px;padding:12px;max-width:calc(100vw - 140px)}.atlas-title h1{font-size:19px;margin:3px 0 7px}.atlas-title .eyebrow{font-size:10px}.atlas-signin{right:12px;top:12px;padding:10px 12px;font-size:13px}.atlas-message{left:12px;bottom:85px;right:12px;max-width:calc(100vw - 24px)}}

/* Photo cards and original vector property markers. */
.housing-pin-wrap{background:none;border:0}.housing-pin{display:grid;place-items:center;width:28px;height:28px;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 5px #0006;color:white}.housing-pin svg{width:16px;height:16px;fill:currentColor}.housing-pin-wrap:focus-visible{outline:3px solid #ff9b43;border-radius:50%;outline-offset:3px}
.housing-card-popup .leaflet-popup-content-wrapper{background:#202226!important;color:#f5f0e5!important;border-radius:16px;padding:0;overflow:hidden;box-shadow:0 8px 35px #0007}.housing-card-popup .leaflet-popup-tip{background:#202226!important}.housing-card-popup .leaflet-popup-content{margin:0;width:310px!important;max-width:calc(100vw - 60px)}.housing-card-popup .leaflet-popup-close-button{right:8px!important;top:8px!important;background:#17191ddd;border-radius:50%;color:white!important;z-index:2}.housing-card-popup .house-popup{padding:0 18px 18px}.house-popup-photo{display:block;width:calc(100% + 36px);max-width:none;height:175px;margin:0 -18px 15px;object-fit:cover}.house-popup-location{display:inline-block;border-radius:20px;background:#843c1d66;color:#ff9851;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.1em;padding:5px 9px;margin:16px 0 10px}.house-popup-photo+.house-popup-location{margin-top:0}.housing-card-popup .house-popup h2{font-family:system-ui,sans-serif;font-weight:750;font-size:21px;margin:0 0 5px}.housing-card-popup .house-popup-meta{color:#c4beb2;font-size:11px;margin:0 0 12px}.housing-card-popup .house-popup-data{font-size:12px;gap:7px 12px;margin:14px 0}.housing-card-popup .house-popup-data dt{color:#bcb7ae}.housing-card-popup .house-popup-data dd{color:#fff4de}.housing-card-popup .house-popup-group{grid-column:1/-1;border-top:1px solid #ffffff20;padding-top:10px;margin-top:5px;color:#ffa267!important;font-weight:700!important}.housing-card-popup .house-popup-notes{font-size:12px;line-height:1.5;color:#d5cfc2;margin:6px 0}.housing-card-popup .house-popup section strong{font-size:12px;color:#f2d5ab}.housing-card-popup .house-popup-links{border-color:#ffffff20;gap:10px}.housing-card-popup .house-popup-links a{color:#e6e0d6;font-size:12px}.housing-card-popup .house-edit-button{display:block;flex-basis:100%;padding:11px 15px;background:#ed680f;border-radius:8px;text-align:center;text-decoration:none;color:white!important;font-weight:750}.housing-card-popup .house-edit-button:hover{background:#ca5100}.property-photo-preview{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:8px}.photo-paste{padding:24px;border:2px dashed #b99a68;border-radius:8px;cursor:text}.photo-paste:focus{outline:2px solid #722f28;outline-offset:3px}

.housing-card-popup .leaflet-popup-content{max-height:calc(100dvh - 100px)!important;overflow-y:auto}.housing-card-popup .leaflet-popup-content::-webkit-scrollbar{width:5px}.housing-card-popup .leaflet-popup-content::-webkit-scrollbar-thumb{background:#837766;border-radius:5px}

/* Public listing photographs */
.listing-photo{aspect-ratio:16/9;width:100%;overflow:hidden;margin-bottom:22px;background:#e3d7c1;border:1px solid #cfbea2;display:flex;align-items:center;justify-content:center;color:#765c3f;font:italic 18px Georgia,serif}
.listing-photo img{display:block;width:100%;height:100%;object-fit:cover}

.public-atlas,
.public-county-map,
.county-map,
.map-picker {
    background: var(--rdr2map);
}

/* Append to the BOTTOM of your existing assets/western.css */
.housing-pin-wrap { overflow: visible; }
.housing-new-badge {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    padding: 2px 5px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #dc2626;
    color: #fff;
    font: 800 9px/1.2 system-ui, sans-serif;
    letter-spacing: .05em;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 4px #0006;
}
