/* Listings: one toolbar, one card column, and a wide map. */
.browse-page .browse{grid-template-columns:minmax(340px,24vw) minmax(0,1fr)}
.browse-page .results{padding:20px 16px 0}
.browse-page :is(.cards,.nl-grid){grid-template-columns:minmax(0,1fr);gap:20px;padding-bottom:28px}
.browse-page .results-head h1{font-size:26px}
.browse-page .results-head .area{font-size:12px}
.browse-page .mapcol{padding:14px 16px 14px 0}
.browse-page .search-filters{padding:10px var(--gutter);-webkit-backdrop-filter:none;backdrop-filter:none}
.browse-page .filter-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.browse-page .deal-switch{flex:0 0 136px;width:136px}
.browse-page .deal-switch button{min-height:36px;font-size:14px}
.browse-page .filter-location{flex:1 1 180px;min-width:150px;max-width:none;min-height:44px}
.browse-page .filter-location input{height:42px;font-size:14px}
.browse-page .filter-editor{flex:0 0 auto;min-width:0}
.browse-page .filter-sort{display:block;flex:0 1 170px;min-width:130px}
.browse-page .filter-sort select{height:44px;font-size:13px}
.browse-page .show-places{min-width:145px;white-space:nowrap}
.browse-page .filter-body{left:var(--gutter);right:var(--gutter)}

