/* Compact map controls and a stable, full-width phone filter drawer. */
@media(max-width:650px){
 header{padding:10px 12px!important;gap:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important}
 .brand{font-size:22px!important}.brand span{font-size:6px!important;letter-spacing:1px!important;margin-top:2px!important}
 .heading{padding:0!important;border:0!important;grid-column:1/-1!important;grid-row:2!important}.heading h1{font-size:19px!important;margin:0!important}.heading p,.heading .eyebrow{display:none!important}
 .head-actions{max-width:none!important;gap:5px!important;justify-content:flex-end!important}.head-actions button{font-size:10px!important;padding:5px!important;min-height:36px!important}.head-actions #language{width:86px!important;min-height:36px!important;font-size:12px!important}.head-actions .date{display:none!important}
 .countrybar{padding:5px 12px!important;min-height:0!important;gap:6px!important;display:flex!important;flex-wrap:wrap!important}.countrybar>label,.countrybar-note{display:none!important}.countrybar select{flex:1!important;width:100%!important;min-height:44px!important;font-size:16px!important}
 .map-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:6px 10px!important;width:100%!important;box-sizing:border-box!important;min-width:0!important}
 .map-tools>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}.map-tools>label{grid-column:1!important;display:flex!important;align-items:center!important}.map-tools>label>span{display:none!important}.map-tools select{width:100%!important;min-width:0!important}
 .map-tools form#globalPlaceForm{grid-column:2/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;min-width:0!important;width:100%!important;flex:none!important}
 #globalPlaceQuery{width:100%!important;min-width:0!important;font-size:16px!important;padding:6px!important;box-sizing:border-box!important}#globalPlaceSubmit{min-width:42px!important;padding:6px!important}
 .map-tools button,.map-tools a,.map-tools select{font-size:11px!important;min-height:36px!important;padding:5px!important;white-space:normal!important;line-height:1.3!important;margin:0!important}
 #browseSourceListings{grid-column:1/-1!important}#mapToolStatus:empty{display:none!important}#mapToolStatus{grid-column:1/-1!important}
 main{height:var(--mobile-map-height,60svh)!important;min-height:340px!important;max-height:100svh!important}.mapwrap{height:100%!important;min-height:0!important}
 .maptop{top:8px!important;left:48px!important;right:8px!important;gap:5px!important;align-items:flex-start!important;pointer-events:none}.maptop>*{pointer-events:auto}.maptop #breadcrumb{font-size:12px!important;padding:7px!important;max-width:40%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-buttons{gap:4px!important}#reset{font-size:10px!important;padding:6px!important;min-height:36px!important}#fullscreen{min-width:36px!important;min-height:36px!important;font-size:22px!important;padding:3px!important}
 .leaflet-top.leaflet-left .leaflet-control{margin-left:8px!important;margin-top:8px!important}.leaflet-control-zoom a{width:30px!important;height:30px!important;line-height:30px!important}
 .map-status{top:55px!important;left:8px!important;right:8px!important;width:max-content!important;max-width:calc(100% - 16px)!important;box-sizing:border-box!important;padding:5px 8px!important;gap:5px!important;font-size:10px!important;line-height:1.4!important;pointer-events:none}.map-status b{font-size:12px!important}.map-status small{display:none!important}
 #filterShortcut{top:91px!important;left:8px!important;right:auto!important;padding:6px 10px!important;min-height:40px!important;font-size:13px!important;border-radius:9px!important}
 .legend{left:8px!important;right:8px!important;bottom:23px!important;width:auto!important;max-width:none!important;padding:8px 10px!important;border-radius:12px!important;box-sizing:border-box!important;max-height:125px!important;overflow:auto!important}.legend>div:first-child{font-size:11px!important;gap:4px!important}.legend strong{font-size:13px!important}.legend .gradient{height:9px!important;margin:5px 0!important}.legend .ticks{font-size:9px!important;margin:0!important}.legend>p{font-size:9px!important;margin:4px 0 0!important;padding:0!important;line-height:1.3!important}.legend>p span{display:none!important}.legend details{margin:3px 0 0!important;padding:0!important;font-size:10px!important}.legend details[open]{max-height:90px;overflow:auto}.legend .model-legend-summary{font-size:9px!important}
 .coverage{display:none!important}.district-price span{min-width:0!important;width:100px!important;max-width:100px!important;min-height:0!important;padding:3px 4px!important;border-width:1px!important;border-top-width:3px!important;border-radius:6px!important;box-sizing:border-box!important}.district-price small{font-size:10px!important;max-width:90px!important;line-height:1.2!important}.district-price b{font-size:13px!important;margin-top:1px!important}.district-price em{display:none!important}.district-name span{max-width:105px!important;font-size:10px!important;padding:3px 5px!important;box-sizing:border-box!important}
 body.filters-open aside{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;z-index:12000!important;border-radius:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;display:block!important;box-sizing:border-box!important}
 #closeFilters{position:sticky!important;top:0!important;z-index:10!important;width:100%!important;margin:0!important;border-radius:0!important;background:#eaf2fb!important;min-height:48px!important;font-size:16px!important}.filters-open .intro{display:none!important}aside .filters{display:flex!important;flex-direction:column!important;width:100%!important;box-sizing:border-box!important;padding:12px 16px!important}aside .filters>*{max-width:100%!important;min-width:0!important}aside .property-filters{width:100%!important;margin:8px 0!important;box-sizing:border-box!important}aside .filter-range{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.map-fullscreen{overflow:hidden!important}.mapwrap.fullscreen-fallback,.mapwrap:fullscreen{height:100dvh!important;max-height:none!important}.map-fullscreen aside .map-tools{display:grid!important}.map-fullscreen .mapwrap aside{z-index:12000!important}
}
@media(max-width:650px){
 header{height:auto!important;overflow:visible!important}.head-actions{grid-column:2!important;grid-row:1!important;width:auto!important;flex-wrap:wrap!important;max-width:170px!important}.heading{grid-column:1/-1!important}.heading small{display:none!important}
 .map-tools>label,.map-tools form#globalPlaceForm{grid-row:1!important}.map-tools form#globalPlaceForm{max-width:none!important}
}
@media(max-width:650px){
 header{grid-template-columns:120px minmax(0,1fr)!important;padding:8px 12px!important}.brand{grid-column:1!important;grid-row:1!important;font-size:20px!important}.heading{grid-column:2!important;grid-row:1!important}.heading>*:not(h1){display:none!important}.heading h1{font-size:16px!important}.head-actions{grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:none!important;flex-wrap:nowrap!important;justify-content:space-between!important}.head-actions button{min-height:32px!important}.head-actions #language{min-height:32px!important}
}

