.price-map-page {--pm-paper:#fffdfb;--pm-ink:#352a24;--pm-muted:#6a5543;--pm-line:#dfd5cc;--pm-gold:#fac461;--pm-apricot:#fdecd9;--pm-teal:#17675e;background:#f6f3ef;color:var(--pm-ink);font-family:Manrope,sans-serif}
/* Keep map controls above the map, within a layer below the sticky site header. */
.pm-main {isolation:isolate;max-width:1920px;margin:auto;padding:12px 28px 20px}
.pm-main * {box-sizing:border-box;scrollbar-color:#bfae9e #f6f3ef;scrollbar-width:thin}
.pm-main [hidden] {display:none!important}
.pm-main ::selection {background:var(--pm-gold);color:var(--pm-ink)}
.pm-main :is(input,select,button,a,summary):focus-visible {outline:2px solid #795019;outline-offset:3px}
.pm-main :is(button,input,select) {font:inherit;color:inherit}
.pm-main button {cursor:pointer}
.pm-main button:disabled {cursor:wait;opacity:.6}
.pm-main svg {fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.pm-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.pm-heading h1 {font-size:25px;font-weight:650;line-height:1.2;letter-spacing:-.03em;margin:0}
.pm-toolbar {display:grid;grid-template-columns:130px 150px 220px;align-items:end;gap:16px;margin-bottom:10px}
.pm-filters-toggle {display:none}
.pm-main fieldset {border:0;padding:0;margin:0;min-width:0}
.pm-toolbar label,.pm-main legend {display:block;font-size:12px;font-weight:600;line-height:1.5}
.pm-main legend {margin-bottom:4px}
.price-map-page .pm-main select {border:1px solid #bfae9e;border-radius:7px;background:var(--pm-paper);height:44px}
.price-map-page .pm-main select {display:block;padding:0 26px 0 10px;width:100%;margin-top:4px;font-size:13px;font-weight:400}
.pm-segment {display:flex;background:#eee7df;border-radius:7px;padding:3px;gap:3px;height:44px}
.pm-segment label,.pm-period-options label {position:relative;flex:1;cursor:pointer;min-width:0}
.pm-segment input,.pm-period-options input {position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.pm-segment span,.pm-period-options span {display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:13px;height:100%;font-weight:400}
.pm-segment input:checked+span {background:var(--pm-gold);font-weight:650}
.pm-segment input:focus-visible+span,.pm-period-options input:focus-visible+span {outline:2px solid #795019;outline-offset:2px}
.pm-segment label:hover span,.pm-period-options label:hover span {background:var(--pm-apricot)}
.pm-heatmap-controls {display:flex;align-items:end;gap:24px;margin-bottom:10px}
.pm-mode {width:180px;flex-shrink:0}
.pm-periods {width:400px}
.pm-period-options {display:flex;gap:6px;height:44px}
.pm-period-options span {border:1px solid #bfae9e;background:var(--pm-paper);font-variant-numeric:tabular-nums;font-weight:600;font-size:14px}
.pm-period-options input:checked+span {background:var(--pm-apricot);border:2px solid #795019;color:#352a24}
.pm-workspace {border:1px solid var(--pm-line);border-radius:12px;overflow:hidden;background:var(--pm-paper)}
.pm-map-shell {position:relative;isolation:isolate;background:#e9eee9;height:calc(100dvh - 282px);min-height:380px}
#pm-map {width:100%;height:100%;z-index:0}
.pm-map-title {position:absolute;top:16px;left:16px;right:76px;pointer-events:none;max-width:360px;background:var(--pm-paper);border-radius:12px;padding:12px 16px;z-index:400}
.pm-map-title h2 {margin:0 0 6px;font-size:16px;line-height:1.3;font-weight:650;letter-spacing:-.02em}
.pm-map-title p {margin:0;color:var(--pm-muted);font-size:12px}
.pm-map-shell .leaflet-control-zoom {margin:16px 16px 0 0;border:1px solid var(--pm-line);box-shadow:none;border-radius:7px;overflow:hidden}
.pm-map-shell .leaflet-control-zoom a {color:var(--pm-ink);background:var(--pm-paper);width:40px;height:40px;line-height:40px}
.pm-map-shell .leaflet-control-attribution {font-size:10px}
.pm-legend {position:absolute;bottom:30px;left:16px;background:var(--pm-paper);border-radius:12px;z-index:400;min-width:180px;max-width:230px}
.pm-legend-toggle {display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:44px;padding:10px 14px;border:0;background:transparent;border-radius:12px;font-size:12px;font-weight:600}
.pm-legend-toggle:hover {background:var(--pm-apricot)}
.pm-legend-toggle[aria-expanded=true] svg {transform:rotate(180deg)}
.pm-legend-toggle[aria-expanded=false]~#pm-legend-content {display:none}
.pm-legend-toggle[aria-expanded=true]~.pm-legend-compact {display:none}
#pm-legend-content {padding:0 14px 14px;max-height:280px;overflow:auto}
.pm-legend h3 {font-size:12px;font-weight:650;margin:0 0 10px}
.pm-legend-row,.pm-no-data {display:flex;gap:9px;align-items:center;margin:6px 0;font-size:12px;font-variant-numeric:tabular-nums}
.pm-legend i {width:24px;height:9px;display:inline-block;border-radius:2px;border:1px solid #00000018}
.pm-no-data i {background:#e0ded9}
.pm-legend small {font-size:10px;color:var(--pm-muted);display:block;margin-top:10px}
.pm-legend-compact {padding:0 14px 12px}
.pm-legend-strip {display:flex;height:7px;border-radius:2px;overflow:hidden}
.pm-legend-strip span {flex:1}
.pm-legend-extents {display:flex;justify-content:space-between;gap:16px;white-space:nowrap;font-size:11px;margin-top:5px;color:var(--pm-muted)}
.pm-map-hint {position:absolute;bottom:30px;right:16px;background:var(--pm-paper);border-radius:7px;padding:10px 12px;font-size:12px;z-index:400;pointer-events:none}
.pm-map-notice,.pm-tile-notice {position:absolute;top:104px;left:16px;right:16px;z-index:450;background:var(--pm-paper);border:1px solid #bfae9e;border-radius:8px;padding:12px;font-size:12px}
.pm-tile-notice {top:auto;bottom:18px}
.pm-main :is(.pm-map-notice,.pm-tile-notice,.pm-status) button {border:0;background:none;text-decoration:underline;text-underline-offset:3px;padding:10px;font-size:12px;min-height:44px}
.pm-status {display:flex;gap:8px 16px;justify-content:space-between;align-items:center;font-size:11px;color:var(--pm-muted);padding:10px 2px;flex-wrap:wrap}
.pm-status #pm-status-text {margin-right:auto}
@media(max-width:1000px) {
 .pm-main {padding:12px 16px 16px}
 .pm-toolbar {grid-template-columns:110px 125px 190px;gap:10px}
 .pm-heatmap-controls {gap:16px}
 .pm-map-hint {display:none}
}
@media(max-width:700px) {
 .pm-main {padding:12px}
 .pm-heading {margin-bottom:8px}
 .pm-heading h1 {font-size:22px}
 .pm-toolbar {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:8px}
 .pm-market {grid-column:2;grid-row:1;width:auto}
 .pm-property {grid-column:1/-1;grid-row:2;min-width:0}
 .price-map-page .pm-main select {font-size:16px}
 .pm-property select {padding-left:8px!important}
 .pm-toolbar label,.pm-main legend {font-size:11px}
 .pm-heatmap-controls {display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:8px}
 .pm-mode {display:flex;align-items:center;gap:12px}
 .pm-mode legend {float:left;width:70px;margin:0;line-height:44px}
 .pm-mode .pm-segment {width:calc(100% - 82px)}
 .pm-mode,.pm-periods {width:auto}
 .pm-period-options {gap:4px}
 .pm-period-options span {font-size:13px}
 .pm-periods legend {font-size:11px;white-space:nowrap}
 .pm-map-shell {height:calc(100dvh - 382px);min-height:350px}
 .pm-map-title {top:12px;left:12px;right:64px;max-width:300px;padding:10px 12px}
 .pm-map-title h2 {font-size:14px;line-height:1.4}
 .pm-map-title p {font-size:11px}
 .pm-map-shell .leaflet-control-zoom {margin:12px 10px 0 0}
 .pm-map-shell .leaflet-control-zoom a {width:40px;height:44px;line-height:44px}
 .pm-legend {left:12px;bottom:26px;min-width:164px;max-width:215px}
 #pm-legend-content {max-height:210px}
 .pm-map-shell .leaflet-control-attribution {font-size:9px}
}
@media(max-width:370px) {
 .pm-main {padding:10px}
 .pm-toolbar {gap:8px}
 .pm-heatmap-controls {grid-template-columns:1fr;gap:8px}
 .pm-mode {display:flex;align-items:center;gap:12px}
 .pm-mode legend {float:left;width:70px;margin:0;line-height:44px}
 .pm-mode .pm-segment {width:calc(100% - 82px)}
 .pm-period-options {gap:4px}
 .pm-map-shell {height:calc(100dvh - 378px);min-height:320px}

}
@media(prefers-reduced-motion:reduce) {.pm-main * {scroll-behavior:auto!important;transition:none!important}}
@media(min-width:901px) {
 #pm-filters-body {display:grid;gap:10px;margin-bottom:8px}
 .pm-toolbar {grid-template-columns:minmax(110px,.8fr) minmax(140px,1fr) minmax(180px,1.3fr);gap:16px;margin:0}
 .pm-heatmap-controls {display:grid;grid-template-columns:minmax(160px,1fr) minmax(300px,2fr);gap:6px 24px;margin:0;align-items:end}
 .pm-mode,.pm-periods {width:auto}
}
@media(min-width:1280px) {
 #pm-filters-body {grid-template-columns:minmax(460px,1fr) minmax(520px,1.1fr);column-gap:clamp(32px,4vw,80px);align-items:start}
 .pm-map-shell {height:calc(100dvh - 222px)}
}
@media(max-width:900px) {
 .pm-filters {position:relative;z-index:500;margin-bottom:10px}
 .pm-filters-toggle {display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--pm-line);border-radius:7px;background:var(--pm-paper);text-align:left}
 .pm-filters-label {font-size:13px;font-weight:650}
 #pm-filters-summary {flex:1;min-width:0;font-size:12px;line-height:1.5;color:var(--pm-muted);text-align:right;text-wrap:pretty}
 .pm-filters-toggle:hover {background:var(--pm-apricot)}
 .pm-filters-toggle[aria-expanded=true] svg {transform:rotate(180deg)}
 .pm-filters:not(.is-open) #pm-filters-body {display:none}
 .pm-filters.is-open #pm-filters-body {position:absolute;top:calc(100% + 6px);left:0;right:0;padding:12px;background:var(--pm-paper);border:1px solid var(--pm-line);border-radius:12px;max-height:min(440px,calc(100dvh - 210px));overflow-y:auto;overscroll-behavior:contain}
 .pm-map-shell {height:calc(100dvh - 230px);min-height:350px}
}
/* The title shares the first filter row; narrower screens retain the stacked header. */
@media(min-width:1100px) {
 .pm-main {display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:start;column-gap:24px}
 .pm-main > .pm-heading {grid-column:1;grid-row:1;min-height:66px;padding-top:22px;margin:0}
 .pm-heading h1 {white-space:nowrap}
 .pm-main > .pm-filters {grid-column:2;grid-row:1;min-width:0;margin:0 0 8px}
 .pm-main > :is(.pm-login-notice,.pm-workspace,.pm-status,noscript) {grid-column:1/-1}
 .pm-main > .pm-login-notice {grid-row:2}
 .pm-main #pm-filters-body {margin:0}
 .pm-main .pm-toolbar {margin:0;max-width:none}
 .pm-map-shell {height:calc(100dvh - 246px)}
}
@media(min-width:1280px) {
 .pm-main #pm-filters-body {grid-template-columns:minmax(462px,1fr) minmax(484px,1fr);column-gap:24px}
 .pm-map-shell {height:calc(100dvh - 186px)}
}
