/* Two standalone map discovery cards — intentionally no outer frame. */
.map-discovery { position:relative; z-index:3; margin-top:clamp(10px,2vw,22px); margin-bottom:clamp(20px,3vw,44px); }
.map-discovery-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,20px)}
.map-discovery-panel {min-width:0;background:rgba(255,255,255,.88);border:1px solid rgba(27,32,39,.085);border-radius:23px;padding:17px;overflow:hidden}
.map-discovery-panel-head {display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:14px}
.map-discovery-panel-title {display:flex;align-items:center;gap:9px;color:#22262c;font-size:15px;font-weight:800;letter-spacing:-.013em}
.map-discovery-indicator {width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#2f9e63}
.map-discovery-panel[data-discovery-group="reviews"] .map-discovery-indicator {background:var(--jtbs-review-marker,#FF004F)}
.map-discovery-panel-hint {font-size:10.5px;color:#93979d;text-align:right}
.map-discovery-track {display:flex;align-items:stretch;gap:12px;overflow-x:auto;padding:0 0 7px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#d7d9db transparent;min-height:215px}
.map-discovery-card {
  appearance:none;display:flex;flex-direction:column;flex:0 0 clamp(170px,46%,245px);
  min-width:0;scroll-snap-align:start;text-align:left;padding:0;margin:0;border:1px solid rgba(21,25,30,.08);
  border-radius:17px;background:#fbfbfa;color:#252a30;overflow:hidden;
  font:inherit;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.map-discovery-card:hover {transform:translateY(-2px);border-color:rgba(30,34,41,.19);box-shadow:0 9px 17px rgba(17,22,27,.065)}
.map-discovery-card:focus-visible {outline:3px solid rgba(255,0,79,.31);outline-offset:3px}
.map-discovery-image {position:relative;display:block;aspect-ratio:1.55;overflow:hidden;background:#e7e9e8;width:100%}
.map-discovery-image img {display:block;width:100%;height:100%;object-fit:cover}
.map-discovery-placeholder {position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#e4e7e5,#f2f2ef 58%,#e3e4e2)}
.map-discovery-placeholder::before {content:"";position:absolute;width:115%;height:72%;border:1px solid rgba(110,119,124,.16);border-radius:50%;transform:rotate(-22deg)}
.map-discovery-placeholder::after {content:"";position:absolute;width:72%;height:80%;border:1px solid rgba(110,119,124,.14);border-radius:50%;transform:rotate(26deg)}
.map-discovery-placeholder svg {position:relative;z-index:1;width:39px;height:39px;fill:none;stroke:#8b959a;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.map-discovery-card[data-kind="review"] .map-discovery-placeholder {background:linear-gradient(150deg,#f1ecee,#f8f5f5 60%,#ece8eb)}
.map-discovery-card[data-kind="review"] .map-discovery-placeholder svg {stroke:#ae8999}
.map-discovery-media-tag {position:absolute;bottom:9px;left:9px;z-index:2;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.92);color:#424951;font-size:10px;font-weight:750;line-height:1.2}
.map-discovery-description {display:flex;flex-direction:column;gap:5px;flex:1;padding:10px 11px 12px}
.map-discovery-name {font-size:12.5px;line-height:1.3;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-discovery-meta {font-size:11px;line-height:1.35;color:#777d84;min-height:28px}
.map-discovery-open {display:flex;align-items:center;gap:5px;margin-top:auto;color:#59646c;font-size:10px;font-weight:800}
.map-discovery-card[data-kind="review"] .map-discovery-open {color:#C70042}
.map-discovery-empty {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:206px;width:100%;padding:22px;border:1px dashed rgba(45,50,56,.17);border-radius:16px;background:#fafaf9;color:#626a70}
.map-discovery-empty strong {font-size:13px;color:#3d454b;margin-bottom:5px}
.map-discovery-empty span {font-size:12px;line-height:1.5}
@media(max-width:1020px) {
  .map-discovery-direction {display:none}
  .map-discovery-grid {gap:12px}
  .map-discovery-panel {padding:13px}
  .map-discovery-card {flex-basis:clamp(156px,58%,230px)}
}
@media(max-width:760px) {
  .map-discovery {width:calc(100% - 24px);margin-top:16px;margin-bottom:22px}
  .map-discovery-grid {grid-template-columns:minmax(0,1fr);gap:12px}
  .map-discovery-panel {border-radius:18px;padding:12px}
  .map-discovery-panel-head {margin-bottom:10px}
  .map-discovery-panel-hint {font-size:10px}
  .map-discovery-track {min-height:207px;gap:10px}
  .map-discovery-card {flex-basis:min(66%,228px);border-radius:15px}
  .map-discovery-name {font-size:12px}
}
@media(max-width:370px) {.map-discovery-card{flex-basis:75%}.map-discovery-panel-hint{display:none}}
@media(prefers-reduced-motion:reduce){.map-discovery-card{transition:none}.map-discovery-card:hover{transform:none}}

/* Airbnb-inspired restrained global preview cards. Hearts are independently clickable. */
.map-discovery-card{position:relative}
.map-discovery-card-open{display:flex;flex:1;flex-direction:column;align-items:stretch;width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.map-discovery-card-open:focus-visible{outline:3px solid rgba(255,0,79,.35);outline-offset:-3px}
.map-discovery-heart{position:absolute;z-index:4;top:10px;right:10px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:999px;background:rgba(25,28,32,.35);color:white;font-family:"Manrope",sans-serif;font-size:29px;line-height:1;-webkit-text-stroke:.6px rgba(0,0,0,.5);text-shadow:0 1px 4px rgba(0,0,0,.5);cursor:pointer;backdrop-filter:blur(5px)}
.map-discovery-heart.is-liked{color:#FF004F;background:#fff;-webkit-text-stroke:0}
.map-discovery-heart:focus-visible{outline:3px solid #FF004F;outline-offset:2px}
.map-discovery-heart:disabled{opacity:.55;cursor:wait}
.map-discovery-favorite{position:absolute;z-index:3;left:10px;top:10px;display:inline-flex;align-items:center;max-width:calc(100% - 57px);padding:7px 10px;border:1px solid rgba(255,255,255,.6);border-radius:999px;background:rgba(255,255,255,.89);color:#25272b;font-size:10px;font-weight:800;line-height:1.15;box-shadow:0 1px 5px rgba(15,20,27,.06);pointer-events:none}
.map-discovery-card .map-discovery-image{border-radius:16px 16px 0 0}
.map-discovery-track{min-height:226px}


/* Account-only fixture thumbnails: a single genuine JPEG sprite made from
   the seven user-provided photographs; never shown to other accounts. */
.map-discovery-image.map-discovery-demo-photo {
  background-repeat:no-repeat!important;
  background-size:700% 100%!important;
  background-color:#ebe9e5;
}
.map-discovery-card[data-demo="true"] .map-discovery-open {color:#7b6975;}
.map-discovery-card[data-demo="true"] .map-discovery-favorite {top:10px;}

.account-demo-owned{padding:14px;margin-bottom:20px;border:1px solid #e8e8e8;border-radius:18px;background:#fafafa}
.account-demo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.account-demo-card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.account-demo-image{background-image:none;background-size:700% 100%;background-repeat:no-repeat;aspect-ratio:1.5;width:100%}
.account-demo-details{display:flex;flex-direction:column;align-items:start;gap:8px;padding:9px}
.account-demo-status{font-size:10px;color:#a73457;font-weight:800}
@media(max-width:900px){.account-demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Photos for the seven standard published owner listings. */
.map-discovery-image.map-discovery-showcase-photo{background-size:700% 100%!important;background-repeat:no-repeat!important;background-color:#e8e7e4!important}

.owner-listing-showcase-thumb{display:block;flex:0 0 120px;width:100%;max-height:155px;border-radius:12px;background-image:none;background-repeat:no-repeat;background-size:700% 100%;background-color:#ece9e7}
@media(max-width:760px){.owner-listing-showcase-thumb{flex-basis:105px;max-height:125px}}


/* High-quality, individual listing photos. Never magnify the 7-wide preview sprite. */
.map-discovery-image.map-discovery-showcase-photo {
  background-image:none!important;
  background-size:auto!important;
  background-color:#e8e7e4!important;
}
.map-discovery-image.map-discovery-showcase-photo > img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.owner-listing-showcase-thumb {
  display:block;
  width:100%;
  flex:0 0 auto;
  height:auto;
  aspect-ratio:16/9;
  max-height:220px;
  object-fit:cover;
  object-position:center;
  background:none!important;
  border-radius:12px;
}
@media(max-width:760px){
  .owner-listing-showcase-thumb{
    flex-basis:auto;
    height:auto;
    max-height:170px;
  }
}

/* One shared white surface with two full-width discovery rows. */
.map-discovery-grid{grid-template-columns:minmax(0,1fr);gap:26px;padding:24px;background:#fff;border:1px solid rgba(27,32,39,.085);border-radius:26px}
.map-discovery-panel{padding:0;border:0;border-radius:0;background:transparent;min-width:0}
.map-discovery-panel + .map-discovery-panel{border-top:1px solid #eceeed;padding-top:24px}
.map-discovery-panel-head{gap:16px}
.map-discovery-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}
.map-discovery-panel-title{font-size:18px}
.map-discovery-action{display:inline-flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap;flex-shrink:0}
.map-discovery-card{flex-basis:clamp(220px,25%,285px)}
@media(max-width:1020px){.map-discovery-grid{padding:20px}.map-discovery-card{flex-basis:clamp(205px,32%,260px)}}
@media(max-width:760px){
 .map-discovery-grid{padding:16px;border-radius:22px;gap:22px}
 .map-discovery-panel{padding:0;border-radius:0}
 .map-discovery-panel + .map-discovery-panel{padding-top:20px}
 .map-discovery-panel-head{flex-wrap:wrap;gap:10px}
 .map-discovery-panel-title{font-size:17px}
 .map-discovery-panel-actions{margin-left:auto}
 .map-discovery-panel-hint{display:none}
 .map-discovery-action{font-size:12px;padding:10px 13px;gap:8px}
 .map-discovery-card{flex-basis:min(78%,245px)}
}
@media(max-width:370px){.map-discovery-panel-head{align-items:flex-start}.map-discovery-panel-actions{margin-left:0}.map-discovery-card{flex-basis:88%}}

.map-discovery-panel[data-discovery-group="listings"] .map-discovery-action{background:#FF004F;color:#fff;border-color:#DD0044;box-shadow:0 6px 16px rgba(255,0,79,.20)}

/* Compact editorial rows, square photography and small circular arrow actions. */
.map-discovery-panel-head{align-items:center}
.discovery-row-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
.discovery-row-label{font-size:13px;color:#777;font-weight:600}
.map-discovery-panel .map-discovery-action{display:inline-flex;align-items:center;gap:9px;background:transparent!important;border:0!important;box-shadow:none!important;color:#252525!important;font-size:19px;font-weight:750;padding:0!important;border-radius:0}
.discovery-circle-arrow,.discovery-carousel-controls button{display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:#f2f3f2;color:#292929;font-size:21px}
.discovery-carousel-controls{display:flex;gap:6px;flex-shrink:0}
.discovery-carousel-controls button{cursor:pointer}
.discovery-carousel-controls button:disabled{opacity:.35;cursor:default}
.map-discovery-track{gap:14px;scrollbar-width:none}
.map-discovery-track::-webkit-scrollbar{display:none}
.map-discovery-card{flex:0 0 calc((100% - 70px)/6);border:0;border-radius:0;background:transparent;box-shadow:none!important}
.map-discovery-card:hover{transform:none}
.map-discovery-card .map-discovery-image{aspect-ratio:1.05;border-radius:22px}
.map-discovery-description{padding:9px 3px 6px;gap:3px}
.map-discovery-name{font-size:13px;font-weight:650}
.map-discovery-meta{font-size:12px;min-height:0}
.map-discovery-media-tag{display:none}
.map-discovery-favorite{font-weight:650}
.discovery-show-all{aspect-ratio:1.05;align-self:flex-start;align-items:center;justify-content:center;gap:18px;border:1px solid #eceeed;border-radius:22px;background:#fff;box-shadow:0 2px 6px #0000000a!important;cursor:pointer;font-size:15px}
.discovery-show-all-art{font-size:65px;line-height:1;color:#a4aeaa;transform:rotate(-8deg)}
.discovery-results-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:start;gap:24px;margin-top:24px}
.discovery-results-back{grid-column:1/-1;justify-self:start;border:0;background:transparent;padding:8px 0;font:inherit;font-weight:650;cursor:pointer}
.discovery-results-layout #mapDiscovery{width:100%;margin:0;min-width:0}
.discovery-results-layout .map-discovery-grid{padding:0;border:0;border-radius:0;background:transparent}
.discovery-results-layout .map-discovery-panel[hidden]{display:none!important}
.discovery-results-layout .map-discovery-panel{border:0;padding:0}
.discovery-results-layout .map-discovery-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;min-height:0}
.discovery-results-layout .map-discovery-card{width:100%;min-width:0}
.discovery-results-layout .map-column{position:sticky;top:110px;min-width:0;width:100%}
.discovery-results-layout .map-shell{width:100%;height:calc(100vh - 145px);min-height:430px;max-height:850px}
.discovery-results-layout .discovery-carousel-controls{display:none}
.discovery-expanded .hero>.hero-grid{display:none!important}
.discovery-expanded .hero-grid{display:none!important}
.discovery-nav-search{display:none}
@media(min-width:1021px){
 .discovery-expanded header .nav{display:flex;gap:18px}
 .discovery-expanded header .brand{order:0;flex:0 0 auto;margin:0}
 .discovery-expanded header .nav-leading{display:none!important}
 .discovery-expanded .discovery-nav-search{display:block;order:1;flex:1;min-width:0}
 .discovery-expanded header .nav-actions{order:2;margin-left:auto}
 .discovery-expanded .discovery-nav-search #searchForm{display:flex!important;align-items:center;margin:0!important;padding:5px!important;gap:6px;max-width:680px}
 .discovery-expanded .discovery-nav-search #searchForm input{min-width:70px;width:100%;flex:1}
 .discovery-expanded .discovery-nav-search #searchForm .btn{display:inline-flex!important;white-space:nowrap;padding:10px 12px!important;font-size:12px;min-height:40px}
 .discovery-expanded header .nav-contact,.discovery-expanded header .member-desktop-auth{display:none}
}
@media(max-width:1200px){.map-discovery-card{flex-basis:calc((100% - 42px)/4)}}
@media(max-width:1020px){
 .map-discovery-card{flex-basis:calc((100% - 28px)/3)}
 .discovery-results-layout{grid-template-columns:minmax(0,1fr)}
 .discovery-results-layout .map-column{position:relative;top:auto;grid-row:2}
 .discovery-results-layout .map-shell{height:340px;min-height:0}
 .discovery-expanded .discovery-nav-search{display:block;position:relative;margin:12px}
 .discovery-expanded header .nav{flex-wrap:wrap}
 .discovery-expanded .discovery-nav-search{order:10;width:100%}
 .discovery-expanded .discovery-nav-search #searchForm{margin:0!important}
 .discovery-expanded .discovery-nav-search .housing-find-desktop{display:inline-flex!important}
}
@media(max-width:760px){
 .map-discovery-card{flex-basis:calc((100% - 14px)/2.15)}
 .map-discovery-panel .map-discovery-action{font-size:16px}
 .discovery-row-heading{gap:4px;flex-direction:column;align-items:flex-start}
 .discovery-row-label{font-size:11px}
 .map-discovery-card .map-discovery-image{border-radius:18px}
 .discovery-results-layout .map-discovery-track{gap:12px}
 .discovery-expanded .discovery-nav-search #searchForm{display:flex!important;flex-wrap:wrap}
 .discovery-expanded .discovery-nav-search #searchForm input{flex:1;min-width:120px}
 .discovery-expanded .discovery-nav-search #searchForm .btn{font-size:12px;padding:10px!important;min-height:40px}
}

@media(min-width:1021px){.discovery-expanded header .nav .brand{position:static!important;inset:auto!important;transform:none!important;order:0!important;margin:0!important}.discovery-expanded header .nav .discovery-nav-search{order:1!important}.discovery-expanded header .nav .nav-actions{order:2!important}}

@media(min-width:1021px){body.discovery-expanded header .wrap.nav{display:flex!important;grid-template-columns:none!important;justify-content:flex-start!important}body.discovery-expanded header .nav .brand{flex:0 0 43px!important}body.discovery-expanded header .nav .discovery-nav-search{flex:1!important;min-width:0!important}}

/* Two-page preview and photo collage. */
.map-discovery-track{scroll-snap-type:x proximity;scroll-behavior:smooth}
.discovery-show-all-art{display:block;position:relative;width:138px;height:108px;transform:none;font-size:0}
.discovery-collage-photo{position:absolute;display:block;width:77px;height:77px;overflow:hidden;border:3px solid #fff;border-radius:12px;background:#edf0ee;box-shadow:0 2px 5px #0002}
.discovery-collage-photo img{width:100%;height:100%;object-fit:cover;display:block}
.discovery-collage-photo-0{left:32px;top:1px;transform:rotate(-4deg);z-index:1}
.discovery-collage-photo-1{left:61px;top:17px;transform:rotate(9deg);z-index:2}
.discovery-collage-photo-2{left:8px;top:32px;transform:rotate(-8deg);z-index:3}
.discovery-collage-photo .map-discovery-placeholder svg{width:25px;height:25px}
.discovery-show-all{gap:10px}
body.discovery-expanded header .wrap.nav .nav-leading{display:flex!important;order:0!important;margin-right:auto}
body.discovery-expanded header .nav-leading .nav-contact{display:inline-flex!important}
body.discovery-expanded header .nav-leading .nav-search,body.discovery-expanded header .nav-leading .mobile-menu-wrap{display:none!important}
body.discovery-expanded header .wrap.nav .discovery-search-pill{display:flex!important;align-items:center;justify-content:center;gap:0;background:#fff;border:1px solid #dedfdf;border-radius:999px;box-shadow:0 3px 8px #00000012;padding:7px 12px;min-width:0}
body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{position:static!important;transform:none!important;inset:auto!important;display:flex!important;align-items:center;justify-content:center;flex:0 0 36px!important;width:36px!important;min-width:0!important;margin:0 10px 0 0!important}
.discovery-pill-action{display:block;appearance:none;border:0;background:transparent;color:#252525;font:inherit;font-size:14px;font-weight:650;padding:9px 17px;white-space:nowrap;cursor:pointer}
.discovery-pill-action+.discovery-pill-action{border-left:1px solid #e1e2e1}
.discovery-pill-action:hover{background:#f5f6f5;border-radius:20px}
.discovery-pill-action:focus-visible{outline:2px solid #444;outline-offset:2px}
@media(min-width:1021px){
 body.discovery-expanded header .wrap.nav{position:relative!important}
 body.discovery-expanded header .wrap.nav .discovery-search-pill{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:max-content!important;max-width:calc(100% - 390px)!important;flex:0 0 auto!important;margin:0!important}
 body.discovery-expanded header .wrap.nav .nav-actions{margin-left:auto!important}
}
@media(max-width:1020px){
 body.discovery-expanded header .wrap.nav .discovery-search-pill{position:relative;order:10!important;width:max-content!important;max-width:100%;margin:10px auto!important}
 .discovery-pill-action{padding:9px 12px;font-size:13px}
}
@media(max-width:420px){.discovery-pill-action{padding:8px;font-size:11px}.discovery-show-all-art{width:110px;height:95px;scale:.85}body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{margin-right:3px!important}}
@media(prefers-reduced-motion:reduce){.map-discovery-track{scroll-behavior:auto}}

/* Keep the map's sticky box viewport-sized instead of stretching to the result grid. */
@media(min-width:1021px){
 body.discovery-expanded .discovery-results-layout > .map-column{
  display:block!important;align-self:start!important;position:sticky!important;top:112px!important;
  height:fit-content!important;min-height:0!important;margin-top:28px;overflow:visible!important;
 }
 body.discovery-expanded .discovery-results-layout .map-shell:not(.is-fullscreen){
  height:calc(100dvh - 144px)!important;min-height:300px!important;max-height:none!important;
  margin-top:0!important;
 }
 body.discovery-expanded .discovery-results-layout .map-column > .map-caption{display:none!important}
}
.discovery-show-all .discovery-collage-photo{opacity:0;translate:0 14px}
.discovery-show-all.is-revealed .discovery-collage-photo{animation:discovery-collage-arrive .42s cubic-bezier(.2,.75,.3,1) both}
.discovery-show-all.is-revealed .discovery-collage-photo-0{animation-delay:0ms}
.discovery-show-all.is-revealed .discovery-collage-photo-1{animation-delay:110ms}
.discovery-show-all.is-revealed .discovery-collage-photo-2{animation-delay:220ms}
@keyframes discovery-collage-arrive{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){
 .discovery-show-all .discovery-collage-photo{opacity:1;translate:0 0;animation:none!important}
}

/* Results start directly below the header, without a separate back row. */
body.discovery-expanded .discovery-results-layout{margin-top:16px}
body.discovery-expanded #mapFullscreenBtn{display:none!important}
@media(min-width:1021px){
 body.discovery-expanded .discovery-results-layout > .map-column{margin-top:12px!important}
 body.discovery-expanded .discovery-results-layout .map-shell > #mainMapPriceControl{
  display:block!important;visibility:visible!important;opacity:1!important;
  position:absolute!important;left:14px!important;bottom:14px!important;top:auto!important;
  width:min(370px,calc(100% - 28px))!important;z-index:4!important;
 }
}

/* Results filters and linked map prices. */
.nav-leading>.nav-discussions{margin-left:8px;white-space:nowrap}
body.discovery-expanded header .nav-leading>.nav-discussions{display:inline-flex}
.discovery-filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 0 18px;margin-bottom:16px;border-bottom:1px solid #e8eae9}
.discovery-filter-button{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9dcda;border-radius:999px;background:#fff;color:#252925;padding:10px 17px;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.discovery-filter-button:hover{border-color:#7d8580}
.discovery-filter-badge:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:50%;background:#252925;color:#fff;font-size:11px}
.discovery-filter-count{font-size:13px;color:#626b65}
.discovery-filter-bar [role="status"]{flex-basis:100%;font-size:13px;color:#824b3a}
.discovery-filter-bar [role="status"]:empty{display:none}
.discovery-filter-dialog{padding:0;width:min(780px,calc(100% - 28px));max-height:88dvh;border:1px solid #e1e4e1;border-radius:24px;background:#fff;color:#232823;box-shadow:0 20px 80px #0003}
.discovery-filter-dialog::backdrop{background:#17251b55;backdrop-filter:blur(3px)}
.discovery-filter-dialog form{display:flex;flex-direction:column;max-height:86dvh;margin:0}
.discovery-filter-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e8eae8}
.discovery-filter-dialog-head h2{font-size:21px;margin:0}
.discovery-filter-dialog-head button{width:34px;height:34px;border:0;border-radius:50%;background:#f1f3f1;font-size:24px;cursor:pointer}
.discovery-filter-fields{padding:22px 24px;overflow:auto;overscroll-behavior:contain}
.discovery-filter-dialog .classic-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
.discovery-filter-dialog [hidden]{display:none!important}
.discovery-filter-dialog .housing-field{display:grid;gap:7px}
.discovery-filter-dialog label{font-size:13px;font-weight:650}
.discovery-filter-dialog input:not([type="checkbox"]),.discovery-filter-dialog select{width:100%;min-width:0;padding:11px 12px;border:1px solid #d8ded9;border-radius:11px;background:#fff;color:#252925;font:inherit;font-size:14px}
.discovery-filter-dialog small{font-size:11px;color:#747d76;line-height:1.5}
.discovery-filter-dialog .classic-checks,.discovery-filter-dialog .classic-commercial-checks{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.discovery-filter-dialog .classic-check{display:flex;align-items:center;gap:9px}
.discovery-filter-dialog input[type="checkbox"]{width:18px;height:18px;accent-color:#D90043}
.discovery-filter-dialog .classic-commercial-title{grid-column:1/-1;font-weight:700}
.discovery-filter-footer{display:flex;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #e8eae8}
#discoveryFilterError{color:#964737;font-size:13px;padding:0 24px;margin:0}
#discoveryFilterError:empty{display:none}
body:has(.discovery-filter-dialog[open]){overflow:hidden}
.map-attached-price{position:relative;appearance:none;padding:5px 9px;margin:0 0 8px;border:1px solid #d7dfd8;border-radius:9px;background:#fff;color:#213d2a;box-shadow:0 2px 7px #0002;font:750 12px "Manrope",sans-serif;white-space:nowrap;cursor:pointer;z-index:3}
.map-attached-price::after{content:"";position:absolute;width:2px;height:9px;background:#2f9e63;bottom:-9px;left:calc(50% - 1px)}
.map-attached-price:hover{background:#2f9e63;color:white;z-index:5}
body.discovery-expanded[data-discovery-kind="reviews"] #mainMapPriceControl{display:none!important}
@media(max-width:700px){
 .nav-leading>.nav-discussions{padding:8px!important;font-size:11px!important;margin-left:4px}
 .discovery-filter-dialog{width:calc(100% - 16px);border-radius:18px}
 .discovery-filter-fields{padding:18px}
 .discovery-filter-dialog .classic-filter-grid{gap:14px}
 .discovery-filter-footer,.discovery-filter-dialog-head{padding:15px 18px}
 .map-attached-price{font-size:11px;padding:4px 7px}
}
@media(max-width:420px){.discovery-filter-dialog .classic-filter-grid{grid-template-columns:1fr}.discovery-filter-dialog .classic-checks{grid-template-columns:1fr}}

/* MapLibre markers must stay absolutely anchored to their geographic point. */
.map-attached-price{position:absolute!important;top:0;left:0;margin:0!important}
.map-attached-price::after{pointer-events:none}

/* Inline search mode picker and API conversation. */
[data-housing-find][hidden],.home-search-choices[hidden],#homeApiPanel[hidden],#homeApiPanel .housing-shell[hidden]{display:none!important}
.home-search-choices{display:flex;align-items:stretch;gap:8px;min-width:0;flex-shrink:0}
.home-search-mode{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap;padding:10px 15px!important;border:1px solid #dce0dd!important;background:#fff!important;color:#272c28!important;font-size:13px;font-weight:700;box-shadow:0 2px 7px #00000008!important}
.home-search-mode:hover,.home-search-mode[aria-pressed="true"]{background:#f3f5f3!important;border-color:#aab5ad!important}
.home-search-mode:focus-visible{outline:2px solid #D90043;outline-offset:2px}
.home-api-panel{width:100%;min-width:0;margin-top:16px}
.home-api-panel .housing-shell{padding:18px;border-radius:20px;background:#fff;box-shadow:0 8px 24px #00000008}
.home-api-panel .housing-mode-grid{grid-template-columns:1fr;margin-top:14px}
.home-api-panel .housing-mode-card{padding:16px}
.home-api-panel h1,.home-api-panel h2{font-size:22px;line-height:1.2}
.home-api-panel .housing-start-form{grid-template-columns:1fr}
.home-api-panel .housing-messages{max-height:48vh;min-height:170px;padding:15px 0}
.home-api-panel .housing-results{grid-template-columns:1fr}
.home-api-panel .housing-composer{grid-template-columns:1fr auto}
.home-api-panel .housing-chat-head{flex-wrap:wrap;gap:12px}
.home-api-active .hero-copy,.home-api-active .hero-action-note,.home-api-active .hero-microcopy-status-only{display:none!important}
.home-api-active #searchForm #heroAddress,.home-api-active #searchForm>.btn-accent{display:none!important}
.map-discovery-card.is-map-highlighted .map-discovery-image{outline:2px solid #2f9e63;outline-offset:-2px}
.map-discovery-card[data-kind="review"].is-map-highlighted .map-discovery-image{outline-color:#FF004F}
.map-hover-pin{position:absolute!important;width:30px;height:30px;border:4px solid #fff;border-radius:50%;background:#2f9e63;box-shadow:0 0 0 5px #2f9e6340,0 4px 15px #0004;pointer-events:none;z-index:8}
.map-hover-pin.is-review{background:#FF004F;box-shadow:0 0 0 5px #FF004F35,0 4px 15px #0004}
.map-hover-price{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);padding:6px 10px;border:2px solid #2f9e63;border-radius:10px;background:#fff;color:#203b29;font:800 13px "Manrope",sans-serif;white-space:nowrap;box-shadow:0 3px 10px #0003}
.map-hover-price::after{content:"";position:absolute;bottom:-12px;left:calc(50% - 1px);width:2px;height:11px;background:#2f9e63}
.map-attached-price.is-highlighted{background:#2f9e63;color:#fff;box-shadow:0 0 0 3px #2f9e6340}
.map-shell:not(.is-fullscreen){view-transition-name:home-search-map}
::view-transition-group(home-search-map){animation-duration:.45s;animation-timing-function:cubic-bezier(.2,.75,.3,1)}
::view-transition-old(root),::view-transition-new(root){animation:none}
@media(min-width:761px){
 body.home-api-active .hero-grid{height:auto!important;min-height:0!important;align-items:start!important}
 body.home-api-active .hero-grid>.map-column{align-self:start!important;position:sticky!important;top:105px;display:block!important;height:auto!important}
 body.home-api-active:not(.map-fullscreen-open) .hero-grid>.map-column .map-shell:not(.is-fullscreen){height:min(76vh,740px)!important;max-height:740px!important;min-height:420px!important}
}
@media(max-width:760px){
 .home-search-choices-desktop{display:none!important}
 .housing-find-mobile-card .home-search-choices{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .housing-find-mobile-card .home-search-mode{width:100%;min-height:50px}
 .home-api-active #searchForm{display:none!important}
 .home-api-panel .housing-composer{grid-template-columns:1fr}
 .home-api-panel .housing-shell{padding:14px}
}
@media(prefers-reduced-motion:reduce){::view-transition-group(home-search-map){animation-duration:0s}}

body.home-api-active .hero-grid > :first-child > #searchForm > .btn.btn-accent{display:none!important}

/* Balanced, full-width search choices in the same action color as Find a home. */
.home-search-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.housing-find-mobile-card .home-search-choices{width:100%;max-width:none}
.home-search-choices .home-search-mode{
 width:100%;min-width:0;min-height:54px;height:100%;margin:0;
 padding:12px 18px!important;border-radius:18px!important;
 background:var(--jtbs-action-pink,#D90043)!important;
 border:1px solid rgba(184,0,57,.55)!important;color:#fff!important;
 font:inherit;font-size:14px;font-weight:750;line-height:1.2;letter-spacing:-.01em;
 box-shadow:0 6px 16px rgba(217,0,67,.17)!important;
 transition:background-color .16s ease,box-shadow .16s ease;
}
.home-search-choices .home-search-mode:hover{
 background:var(--jtbs-action-pink-hover,#DD0044)!important;color:#fff!important;
 border-color:rgba(184,0,57,.65)!important;transform:none!important;
 box-shadow:0 7px 18px rgba(217,0,67,.22)!important;
}
.home-search-choices .home-search-mode[aria-pressed="true"]{
 background:var(--jtbs-action-pink,#D90043)!important;color:#fff!important;
 box-shadow:inset 0 0 0 2px rgba(255,255,255,.65),0 6px 16px rgba(217,0,67,.17)!important;
}
.home-search-choices .home-search-mode:focus-visible{outline:3px solid rgba(217,0,67,.25);outline-offset:3px}
.home-search-choices-desktop{flex:1 1 240px;min-width:210px}
.home-search-choices-desktop .home-search-mode{min-height:46px;padding:10px 13px!important;border-radius:14px!important;font-size:13px}
@media(max-width:760px){
 .housing-find-mobile-card .home-search-choices{gap:8px}
 .housing-find-mobile-card .home-search-mode{min-height:50px;padding:12px!important;border-radius:16px!important;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.home-search-choices .home-search-mode{transition:none}}

.home-search-choices .home-search-mode{min-height:48px!important;height:48px!important}
.home-search-choices-desktop .home-search-mode{min-height:46px!important;height:46px!important}
@media(max-width:760px){.housing-find-mobile-card .home-search-choices .home-search-mode{min-height:50px!important;height:50px!important}}


/* API conversation shares the filter search layout and keeps the composer near its context. */
body.home-api-active .discovery-results-layout > #mapDiscovery{display:none!important}
body.home-api-active .discovery-results-layout > .home-api-panel{grid-column:1;grid-row:1;margin:12px 0 0;min-width:0}
#homeApiPanel [hidden]{display:none!important}
#homeApiPanel .housing-shell{padding:22px;border:1px solid #e5e7e5;border-radius:22px;background:#fff;background-image:none;box-shadow:none;min-height:0}
#homeApiPanel .housing-chat-head{display:flex;flex-wrap:wrap;gap:18px;padding-bottom:18px}
#homeApiPanel h2{margin:0 0 14px;font-size:24px;line-height:1.25}
#homeApiPanel .housing-chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0}
#homeApiPanel .housing-chat-actions .btn{min-height:42px;padding:10px 15px;font-size:13px;white-space:nowrap}
#homeApiPanel .housing-messages{min-height:0;max-height:min(42dvh,420px);padding:16px 0;overscroll-behavior:contain;overflow-y:auto}
#homeApiPanel .housing-messages:empty{padding:0;height:16px}
#homeApiPanel .housing-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-top:14px;margin:0;background:#fff}
#homeApiPanel .home-api-input-label{grid-column:1/-1;font-size:13px;font-weight:650;color:#4a514c}
#homeApiPanel .housing-composer textarea{min-height:80px;max-height:140px;width:100%;padding:12px 14px;border:1px solid #cbd1cc;border-radius:15px;background:#fff;color:#222;font:inherit;font-size:16px;resize:vertical;box-sizing:border-box}
#homeApiPanel .housing-composer .btn{min-height:46px;align-self:end}
#homeApiPanel .housing-page-status:empty{display:none}
#homeApiPanel .housing-msg{max-width:100%;overflow-wrap:anywhere}
#homeApiPanel .housing-results{grid-template-columns:minmax(0,1fr)}
@media(min-width:761px) and (max-width:1020px){
 body.home-api-active .discovery-results-layout{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:16px}
 body.home-api-active .discovery-results-layout>.map-column{grid-column:2;grid-row:1;position:sticky;top:160px}
 body.home-api-active .discovery-results-layout .map-shell{height:calc(100dvh - 190px);min-height:300px}
}
@media(max-width:760px){
 body.home-api-active .discovery-results-layout{gap:16px}
 #homeApiPanel .housing-shell{padding:16px;border-radius:18px}
 #homeApiPanel .housing-chat-head{gap:12px}
 #homeApiPanel h2{font-size:21px;margin-bottom:10px}
 #homeApiPanel .housing-composer{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 #homeApiPanel .housing-composer .btn{width:auto;padding:10px 14px}
 body.home-api-active .discovery-results-layout>.map-column{grid-row:2;grid-column:1}
 body.home-api-active .discovery-results-layout .map-shell{height:300px;min-height:0}
}

#homeApiPanel .housing-chat-context{order:0!important;min-width:0}
#homeApiPanel .housing-chat-actions{order:1!important;position:static!important;background:#fff;box-shadow:none}
@media(max-width:1020px){
 body.home-api-active header .wrap.nav .discovery-search-pill{grid-column:1/-1!important;grid-row:2!important;position:relative!important;left:auto!important;top:auto!important;transform:none!important;justify-self:center!important;margin:8px auto!important;box-sizing:border-box;max-width:100%!important}
 #homeApiPanel .housing-chat-head{flex-direction:column!important;align-items:flex-start!important}
}

@media(max-width:1020px){
 body.home-api-active header .wrap.nav .nav-actions .nav-review{position:static!important;inset:auto!important;transform:none!important;margin:0!important;align-self:center!important}
}
@media(max-width:760px){
 body.home-api-active:not(.housing-page)>header>.wrap.nav>.nav-actions{grid-column:2/-1!important;grid-row:1!important;width:auto!important;max-width:100%!important;gap:6px!important}
}

/* Match the conversation bubble to the visible map, with only history scrolling. */
@media(min-width:761px){
 body.home-api-active .discovery-results-layout{--home-api-pane-height:max(300px,calc(100dvh - 144px))}
 body.home-api-active .discovery-results-layout > #homeApiPanel{height:var(--home-api-pane-height);min-height:0}
 body.home-api-active .discovery-results-layout #homeApiPanel > .housing-shell{box-sizing:border-box;height:100%;display:flex;flex-direction:column;min-height:0}
 body.home-api-active #homeApiPanel .housing-chat-head,body.home-api-active #homeApiPanel .housing-composer,body.home-api-active #homeApiPanel .housing-paywall,body.home-api-active #homeApiPanel .housing-page-status{flex-shrink:0}
 body.home-api-active #homeApiPanel .housing-messages,body.home-api-active #homeApiPanel .housing-messages:empty{flex:1 1 0;min-height:0;max-height:none;height:auto}
 body.home-api-active .discovery-results-layout .map-shell:not(.is-fullscreen){box-sizing:border-box;height:var(--home-api-pane-height)!important;min-height:0!important;max-height:none!important}
 body.home-api-active .discovery-results-layout .map-column > .map-caption{display:none!important}
}
@media(min-width:761px) and (max-width:1020px){
 body.home-api-active .discovery-results-layout{--home-api-pane-height:max(460px,calc(100dvh - 190px))}
}

/* Compact home listing carousel: one extra property per desktop row. */
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-track{min-height:0}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card{flex-basis:calc((100% - 84px)/7)}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card .map-discovery-image{border-radius:18px}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-heart{width:28px;height:28px;top:8px;right:8px;font-size:25px}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-favorite{top:8px;left:8px;max-width:calc(100% - 48px);padding:6px 8px;font-size:10px}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-description{padding-top:7px}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .discovery-show-all{border-radius:18px}
@media(min-width:1600px){body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card{flex-basis:calc((100% - 98px)/8)}}
@media(min-width:1021px) and (max-width:1200px){body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card{flex-basis:calc((100% - 56px)/5)}}
@media(min-width:761px) and (max-width:1020px){body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card{flex-basis:calc((100% - 42px)/4)}}
@media(max-width:760px){body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-card{flex-basis:calc((100% - 14px)/2.3)}}

/* Align quick-search actions and keep the result count with its section label. */
body.discovery-expanded:not(.home-api-active) .discovery-filter-bar{align-items:flex-end!important}
.discovery-filter-bar .discovery-filter-button{flex:0 0 auto;margin-left:auto;min-height:40px;height:40px;box-sizing:border-box;justify-content:center;padding:9px 15px;line-height:20px}
.discovery-row-label .discovery-filter-count{display:inline-block;margin-left:8px;font:inherit;font-weight:400;color:#737a75;white-space:nowrap}
.discovery-row-label .discovery-filter-count:empty{display:none}
.discovery-circle-arrow svg,.discovery-carousel-controls svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.discovery-carousel-controls button{padding:0;font-size:0;line-height:0}
.discovery-carousel-controls button:not(:disabled):hover{background:#e8eae8}
.discovery-carousel-controls button:disabled{opacity:.35}
body.discovery-expanded .map-discovery-action .discovery-circle-arrow svg{transform:rotate(-90deg)}
@media(max-width:600px){.discovery-filter-bar .discovery-filter-button{margin-left:auto}}

/* Listing information follows the same hierarchy in previews and filter results. */
.map-discovery-card[data-kind="listing"] .map-discovery-description{gap:5px;padding:10px 3px 7px}
.map-discovery-facts,.map-discovery-availability,.map-discovery-charges{display:block;font-size:12px;line-height:1.4;color:#70767b}
.map-discovery-rent{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;margin-top:3px;color:#25292d;line-height:1.4}
.map-discovery-rent strong{font-size:16px;font-weight:750;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.map-discovery-rent>span{font-size:12px;font-weight:500;color:#626970}
.map-discovery-availability{color:#52645a}
.map-discovery-stats{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin-top:3px;color:#777e82;font-size:11px;line-height:1.4}
.map-discovery-stats:empty{display:none}
.map-discovery-stat{display:inline-flex;align-items:center;gap:4px}
.map-discovery-stat svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-card .map-discovery-image{aspect-ratio:4/3;border-radius:18px}
body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-track{row-gap:24px}
@media(min-width:1021px){
 body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .discovery-results-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
}
@media(max-width:760px){
 .map-discovery-card[data-kind="listing"] .map-discovery-description{gap:4px}
 .map-discovery-rent strong{font-size:15px}
 .map-discovery-facts,.map-discovery-availability,.map-discovery-charges{font-size:11px}
 body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-track{gap:20px 12px}
}

/* A compact logo in the search dock, sized to its text rather than the main header. */
body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex:0 0 24px!important;width:24px!important;margin:0 2px 0 0!important}
body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:20px!important;height:26px!important;flex:0 0 20px!important}
body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-logo{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important}
.discovery-search-pill .discovery-pill-action{padding-left:11px;padding-right:11px}
/* One shared information layout for the homepage and filter search. */
.map-discovery-pricing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);align-items:baseline;gap:5px 8px;margin-top:2px}
.map-discovery-pricing .map-discovery-rent{grid-column:1;grid-row:1;margin:0}
.map-discovery-surface{grid-column:2;grid-row:1;text-align:right;font-size:12px;line-height:1.4;font-weight:650;color:#343a3e}
.map-discovery-pricing .map-discovery-availability{grid-column:1/-1;grid-row:2;color:var(--jtbs-action-pink,#D90043);font-weight:600}
.map-discovery-pricing .map-discovery-stats{grid-column:1/-1;grid-row:3;margin-top:0}
.map-discovery-pricing .map-discovery-charges{grid-column:1/-1;grid-row:4}
@media(max-width:420px){
 .discovery-search-pill .discovery-pill-action{padding-left:8px;padding-right:8px}
 body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex-basis:21px!important;width:21px!important;margin-right:0!important}
 body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:18px!important;height:23px!important;flex-basis:18px!important}
 .map-discovery-surface{font-size:11px}
}

/* Keep quick-filter names inside the inputs and center the white search capsule. */
body.discovery-expanded:not(.home-api-active) .discovery-filter-bar{align-items:center!important}
.discovery-quick-filters{align-items:center}
.discovery-quick-filters label{position:relative;display:block;gap:0}
.discovery-quick-filters label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.discovery-quick-filters input::placeholder{color:#747b80;opacity:1}

/* Restore the balanced map split and add breathing room between result cards. */
@media(min-width:1021px){
 body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .discovery-results-layout{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);column-gap:32px}
 body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-track{column-gap:28px}
}
@media(min-width:761px) and (max-width:1020px){
 body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-track{column-gap:24px}
}
/* Views and favorites belong below the area, across from availability. */
.map-discovery-pricing .map-discovery-availability{grid-column:1;grid-row:2}
.map-discovery-pricing .map-discovery-stats{grid-column:2;grid-row:2;align-self:start;justify-content:flex-end;text-align:right}
.map-discovery-pricing .map-discovery-charges{grid-row:3}

/* Keep the search logo legible beside its actions and avoid a repeated heading action. */
body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex-basis:28px!important;width:28px!important}
body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:26px!important;height:34px!important;flex-basis:26px!important}
body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-panel[data-discovery-group="listings"] [data-discovery-action="find-home"]{display:none!important}
@media(max-width:420px){
 body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex-basis:25px!important;width:25px!important}
 body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:22px!important;height:29px!important;flex-basis:22px!important}
}

/* Independent columns prevent wrapped area text from pushing availability down. */
.map-discovery-pricing{align-items:start}
.map-discovery-price-column,.map-discovery-area-column{display:flex;flex-direction:column;min-width:0;gap:5px}
.map-discovery-price-column{align-items:flex-start}
.map-discovery-area-column{align-items:stretch;text-align:right}
.map-discovery-pricing .map-discovery-availability{display:inline-block;align-self:flex-start;box-sizing:border-box;max-width:100%;padding:2px 5px;border-radius:5px;background:#edf8f0;color:#2f9e63;font-weight:600}
.map-discovery-area-column .map-discovery-stats{width:100%;box-sizing:border-box;justify-content:flex-end}
body:not(.discovery-expanded) .map-discovery-price-column{gap:2px}

/* Search location and count stay visible without filling the optional location input. */
body.discovery-expanded .discovery-row-label.discovery-location-heading{font-size:22px;line-height:1.3;font-weight:650;color:#25292d;letter-spacing:-.02em}
body.discovery-expanded .discovery-location-heading .discovery-filter-count{margin-left:0;font:inherit;color:inherit;white-space:normal}
body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex-basis:30px!important;width:30px!important}
body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:28px!important;height:36px!important;flex-basis:28px!important}
@media(max-width:420px){
 body.discovery-expanded .discovery-row-label.discovery-location-heading{font-size:19px}
 body.discovery-expanded header .wrap.nav .discovery-search-pill .brand{flex-basis:27px!important;width:27px!important}
 body.discovery-expanded:not(.housing-page)>header>.wrap.nav .discovery-search-pill .brand .brand-mark{width:24px!important;height:31px!important;flex-basis:24px!important}
}

/* Full addresses in filter results, with a quieter city and postcode line. */
body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-card .map-discovery-street{display:block;font-size:14px;line-height:1.4;font-weight:600;color:#30363a;overflow-wrap:anywhere}
body.discovery-expanded:not(.home-api-active)[data-discovery-kind="listings"] .map-discovery-card .map-discovery-name{font-weight:400;color:#7b8186;font-size:13px}

/* A lighter, compact home preview action with a restrained pointer hover. */
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action{
 font-size:17px;font-weight:650;line-height:1.3;gap:8px;
 transform-origin:left center;transition:transform .16s ease,color .16s ease;
}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action .discovery-circle-arrow{
 width:28px;height:28px;flex:0 0 28px;transition:background-color .16s ease;
}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action .discovery-circle-arrow svg{width:18px;height:18px}
@media(hover:hover) and (pointer:fine){
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action:hover{transform:scale(1.015);color:#1d1d1d!important}
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action:hover .discovery-circle-arrow{background:#e9ebe9}
}
@media(max-width:760px){
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action,
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group="listings"] .map-discovery-action .discovery-circle-arrow{transition:none}
}

/* Keep preview action words still; only the circular arrow responds to hover. */
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action{transform:none!important;transition:none}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action .discovery-circle-arrow{width:28px;height:28px;flex:0 0 28px;transition:transform .16s ease,background-color .16s ease}
body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action .discovery-circle-arrow svg{width:18px;height:18px}
@media(hover:hover) and (pointer:fine){
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action:hover{color:#252525!important}
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action:hover .discovery-circle-arrow{transform:scale(1.05);background:#e9ebe9}
}
.map-discovery-card[data-kind="listing"] .map-discovery-name{font-weight:400;color:#7b8186;text-align:left}
@media(prefers-reduced-motion:reduce){
 body:not(.discovery-expanded) .map-discovery-panel[data-discovery-group] .map-discovery-action .discovery-circle-arrow{transition:none}
}

/* Street and locality share one line under the photo. */
.map-discovery-address-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px;width:100%;min-width:0}
.map-discovery-address-row .map-discovery-street{min-width:0}
.map-discovery-address-row .map-discovery-name{justify-self:end;text-align:right;white-space:nowrap;max-width:100%;color:#7b8186}
@media(max-width:760px){.map-discovery-address-row{column-gap:8px}}

/* Full-width homepage color bands, with the original thumbnail dimensions. */
body:not(.discovery-expanded) #mapDiscovery{
 width:100%;max-width:none;margin:24px 0 0;padding:28px 0 24px;background:#fff;border:0;border-radius:0;
}
body:not(.discovery-expanded) #mapDiscovery .map-discovery-grid{
 padding:0 25px;margin:0 auto;gap:10px;border:0;border-radius:0;background:transparent;box-shadow:none;
}
body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel{
 width:100%;margin-inline:auto;
}
body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel + .map-discovery-panel{padding-top:22px}
body:not(.discovery-expanded) #mapDiscovery .map-discovery-card{flex-basis:calc((100% - 84px)/7)}
body:not(.discovery-expanded) .hero:has(#mapDiscovery){padding-bottom:0;border-bottom:0}
.manifesto-section{padding:0;background:#111419}
.manifesto-section .manifesto{border:0;border-radius:0;background:transparent;box-shadow:none}
.manifesto-section .manifesto::before,.manifesto-section .manifesto::after{display:none!important}
.discovery-results-layout #mapDiscovery .map-discovery-grid.wrap{width:100%;max-width:none;margin:0}
@media(min-width:1600px){
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel{width:100%}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-card{flex-basis:calc((100% - 98px)/8)}
}
@media(min-width:1021px) and (max-width:1200px){
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel{width:100%}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-card{flex-basis:calc((100% - 56px)/5)}
}
@media(min-width:761px) and (max-width:1020px){
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-grid{padding-inline:21px}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel{width:100%}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-card{flex-basis:calc((100% - 42px)/4)}
}
@media(max-width:760px){
 body:not(.discovery-expanded) #mapDiscovery{padding-block:20px;margin-top:18px}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-grid{padding-inline:17px}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-panel{width:100%}
 body:not(.discovery-expanded) #mapDiscovery .map-discovery-card{flex-basis:calc((100% - 14px)/2.3)}
}

/* Match carousel navigation to the adjacent preview action circle. */
body:not(.discovery-expanded) #mapDiscovery .discovery-carousel-controls button{width:28px;height:28px;min-width:28px;min-height:28px;flex:0 0 28px;padding:0;transition:transform .16s ease,background-color .16s ease}
body:not(.discovery-expanded) #mapDiscovery .discovery-carousel-controls button svg{width:18px;height:18px}
@media(hover:hover) and (pointer:fine){
 body:not(.discovery-expanded) #mapDiscovery .discovery-carousel-controls button:not(:disabled):hover{transform:scale(1.05);background:#e9ebe9}
}
@media(prefers-reduced-motion:reduce){
 body:not(.discovery-expanded) #mapDiscovery .discovery-carousel-controls button{transition:none}
}