@media(max-width:650px){.countrybar select{max-width:none!important}.geography-legend{display:none!important}}

@media(max-width:650px){.district-price b{white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.15!important}}

#nationalReference{font-size:12px;padding:6px 10px;background:#fff7df;border-color:#e8d49e;color:#6f5421}@media(max-width:650px){#nationalReference{width:100%;font-size:11px;min-height:32px}}
/* Country search shares a compact row with the complete picker. */
.countrybar{height:auto;min-height:54px;flex-wrap:wrap}
#countrySearch{font:inherit;font-size:16px;box-sizing:border-box;border:1px solid #c9d9e4;border-radius:8px;padding:8px 10px;min-width:0;width:190px;max-width:100%;background:#f5f9fc;color:#16394f}
#countrySearchStatus{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:650px){#countrySearch{flex:1 1 135px;width:135px;max-width:48%}.countrybar #country{flex:1 1 150px!important;min-width:0!important;width:150px!important;max-width:100%!important}}

#internationalPriceCoverage{padding:8px 0;font-size:12px}#internationalPriceCoverage p{margin:4px 0}#internationalPriceCoverage button{font:inherit;border:1px solid #c9d9e4;background:#f5f9fc;color:#16394f;border-radius:7px;padding:6px 8px;margin:3px;cursor:pointer}#askingPriceBadge{font-size:11px;color:#82511c;background:#fff4d6;padding:4px 7px;border-radius:6px;white-space:normal}

