.market-price-marker{background:none;border:0}.market-price-badge{display:flex;align-items:center;justify-content:center;min-width:48px;height:30px;padding:0 5px;box-sizing:border-box;border-radius:50%;border:2px solid #fff;background:#176447;color:#fff;font:700 12px/1 system-ui,sans-serif;box-shadow:0 2px 7px #0004;white-space:nowrap}.market-price-listing{background:#fff;color:#176447;border-color:#176447}.nearby-market{padding:16px 0;border-top:1px solid #d4dfd8}.nearby-market h3{margin:0 0 5px;font:700 16px/1.3 system-ui}.nearby-market p{font-size:12px;line-height:1.5;color:#53655c}.nearby-market article{padding:10px 0;border-top:1px solid #dfe6e2;font:13px/1.5 system-ui}.nearby-market article a{color:#176447}.nearby-market article strong{font-size:15px}.nearby-market .market-meta{display:block;color:#52635a;font-size:12px}.nearby-market [data-market-status]{min-height:1.5em}

.nearby-market [data-show-sales]{border:1px solid #176447;border-radius:6px;background:#edf6f0;color:#145b3f;padding:8px 12px;font:600 12px system-ui;cursor:pointer}.nearby-market [data-show-sales]:disabled{opacity:.5;cursor:default}.market-sale-popup .leaflet-popup-content-wrapper{border-top:4px solid #176447}

.nearby-market{padding:0;border:0}.market-accordion-body{padding:4px 0 10px}

.map-legend-dock{position:absolute;bottom:22px;left:12px;z-index:1000;display:flex;gap:8px;align-items:flex-end;max-width:calc(100% - 24px)}.map-legend-dock .live-map-legend{position:relative;bottom:auto;left:auto;max-width:min(500px,calc(100vw - 85px));min-width:0;margin:0}.map-satellite-button{width:36px;height:36px;flex:0 0 36px;border:1px solid #cad6cf;border-radius:50%;background:#fff;color:#203b30;display:grid;place-items:center;box-shadow:0 2px 10px #0002;cursor:pointer}.map-satellite-button[aria-pressed=true]{background:#203b30;color:white}.map-satellite-button:focus-visible{outline:3px solid #46ad80;outline-offset:2px}

.sale-value-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #dce5df}.sale-value-comparison span,.sale-value-comparison strong{display:block}.sale-value-comparison span{font-size:11px;color:#52645a}.sale-value-comparison strong{font-size:16px}.sale-property-facts{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,1fr);gap:4px 12px;margin:10px 0;font-size:12px}.sale-property-facts dt{color:#52645a;overflow-wrap:anywhere}.sale-property-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}.sale-building-record{border-top:1px solid #dce5df;padding-top:6px}.sale-building-record h4{margin:8px 0}.market-sale-popup small{display:block;font-size:11px;color:#52645a;line-height:1.4}.market-sale-popup details{margin:10px 0}.market-sale-popup summary{cursor:pointer;font-weight:600}

.nearby-market .sale-value-comparison>div:last-child{text-align:right}.nearby-market .sale-value-comparison{padding:0 0 6px;border:0}.nearby-market .sale-value-comparison small{display:block;color:#52645a;font-size:10px}

.sale-value-comparison-three{grid-template-columns:1fr 1fr 1fr;gap:8px}.sale-above strong,.sale-above span{color:#1765b5}.sale-below strong,.sale-below span{color:#b52d35}.sale-property-identity{display:grid;grid-template-columns:100px 1fr;gap:3px 10px;margin:8px 0;font-size:12px}.sale-property-identity span{color:#52645a}.sale-property-identity strong{font-weight:600}.nearby-market h4{margin:12px 0 4px;font-size:13px}

/* Market overview suppresses non-market panes without changing their layer switches. */
.cu-market-overview .leaflet-pane:not(.leaflet-map-pane):not(.leaflet-tile-pane):not(.leaflet-popup-pane):not(.cu-market-keep-pane){visibility:hidden!important;pointer-events:none!important}

/* Market inspection stays within the current viewport and never drives navigation. */
.cu-stationary-market-popup{position:absolute!important;bottom:auto!important;transform:none!important;margin:0!important;z-index:1050}
.cu-stationary-market-popup .leaflet-popup-tip-container{display:none}
.cu-market-overview .scope-search{display:none}

.nearby-market .sale-assessed-difference{text-align:center}
.nearby-market .sale-value-comparison-three{grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1fr);gap:8px}
.nearby-market .sale-value-comparison-three>div{min-width:0}
.nearby-market .sale-value-comparison-three span{font-size:10px;line-height:1.3;min-height:26px}
.nearby-market .sale-value-comparison-three strong{font-size:14px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#nearby-market>.market-sales-accordion{margin-top:8px}
#subject-capacity-metrics{margin:12px 0 4px}
.market-price-residential-sale{background:#176447;color:#fff}
.market-price-commercial-sale{background:#c53339;color:#fff}
.market-sale-popup .sale-value-comparison-three{grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1fr);gap:6px}
.market-sale-popup .sale-value-comparison-three>div{min-width:0}
.market-sale-popup .sale-value-comparison-three>div:last-child{text-align:right}
.market-sale-popup .sale-assessed-difference{text-align:center}
.market-sale-popup .sale-value-comparison-three strong{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

.map-legend-dock{max-height:calc(100% - 76px)}
.map-legend-dock .live-map-legend[open]{width:210px;max-height:calc(100% - 0px);overflow:auto;box-sizing:border-box}
.map-legend-dock:has(.live-map-legend[open]){height:calc(100% - 76px);pointer-events:none}
.map-legend-dock>*{pointer-events:auto}
.live-map-legend .legend-sponsor{width:min(180px,100%);aspect-ratio:1;margin:6px auto}
.map-legend-dock .live-map-legend .legend-items{display:block;max-height:none;overflow:visible}
.legend-items details>summary{padding:6px 0;font-size:14px}
.map-legend-dock .legend-items .legend-entry{display:flex;align-items:center;gap:6px;min-height:26px}
.map-legend-dock .legend-items [hidden]{display:none!important}

.map-legend-dock:has(.live-map-legend[open]){top:var(--legend-top);left:var(--legend-left);width:var(--legend-width);height:auto;max-height:none;align-items:stretch}
.map-legend-dock .live-map-legend[open]{width:100%;max-width:100%;max-height:100%;flex:1;overflow:auto}
.map-legend-dock:has(.live-map-legend[open]) .map-satellite-button{position:absolute;right:calc(100% + 6px);bottom:0}
.legend-sponsor{box-sizing:border-box;border:1px solid #71807844;border-radius:4px}
.legend-sponsor img{display:block;width:100%;height:100%;object-fit:contain}
.legend-items summary input{float:right;accent-color:#34483f}
.legend-entry:has(input:not(:checked)) .legend-swatch{background:transparent!important;border:1px solid #65726d!important;box-sizing:border-box}
.map-legend-dock .live-map-legend{background:#f3eee2}
.legend-items label.legend-entry{position:relative;cursor:pointer;padding-inline:4px}
.legend-items .legend-entry input{position:absolute;width:1px;height:1px;opacity:0}
.legend-items label:focus-within,.legend-items summary input:focus-visible{outline:2px solid #15577b;outline-offset:1px}
.map-legend-dock .legend-items .legend-entry{min-height:32px}
.legend-entry:has(input:not(:checked)) .legend-swatch.legend-line{height:4px;border-radius:2px}
.legend-items summary input{appearance:none;width:16px;height:16px;border-radius:4px;border:1.5px solid #375648;background:transparent;cursor:pointer}
.legend-items summary input:checked{background:#375648}
.legend-items summary input:indeterminate{background:linear-gradient(90deg,#375648 var(--enabled-share),transparent var(--enabled-share))}

.legend-items .legend-divider{margin:8px 0 3px;padding-top:6px;border-top:1px dotted #849086;color:#475a50;font-size:12px}
.legend-entry[data-legend-note]{flex-wrap:wrap}
.legend-entry[data-legend-note]::after{content:attr(data-legend-note);flex-basis:100%;padding-left:19px;font-size:11px;color:#475a50}

.map-legend-dock .mobile-map-legend > summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.mobile-map-legend > summary::-webkit-details-marker{display:none}
.mobile-map-legend > summary::before{content:none}
.mobile-map-legend > summary::after{content:'';width:.45em;height:.45em;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 .25em .2em}
.mobile-map-legend[open] > summary::after{transform:rotate(225deg)}
.mobile-map-legend[open]{overscroll-behavior:contain}
.mobile-map-legend .legend-sponsor{display:block}

.market-census-unit{display:grid;place-items:center;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#244b73;color:white;box-shadow:0 2px 6px #10243a55;font:750 12px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.market-census-unit.leaflet-interactive{pointer-events:auto;cursor:pointer}
.market-census-unit:focus-visible{outline:3px solid #244b73;outline-offset:2px}
.market-census-unit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#465460}
.market-census-unit small{font:700 10px/1 system-ui,sans-serif}
.market-census-unit.census-badge-increase{background:#175ca0}
.market-census-unit.census-badge-decrease{background:#a62d37}
