/* Map-first composition. Existing green, paper and type tokens are shared. */
:root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis:weight style}
body{padding-top:env(safe-area-inset-top,0px)}
h1,h2,h3,h4{text-wrap:balance}
p{text-wrap:pretty}
.site-header{padding-top:10px;padding-bottom:8px}
.snapshot{font-size:.75rem}
.filter-bar{padding-bottom:10px}
.workspace{display:block;overflow:hidden;isolation:isolate}
.workspace .map-panel{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0}
.workspace[data-view] .results-panel{display:flex;position:absolute;inset:0;z-index:700;height:calc(100% - var(--sheet-offset,calc(100% - 176px)));border:0;border-radius:20px 20px 0 0;background:var(--paper);box-shadow:0 -3px 18px #21392e20;transform:translateY(var(--sheet-offset,calc(100% - 176px)));transition:transform 260ms cubic-bezier(.2,0,0,1),height 260ms cubic-bezier(.2,0,0,1);padding-bottom:env(safe-area-inset-bottom,0px)}
.results-panel.dragging{transition:none!important;user-select:none}
.results-top{padding:8px 16px 0;gap:12px;min-height:64px;align-items:center;position:relative;background:var(--surface);border-radius:20px 20px 0 0}
.sheet-handle{display:flex;align-items:center;min-width:0;flex:1;min-height:52px;font-size:1.125rem;font-weight:650;line-height:1.3;text-align:start;padding:5px 0 0;touch-action:none;user-select:none}
.sheet-grip{position:absolute;top:7px;left:calc(50% - 20px);width:40px;height:4px;border-radius:4px;background:#bdc8be;pointer-events:none}
.sheet-toggle{font-size:.8125rem;font-weight:600;min-height:44px;padding:8px 0 4px 12px;white-space:nowrap;color:var(--action)}
.sheet-preview{flex-shrink:0;padding:4px 14px 16px;background:var(--surface);min-height:112px}
.peek-card{display:flex;align-items:center;gap:12px;min-height:92px;width:100%;text-align:start;padding:0;border-radius:10px;overflow:hidden}
.peek-card>img,.peek-placeholder{width:100px;height:84px;border-radius:8px;object-fit:cover;flex-shrink:0;background:var(--soft);outline:1px solid rgb(0 0 0 / .1);outline-offset:-1px}
.peek-placeholder{display:grid;place-items:center;color:var(--muted)}
.peek-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:.75rem;line-height:1.5}
.peek-info strong{display:flex;align-items:baseline;gap:4px;font-size:1.25rem;line-height:1.3;letter-spacing:-.02em}
.peek-info small{color:var(--muted);font-size:.75rem;font-weight:400;letter-spacing:0}
.peek-ref{font-size:.6875rem;color:var(--muted);margin-left:auto;letter-spacing:0;font-weight:500}
.peek-address{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}
.peek-empty{padding:16px 0;font-size:.875rem;color:var(--muted)}
.results-sort{display:flex;align-items:center;justify-content:space-between;padding:0 16px 4px;gap:8px;background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0}
.results-sort button{min-height:44px;font-size:.75rem;color:var(--muted);display:flex;align-items:center;gap:8px;text-align:start;padding:4px 0}
.sort-current{max-width:none;font-size:.75rem;line-height:1.4;text-align:start}
.workspace[data-sheet=collapsed] .results-sort,.workspace[data-sheet=collapsed] .highway-area-note,.workspace[data-sheet=collapsed] .list-scroll{visibility:hidden}
.list-scroll{padding:12px 12px 24px;scroll-padding:12px;scrollbar-gutter:stable;touch-action:pan-y}
#results{grid-template-columns:minmax(0,1fr);gap:12px}
.property-card{display:grid;grid-template-columns:38% minmax(0,1fr);gap:0;background:var(--surface);border-radius:12px;position:relative}
.card-photo{grid-column:1;grid-row:1;aspect-ratio:auto;min-height:158px;height:100%;border-radius:0;isolation:isolate}
.card-photo img{position:absolute;inset:0;outline:1px solid rgb(0 0 0 / .1);outline-offset:-1px}
.card-photo>.rental-reference{top:8px;left:8px;min-height:24px;font-size:.6875rem;padding:2px 6px;border-radius:4px}
.photo-placeholder{flex-direction:column;gap:6px;font-size:.6875rem;text-align:center;padding:8px;position:absolute;inset:0}
.gallery-control{left:4px;right:4px;bottom:4px;justify-content:space-between;background:#ffffffed;border-radius:6px;gap:0}
.gallery-control button{width:44px;min-width:44px;min-height:44px;font-size:1.5rem}
.photo-position{min-width:24px;font-size:.625rem;padding:0}
.card-body{grid-column:2;grid-row:1;padding:14px 12px 12px;min-width:0;align-self:center}
.rent{font-size:1.375rem;letter-spacing:-.035em;line-height:1.3}
.rent small{font-size:.75rem;margin-left:3px}
.property-specs{font-size:.75rem;margin-top:5px;line-height:1.5;column-gap:5px;row-gap:1px}
.property-specs span+span:before{content:none}
.property-specs span{white-space:nowrap}
.card-body h3{font-size:.9375rem;line-height:1.4;margin-top:2px;letter-spacing:-.01em}
.address-button{min-height:44px;padding:4px 0;width:100%;overflow-wrap:anywhere}
.card-city{text-align:start;font-size:.75rem;line-height:1.5}
.family-votes{grid-column:1/-1;margin:0;padding:0 12px;min-height:52px;border-top:1px solid var(--line);gap:8px}
.no-votes{font-size:.75rem}
.voter-badge{width:26px;height:26px;font-size:.75rem}
.cast-vote{background:transparent;color:var(--action);padding:8px 2px 8px 12px;font-size:.8125rem;gap:10px}
.card-footer{grid-column:1/-1;padding:0 12px;min-height:44px}
.card-details>summary,.listing-links a{min-height:44px;font-size:.8125rem}
.listing-links{gap:8px}
.card-detail-content{padding-top:4px;padding-bottom:16px;font-size:.8125rem;line-height:1.5}
.detail-address{font-weight:600;margin-bottom:12px;line-height:1.5}
.detail-facts{margin:0;display:grid;gap:8px}
.detail-facts>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px}
.detail-facts dt{color:var(--muted)}
.detail-facts dd{margin:0;min-width:0}
.property-notes{margin:14px 0 0;padding-left:18px}
.property-notes li+li{margin-top:8px}
.detail-agency{font-size:.75rem;color:var(--muted);margin-top:12px}
.map-actions{display:flex;gap:8px;pointer-events:auto}
.map-count{font-size:.6875rem;max-width:52%;min-height:40px;padding:8px 10px}
.map-top button{min-height:44px;font-size:.75rem;padding:8px 10px}
.leaflet-bottom.leaflet-right{bottom:183px;transition:bottom 260ms cubic-bezier(.2,0,0,1)}
.workspace[data-sheet=half] .leaflet-bottom.leaflet-right{bottom:calc(56% + 6px)}
.workspace[data-sheet=full] .leaflet-bottom.leaflet-right{visibility:hidden}
.map-notice{top:130px;max-width:320px}
.pin{min-height:32px;border-radius:7px}
.rental-marker{touch-action:manipulation;display:grid;align-items:center}
.home-cluster{display:grid;place-items:center;border-radius:50%;background:var(--action);color:white;border:3px solid white;box-shadow:0 1px 8px #21392e40;font-weight:650;font-size:.8125rem;touch-action:manipulation}
.pin.selected{transform:none;box-shadow:0 0 0 3px #28554130}
.highway-area-note{margin:8px 12px 0}
.highway-area-note button{min-height:44px}
.list-footer{padding:12px 0 0}
#methodology details{margin-top:16px;font-size:.875rem}
#methodology summary{min-height:44px;padding:10px 0;cursor:pointer}
.cast-vote:active,.sheet-toggle:active,.peek-card:active{transform:scale(.96)}
@media(hover:hover){.cast-vote:hover{background:transparent;color:var(--action-hover);text-decoration:underline}.peek-card:hover{background:var(--soft)}}
@media(min-width:700px) and (max-width:1179px){
 .workspace[data-view] .results-panel{left:16px;right:16px;border-radius:20px 20px 0 0;max-width:820px;margin-inline:auto}
 .list-scroll{padding:12px 20px 24px}
 #results{grid-template-columns:minmax(0,1fr)}
 .property-card{grid-template-columns:32% minmax(0,1fr)}
 .card-photo{min-height:164px}
 .card-body{padding:16px 20px}
 .property-specs{column-gap:10px;font-size:.875rem}
 .card-body h3{font-size:1.0625rem}
 .card-city{font-size:.8125rem}
 .rent{font-size:1.625rem}
 .gallery-control{left:auto;min-width:138px}
 .peek-card>img{width:130px}
 .peek-info{font-size:.875rem}
}
@media(min-width:1180px){
 .workspace[data-view] .results-panel{left:auto;right:12px;top:12px;bottom:12px;width:400px;height:calc(100% - 24px);border-radius:16px;transform:translateX(0);overflow:hidden;padding-bottom:0;transition:transform 260ms cubic-bezier(.2,0,0,1),visibility 260ms}
 .workspace[data-sheet=collapsed] .results-panel{transform:translateX(calc(100% + 24px));visibility:hidden}
 .results-top{border-radius:16px 16px 0 0;padding:4px 16px 0;min-height:56px}
 .sheet-handle{touch-action:manipulation;min-height:48px;font-size:1.0625rem}
 .sheet-grip,#expand-list{display:none}
 .map-top{right:428px}
 .workspace[data-sheet=collapsed] .map-top{right:12px}
 .leaflet-bottom.leaflet-right,.workspace[data-sheet=half] .leaflet-bottom.leaflet-right{bottom:0;right:424px}
 .workspace[data-sheet=collapsed] .leaflet-bottom.leaflet-right{right:0}
 .workspace[data-sheet=full] .leaflet-bottom.leaflet-right{visibility:visible}
 .map-count{max-width:none}
}
@media(max-width:359px){
 .results-top{padding-left:12px;padding-right:12px;gap:6px}
 .sheet-handle{font-size:1rem}
 .peek-card{gap:8px}.peek-card>img,.peek-placeholder{width:80px}
 .peek-info{font-size:.6875rem}.peek-info strong{font-size:1.125rem}
 .property-card{grid-template-columns:36% minmax(0,1fr)}
 .card-body{padding:12px 10px}.rent{font-size:1.25rem}
 .property-specs{font-size:.6875rem;column-gap:5px}
 .photo-position{display:none}
}
@media(max-height:500px) and (max-width:1179px){
 .snapshot{display:none}
 .filter-bar{padding-bottom:6px}
 .site-header{padding-top:4px;padding-bottom:4px}
 .sheet-preview,.results-sort{display:none}
 .leaflet-bottom.leaflet-right{bottom:78px}
}
@media(prefers-reduced-motion:reduce){.workspace[data-view] .results-panel,.leaflet-bottom.leaflet-right{transition:none}.cast-vote:active,.sheet-toggle:active,.peek-card:active{transform:none}}