/* Keep the tools in screen space, outside the Leaflet drawing area. */
.map-stage{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.fullscreen-toolbar{display:none}
.map-fullscreen .mapwrap{display:flex!important;flex-direction:column;box-sizing:border-box;max-width:100vw;overflow:hidden;padding-block:env(safe-area-inset-top) env(safe-area-inset-bottom);background:#eef4f7}
.map-fullscreen .fullscreen-toolbar{display:block;flex:0 0 auto;position:relative;z-index:1600;direction:inherit}
html[dir=rtl] .fullscreen-toolbar{direction:rtl}
.map-fullscreen .mapwrap .map-stage{flex:1 1 0;height:auto;min-height:0}
.map-fullscreen .mapwrap .map-stage #map{position:absolute;inset:0;min-height:0!important}
.map-fullscreen .mapwrap #filterShortcut{display:block!important;position:absolute;left:12px;top:128px;z-index:800}
.map-fullscreen .mapwrap aside{z-index:1800!important}
.map-fullscreen .mapwrap .maptop{top:10px!important}
.map-fullscreen .fullscreen-toolbar>.countrybar{z-index:605;direction:inherit}
.map-fullscreen .fullscreen-toolbar>.map-tools{direction:inherit;min-height:44px}
#country[hidden]{display:none!important}
.countrybar:has(#countryPicker)>label[for=country]{display:none}
.countrybar:has(#countryPicker[open]){z-index:1700!important}
#countryPicker{position:relative;min-width:0;width:min(300px,100%);flex:0 1 300px}
#countryToggle{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;padding:7px 12px;border:1px solid #c7d5df;border-radius:8px;background:#f5f9fc;color:#18384a;cursor:pointer;list-style:none;font-size:15px;font-weight:700}
#countryToggle::-webkit-details-marker{display:none}
#countryToggle::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 4px 4px}
#countryPicker[open] #countryToggle::after{transform:rotate(225deg);margin-top:4px}
.country-menu{position:absolute;inset-inline-start:0;top:calc(100% + 4px);width:min(360px,calc(100vw - 24px));box-sizing:border-box;padding:9px;background:white;border:1px solid #bfcfd9;border-radius:10px;box-shadow:0 7px 24px #17334632;color:#19394c}
.country-menu #countrySearch{width:100%;max-width:none;margin:0}
.country-menu #countrySearchStatus{position:static;display:block;width:auto;height:auto;clip-path:none;padding:4px;color:#526a79}
#countrySuggestions{max-height:min(48vh,370px);max-height:min(48dvh,370px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#countrySuggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:start;width:100%;min-height:38px;padding:5px 8px;border:0;border-radius:4px;color:#19394c;background:white;box-shadow:none;font-size:14px}
#countrySuggestions button small{font-size:11px;color:#576f7c}
#countrySuggestions button:hover,#countrySuggestions button:focus-visible,#countrySuggestions button[aria-current=true]{background:#e7f1fa}
@media(max-width:650px){#countryPicker{width:100%;flex:1}.map-fullscreen .mapwrap #filterShortcut{left:8px;top:91px}.country-menu{width:min(100%,calc(100vw - 24px))}}
@media(max-height:550px){.map-fullscreen .fullscreen-toolbar>.map-tools{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;min-height:36px;padding:3px 8px!important}.map-fullscreen .fullscreen-toolbar>.map-tools>*{flex:none!important}.map-fullscreen .fullscreen-toolbar #globalPlaceForm{width:210px!important}.map-fullscreen .fullscreen-toolbar>.countrybar{min-height:38px;padding-block:2px!important}}
#inventoryView{display:flex;align-items:center;gap:4px;margin:12px 0}
#inventoryView button{font:inherit;font-size:14px;padding:7px 16px;border-radius:7px;background:white;border:1px solid #bdcdd8;color:#244251}
#inventoryView button[aria-pressed=true]{background:#16394f;color:white;border-color:#16394f}
#inventoryRows.as-table{display:block;min-width:0}
.inventory-table-scroll{width:100%;overflow:auto;max-height:62dvh;overscroll-behavior:contain;border:1px solid #d9e5ed;border-radius:9px}
.inventory-table-scroll table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;color:#193546}
.inventory-table-scroll th,.inventory-table-scroll td{text-align:start;padding:8px 10px;border-bottom:1px solid #e2e9ed;vertical-align:top}
.inventory-table-scroll th{position:sticky;top:0;background:#edf4f8;z-index:1}
.inventory-table-scroll th button{font:inherit;font-weight:700;border:none;background:transparent;color:inherit;white-space:nowrap;padding:4px 0}
.inventory-table-scroll td:first-child{min-width:175px;max-width:270px}.inventory-table-scroll td:nth-child(2){min-width:120px}.inventory-table-scroll td:nth-child(n+6){white-space:nowrap;font-variant-numeric:tabular-nums}
.inventory-table-scroll td small{display:block;color:#587080}.inventory-table-scroll tbody tr:nth-child(even){background:#f8fafc}
.listing-photo{position:relative;aspect-ratio:16/10;display:grid;place-items:center;background:#eff3f5;color:#627682;overflow:hidden;border-radius:7px;margin-bottom:10px;font-size:12px}
.listing-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