.listing-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}
.listing-card-link{display:block;width:100%;padding:0;border:0;border-radius:inherit;background:transparent;text-align:left;color:var(--ink);font:inherit;text-decoration:none;cursor:pointer}
.listing-card-link:focus-visible{outline:3px solid var(--forest);outline-offset:-3px}
.listing-photo{position:relative;isolation:isolate;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2,#E9E6DC)}
.property-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;color:var(--muted)}
.listing-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.property-chips button[hidden]{display:none}
.tour-mark{display:none}
.listing-photo.tour-tile{background:var(--forest,#134236);color:var(--paper,#F7F5EF)}
.tour-tile .tour-mark{position:absolute;inset:0 0 34px;display:grid;place-items:center}
.tour-tile .tour-mark svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tour-tile .property-placeholder{padding-top:44px;color:inherit;font-weight:650}
.tour-tile:has(img) .tour-mark{display:none}
.tour-tile:has(img) .property-placeholder{inset:auto auto 10px 10px;z-index:1;display:block;padding:4px 10px;border-radius:999px;background:rgba(20,35,30,.72);color:#fff;font-size:12.5px}
.listing-summary{padding:12px 14px 14px;min-width:0}
.listing-price{display:block;font-size:21px;font-weight:800;line-height:1.25;letter-spacing:-.03em}
.listing-summary p{margin:5px 0 0;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listing-facts{display:flex;align-items:center;gap:8px;color:var(--ink)}
.listing-room{flex:none;padding:1px 7px;border-radius:6px;background:var(--forest);color:var(--paper);font-size:12px;font-weight:700;line-height:1.5}
.listing-location{color:var(--muted)}
.listing-summary .per-bed{height:22px;margin-top:8px;padding:0 8px;font-size:11px}
.listing-card>.why{padding:0 14px 12px;margin:0}
.listing-card.hl{box-shadow:0 0 0 3px var(--citron)}
.listing-card.compact{border:0;border-radius:16px}
.listing-card.compact .listing-price{font-size:19px}
.listing-card.compact .listing-summary{padding:10px 12px 12px}
.sbpop .maplibregl-popup-content{padding:0;overflow:hidden;border-radius:16px}
.maplibregl-popup.sbpop .maplibregl-popup-content{width:270px}
.sbpop .listing-card{width:270px}

.listing-provenance{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
@media(min-width:901px){
  body.browse-page{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  body.browse-page>:is(.top,.nl-search,.search-filters){flex:0 0 auto}
  body.browse-page>footer{display:none}
  .browse-page .browse{flex:1;min-height:0;align-items:stretch;overflow:hidden}
  .browse-page .results{overflow-y:scroll;overscroll-behavior:contain}
  .browse-page .mapcol{position:relative;top:auto;height:100%;min-height:0}
}
@media(max-width:1100px){
  .browse-page .filter-toolbar{gap:8px}
  .browse-page .filter-location{flex-basis:150px}
  .browse-page .filter-sort{flex-basis:145px}
  .browse-page .show-places{min-width:135px;padding:0 14px}
}
@media(max-width:900px){
  .browse-page .browse{display:block}
  .browse-page .results{padding:0}
  .browse-page .sheet-scroll{padding:0 16px 76px}
  .browse-page .mapcol{padding:0}
  .browse-page .filter-body{position:fixed;top:auto;bottom:0;left:0;right:0;height:85dvh;max-height:85dvh;display:flex;flex-direction:column;padding:0;overflow:hidden}
  .browse-page .filter-heading{flex:none;margin:0;padding:20px}
  .browse-page .filter-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px}
  .browse-page .filter-mobile-done{flex:none;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
  .browse-page .filter-location{flex-basis:180px}
  .browse-page .filter-sort{flex-basis:150px}
  .browse-page .filter-reset{margin-left:auto}
  .browse-page .listing-photo{max-height:280px}
}
@media(max-width:480px){
  .browse-page .filter-toolbar{gap:6px}
  .browse-page .filter-location{flex-basis:160px;min-width:140px}
  .browse-page .filter-sort{flex:1 1 120px;min-width:0}
  .browse-page .filter-editor>summary{padding:0 10px;gap:5px}
  .browse-page .show-places{flex:1 1 140px}
}

/* The describe pill expands over the same row after its controls fade. */
.browse-page .filter-toolbar{position:relative;flex-wrap:nowrap;gap:8px}
.browse-page .filter-location{flex:1 1 150px;min-width:120px}
.browse-page .nl-search-slot{flex:1.3 1 220px;min-width:180px;height:44px}
.browse-page .nl-search{position:absolute;z-index:2;top:0;left:var(--search-left);width:var(--search-width);height:44px;display:flex;align-items:center;gap:8px;padding:4px 5px 4px 16px;border:1px solid #CFD5C8;border-radius:100px;background:#fff;transition:left 260ms ease-out,width 260ms ease-out}
.browse-page .nl-search:focus-within{border-color:var(--forest);box-shadow:0 0 0 2px #173D3218}
.browse-page .nl-search input{flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;font:500 14px/1.2 "Inter Tight",sans-serif;color:var(--forest)}
.browse-page .nl-search input:focus-visible{outline:none}
.browse-page .nl-search .btn{min-height:34px;height:34px;padding:0 13px;font-size:13px}
.browse-page .filter-toolbar> :not(.nl-search-slot){transition:opacity 180ms ease,visibility 0s 180ms}
.browse-page .describe-open> :not(.nl-search-slot){opacity:0;visibility:hidden;pointer-events:none}
.browse-page .describe-open .nl-search{left:0;width:100%;transition-delay:180ms}
.browse-page .filter-sort{flex:0 1 145px;min-width:110px}
.browse-page .show-places{min-width:0;padding:0 12px;font-size:13px}
@media(max-width:1100px){
  .browse-page .show-places{display:none}
  .browse-page .filter-sort{flex-basis:130px}
}
@media(max-width:700px){
  .browse-page .deal-switch{width:104px;flex-basis:104px}
  .browse-page .filter-sort,.browse-page .filter-reset,.browse-page .show-places{display:none}
  .browse-page .filter-location{flex:1 1 auto;min-width:0;min-height:44px;padding:0 12px}
  .browse-page .nl-search-slot{min-width:0}
  .browse-page .filter-editor>summary{font-size:12px;padding:0 9px;gap:4px}
  .browse-page .filter-editor>summary svg,.browse-page .filter-chevron{display:none}
}
@media (max-width:700px){.browse-page :is(.nl-search,.filter-location) input{font-size:16px}}
/* The rounded ring on the box is the focus mark. A square one inside it reads as a glitch. */
.browse-page .search-filters .filter-location input:focus-visible{outline:none}
/* The floating List button sits over the map, just above the sheet, so it never covers what the sheet says. */
@media (max-width:900px){
  .browse[data-sheet="peek"] .view-toggle{bottom:124px}
  .browse[data-sheet="half"] .view-toggle{bottom:calc(54% + 12px)}
  .browse[data-sheet="full"] .view-toggle{left:auto;right:16px;transform:none}
}
