/* Zillow-style app chrome for showcase preview. Paper white, gold accents, red map price tags. */
/* Keep the live intro and curated homes at the top. Search sits below in a paper band. */
body.bk-zillow-app{padding-bottom:72px}
body.bk-zillow-app .bk-explore{background:#f4f0e8;color:#16181c;margin:40px -16px 0;padding:28px 16px 40px;border-top:1px solid rgba(201,162,39,.4)}
body.bk-zillow-app .bk-explore h2{margin:0 0 8px;color:#16181c}
body.bk-zillow-app .bk-explore > p{margin:0 0 18px;color:rgba(22,24,28,.72)}
body.bk-zillow-app #bk-search-host,.bk-zillow{background:#f4f0e8}
body.bk-zillow-app .bk-z-panels{display:none}
body.bk-zillow-app.bk-tab-overlay .bk-z-panels{display:block;position:fixed;inset:0 0 72px 0;z-index:50;background:#f4f0e8;overflow:hidden}
body.bk-zillow-app.bk-detail-open .bk-tabbar,body.bk-zillow-app.bk-detail-open .bk-z-panels,
body.bk-zillow-app.bk-filters-open .bk-tabbar{visibility:hidden;pointer-events:none}
body.bk-zillow-app #detail,body.bk-zillow-app #zflow,body.bk-zillow-app .lightbox{z-index:240}
.bk-z-panels{position:fixed;inset:0 0 72px 0;z-index:50;background:#f4f0e8;overflow:hidden}
.bk-z-panel{display:none;position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch}
.bk-z-panel.on{display:block}
.bk-z-panel.search{overflow:hidden;display:none;flex-direction:column}
.bk-z-panel.search.on{display:flex}
.bk-picks{flex:none;background:#fffdf8;border-bottom:1px solid rgba(201,162,39,.35);padding:8px 0 8px}
.bk-picks h2{margin:0 16px 6px;font:700 14px/1.2 Inter,system-ui,sans-serif;color:#16181c}
.bk-picks-row{display:flex;gap:10px;overflow-x:auto;padding:0 16px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.bk-pick{flex:0 0 168px;scroll-snap-align:start;background:#fff;border:1px solid rgba(201,162,39,.35);border-radius:14px;overflow:hidden;color:#16181c;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.08);text-align:left}
.bk-pick img,.bk-pick .bk-nophoto{display:block;width:100%;height:88px;object-fit:cover;background:#ddd6c4}
.bk-pick b{display:block;padding:6px 8px 0;font:700 13px/1.2 Inter,system-ui,sans-serif}
.bk-pick span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:2px 8px 8px;font:400 11px/1.3 Inter,system-ui,sans-serif;color:rgba(22,24,28,.7);max-height:2.7em}
.bk-z-panel.search:has(.bk-mode-map) .bk-picks{display:none}
.bk-search-host,#bk-search-host{flex:1;min-height:calc(100vh - 72px);position:relative;background:#f4f0e8}

/* Top bar: floating filter + search */
.bk-zillow{display:flex;flex-direction:column;height:auto;min-height:calc(100vh - 72px);background:#f4f0e8}
.bk-zillow .bk-ztop{position:sticky;top:0;z-index:60;display:flex;gap:8px;align-items:center;padding:8px 10px 6px;background:rgba(255,253,248,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.bk-fab-filt{position:relative;flex:none;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid rgba(201,162,39,.55);background:#fffdf8;color:#16181c;font:700 13px Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.bk-fab-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:6px;border-radius:999px;background:#b8933f;color:#1f1708;font:700 11px/18px Inter,system-ui,sans-serif}
.bk-fab-n[hidden]{display:none}
.bk-zillow .bk-filters{flex:none;width:100%;min-width:0;margin:0;display:block;min-height:0}
.bk-zillow .bk-area{display:block}
.bk-zillow .bk-area input{width:100%;min-height:44px;border:1px solid rgba(22,24,28,.12);border-radius:999px;background:#fffdf8;padding:0 14px;font:500 15px/1.3 Inter,system-ui,sans-serif;color:#16181c;box-shadow:none;caret-color:#16181c}
.bk-zillow .bk-area input:focus,.bk-zillow .bk-area input:focus-visible{background:#fffdf8;border-color:#b8933f;outline:2px solid #b8933f;outline-offset:0;box-shadow:0 0 0 3px rgba(184,147,63,.28)}
.bk-zillow .bk-area input:-webkit-autofill,.bk-zillow .bk-area input:-webkit-autofill:hover,.bk-zillow .bk-area input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #fffdf8 inset,0 0 0 3px rgba(184,147,63,.28);-webkit-text-fill-color:#16181c;caret-color:#16181c;border-color:#b8933f}
.bk-zillow .bk-zrow,.bk-zillow .bk-ztools{display:contents}
.bk-zillow .bk-search-go{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:#b8933f;color:#1f1708;font:700 14px Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;box-shadow:0 2px 8px rgba(31,23,8,.16)}
.bk-zillow .bk-search-go svg{width:18px;height:18px;flex:none}
.bk-zillow .bk-search-go:hover,.bk-zillow .bk-search-go:focus-visible{background:#c4a24c}
.bk-zillow .bk-search-go:focus-visible{outline:3px solid #b8933f;outline-offset:2px}
.bk-zillow .bk-save{flex:none;min-height:44px;padding:0 12px;border-radius:999px;border:1px solid rgba(184,147,63,.7);background:#fffdf8;color:#16181c;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.bk-zillow .bk-save svg{width:17px;height:17px;flex:none}
.bk-zillow .bk-save-short{display:none}
.bk-zillow .bk-save-full{display:inline}
.bk-zillow .bk-save:hover,.bk-zillow .bk-save:focus-visible{background:#fff;border-color:#b8933f}
.bk-zillow .bk-save:focus-visible{outline:3px solid #b8933f;outline-offset:2px}
.bk-zillow .bk-chips{padding:4px 10px 6px;background:rgba(255,253,248,.92)}
.bk-zillow .bk-chips:empty{display:none}
.bk-zillow .bk-chip{background:#fff;border:1px solid rgba(201,162,39,.5);color:#16181c}
.bk-zillow .bk-saved{padding:0 10px 6px;background:rgba(255,253,248,.92);max-height:88px;overflow:auto}
.bk-zillow .bk-saved:empty{display:none}
.bk-zillow .bk-status:empty{display:none}
.bk-zillow .bk-status{margin:0;padding:0 12px 2px;font:400 11px/1.35 Inter,system-ui,sans-serif;color:rgba(22,24,28,.62);background:transparent;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Full-screen filters */
.bk-filt-page{position:fixed;inset:0;z-index:220;background:rgba(22,24,28,.45);display:flex;align-items:stretch;justify-content:center}
.bk-filt-page[hidden]{display:none!important}
.bk-filt-card{background:#fffdf8;color:#16181c;width:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;height:100%;box-shadow:0 0 40px rgba(0,0,0,.2)}
.bk-filt-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;border-bottom:1px solid rgba(201,162,39,.3)}
.bk-filt-head h2{margin:0;font:700 22px/1.2 Inter,system-ui,sans-serif}
.bk-filt-x{border:0;background:transparent;color:#16181c;font:600 14px Inter,system-ui,sans-serif;cursor:pointer;min-height:44px}
.bk-filt-page,.bk-filt-page *{box-sizing:border-box}
.bk-filt-card{max-width:100%;overflow-x:hidden}
.bk-filt-body{flex:1;overflow:auto;padding:16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));display:grid;gap:14px;align-content:start;min-width:0}
.bk-filt-body label,.bk-filt-price{display:flex;flex-direction:column;gap:6px;font:600 13px Inter,system-ui,sans-serif;color:#16181c;min-width:0;max-width:100%}
.bk-filt-body input,.bk-filt-body select{min-height:44px;width:100%;max-width:100%;min-width:0;border:1px solid rgba(22,24,28,.16);border-radius:12px;padding:0 12px;font:500 16px Inter,system-ui,sans-serif;background:#fff;color:#16181c}
.bk-filt-price{gap:10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.bk-filt-price legend{font:700 15px Inter,system-ui,sans-serif;padding:0;grid-column:1/-1}
.bk-filt-price label{min-width:0}
.bk-filt-price input{width:100%;min-width:0;max-width:100%}
.bk-filt-section{display:grid;gap:10px;min-width:0;padding:0;border:0}
.bk-filt-section legend{font:700 15px Inter,system-ui,sans-serif;padding:0}
.bk-filt-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.bk-filt-checks{display:flex;flex-wrap:wrap;gap:8px 14px}
.bk-filt-checks label{flex:none;flex-direction:row;align-items:center;gap:8px;font:600 14px Inter,system-ui,sans-serif;color:#16181c}
.bk-filt-checks input{width:auto;min-width:0;min-height:20px;accent-color:#b8933f}
.bk-filt-foot{display:flex;gap:10px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid rgba(201,162,39,.3);background:#fffdf8}
.bk-filt-foot .bk-clear{flex:0 0 auto;min-height:48px;padding:0 16px;border-radius:12px;border:1px solid rgba(22,24,28,.2);background:#fff;color:#16181c;font:600 15px Inter,system-ui,sans-serif;cursor:pointer}
.bk-filt-foot .bk-go{flex:1;min-height:48px;border:0;border-radius:12px;background:#b8933f;color:#1f1708;font:700 16px Inter,system-ui,sans-serif;cursor:pointer}

/* Cards with photo carousel */
.bk-zillow .bk-res{display:flex;flex-direction:column;gap:16px;padding:0 0 24px}
.bk-zillow .bk-res-card{position:relative;display:flex;flex-direction:column;min-width:0;background:#fffdf8;border:0;border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.1);color:#16181c;cursor:pointer}
.bk-zillow .bk-car{width:100%;flex:none}
.bk-zillow .bk-res-b{width:100%;min-width:0}
.bk-zillow .bk-car{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:#ddd6c4}
.bk-zillow .bk-car::-webkit-scrollbar{display:none}
.bk-zillow .bk-car img,.bk-zillow .bk-car .bk-nophoto{flex:0 0 100%;width:100%;height:220px;object-fit:cover;scroll-snap-align:start;background:#ddd6c4}
.bk-zillow .bk-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:5px;pointer-events:none;z-index:2}
.bk-zillow .bk-dots i{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.45);box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.bk-zillow .bk-dots i.on{background:#fff;width:7px;height:7px}
.bk-zillow .bk-heart-photo{position:absolute;top:10px;right:10px;z-index:3;width:44px;height:44px;background:transparent;box-shadow:none}
.bk-zillow .bk-heart-photo svg{stroke:#fff;stroke-width:1.85;fill:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))}
.bk-zillow .bk-heart-photo.on svg{fill:#fff;stroke:#fff}
.bk-zillow .bk-res-b{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px}
.bk-zillow .bk-price{font:700 22px/1.15 Inter,system-ui,sans-serif;color:#16181c;white-space:nowrap}
.bk-zillow .bk-facts{font:600 14px/1.35 Inter,system-ui,sans-serif;color:#16181c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-zillow .bk-type{font:500 13px/1.3 Inter,system-ui,sans-serif;color:rgba(22,24,28,.7)}
.bk-zillow .bk-addr{font:400 13px/1.35 Inter,system-ui,sans-serif;color:rgba(22,24,28,.7)}
.bk-zillow .bk-add-tour{align-self:start;margin-top:6px;border:1px solid rgba(201,162,39,.5);background:rgba(201,162,39,.28);color:#1f1708;border-radius:999px;padding:6px 10px;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
.bk-zillow .bk-count{padding:8px 4px 10px;font:700 18px Inter,system-ui,sans-serif;color:#16181c}

/* List vs map vs split */
.bk-map-toggle{position:absolute;left:auto;right:14px;transform:none;bottom:16px;z-index:70;min-width:96px;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:#16181c;color:#fffdf8;font:700 14px Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.28);cursor:pointer}
.bk-zillow.bk-mode-list .bk-map-col{display:none}
.bk-zillow.bk-mode-list .bk-split{display:block;flex:1;min-height:0;overflow:auto}
.bk-zillow.bk-mode-list .bk-sheet{position:relative;height:auto!important;min-height:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible;padding:0 12px 110px}
.bk-zillow.bk-mode-list .bk-sheet-handle,.bk-zillow.bk-mode-list .bk-here{display:none}
.bk-zillow.bk-mode-map{flex:1;min-height:0}
.bk-zillow.bk-mode-map .bk-split{flex:1;position:relative;min-height:0}
.bk-zillow.bk-mode-map .bk-map-col{position:absolute;inset:0}
.bk-zillow.bk-mode-map .bk-map-col .bk-map{position:absolute;inset:0;height:auto;border-radius:0;border:0}
.bk-zillow.bk-mode-map .bk-sheet{position:absolute;left:0;right:0;bottom:0;height:var(--bk-sheet-h, 112px);min-height:88px;background:rgba(255,253,248,.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgba(0,0,0,.16);overflow:hidden;padding:0 12px 8px;z-index:40}
.bk-zillow.bk-mode-map .bk-sheet-handle{display:block}
.bk-zillow.bk-mode-map .bk-here{bottom:calc(var(--bk-sheet-h, 112px) + 12px)}
.bk-zillow.bk-mode-map .bk-map-toggle{left:50%;right:auto;transform:translateX(-50%);bottom:calc(var(--bk-sheet-h, 112px) + 16px)}
.bk-zillow.bk-mode-map .bk-pin-tray{bottom:var(--bk-sheet-h, 112px)}
@media (max-width:799px){
  .bk-zillow.bk-mode-map .bk-saved,
  .bk-zillow.bk-mode-map .bk-status{display:none}
  .bk-zillow.bk-mode-map .bk-chips:empty{display:none}
  .bk-zillow .bk-ztop,.bk-zillow.bk-mode-map .bk-ztop{flex-wrap:wrap;padding:8px 8px 6px;box-shadow:0 1px 0 rgba(22,24,28,.06)}
  .bk-zillow .bk-zrow{display:flex;flex:1 1 100%;align-items:center;gap:6px;min-width:0;width:100%}
  .bk-zillow .bk-ztools{display:flex;flex:1 1 100%;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;width:100%;padding:2px 2px 0}
  .bk-zillow .bk-area,.bk-zillow .bk-area-wrap{flex:1 1 auto;min-width:0}
  .bk-zillow .bk-search-go{flex:1 1 auto;padding:0 12px;font-size:13px;order:1}
  .bk-zillow .bk-save{flex:none;margin-left:0;order:2}
  .bk-zillow .bk-chips{flex:1 0 100%;min-width:0;padding:0;background:transparent;order:3}
  .bk-zillow .bk-save-short{display:inline}
  .bk-zillow .bk-save-full{display:none}
  .bk-zillow .bk-fab-filt{padding:0 10px}
  .bk-zillow .bk-area input{font-size:14px}
  .bk-zillow.bk-mode-map .bk-filters{flex:none}
  .bk-zillow.bk-mode-map .bk-pops{display:flex}
  .bk-zillow.bk-mode-map .bk-pop[data-pop=price],.bk-zillow.bk-mode-map .bk-pop[data-pop=beds]{display:none}
  .bk-zillow .bk-res{display:flex;flex-direction:column;gap:16px}
  #bk-search-host.bk-zillow .bk-res .bk-res-card{
    display:flex;flex-direction:column;width:100%;max-width:none;margin:0;flex:none
  }
  #bk-search-host.bk-zillow .bk-res .bk-res-card .bk-car,
  #bk-search-host.bk-zillow .bk-res .bk-res-card .bk-car img,
  #bk-search-host.bk-zillow .bk-res .bk-res-card .bk-car .bk-nophoto,
  #bk-search-host.bk-zillow .bk-res .bk-res-card > img,
  #bk-search-host.bk-zillow .bk-res .bk-res-card > .bk-nophoto{
    width:100%;max-width:100%;flex:none;height:220px;object-fit:cover;border-radius:0
  }
  #bk-search-host.bk-zillow .bk-res .bk-res-card .bk-res-b{width:100%;min-width:0;padding:12px 14px 14px}
}

@media (min-width:800px){
  .bk-filt-card{height:auto;max-height:92vh;margin:4vh auto;border-radius:20px}
  .bk-zillow.bk-mode-split .bk-split,.bk-zillow.bk-mode-map .bk-split{display:flex;flex-direction:row;flex:1;min-height:0}
  .bk-zillow.bk-mode-split .bk-map-col{position:relative;flex:1 1 58%;min-width:0;display:block}
  .bk-zillow.bk-mode-split .bk-map-col .bk-map{position:absolute;inset:0;height:auto;border-radius:0;border:0}
  .bk-zillow.bk-mode-split .bk-sheet{position:relative;flex:0 0 420px;height:auto!important;max-width:420px;overflow:auto;background:#fffdf8;border-radius:0;box-shadow:-8px 0 24px rgba(0,0,0,.06);padding:8px 14px 40px}
  .bk-zillow.bk-mode-split .bk-sheet-handle{display:none}
  .bk-zillow.bk-mode-split .bk-map-toggle{left:24px;right:auto;transform:none;bottom:24px}
  .bk-zillow.bk-mode-list .bk-res-card{max-width:720px;margin:0 auto;width:100%}
  .bk-zillow .bk-car img,.bk-zillow .bk-car .bk-nophoto{height:280px}
  .bk-z-panels{inset:0 0 72px 0}
}

/* Red Zillow-like price tags: rounded dark red with a pointer tail, white bold $725K */
body.bk-zillow-app .bk-pill{background:#b0182a;color:#fff;border:0;border-radius:6px;padding:4px 8px;font:700 12px/1.1 Inter,system-ui,sans-serif;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 1px 3px rgba(0,0,0,.35)}
body.bk-zillow-app .bk-pill:after{content:"";position:absolute;left:50%;bottom:-5px;margin-left:-5px;border:5px solid transparent;border-top-color:#b0182a}
body.bk-zillow-app .bk-pill.heart,body.bk-zillow-app .bk-pill.seen,body.bk-zillow-app .bk-pill.both{background:#b0182a}
body.bk-zillow-app .bk-pill.heart:after,body.bk-zillow-app .bk-pill.seen:after{border-top-color:#b0182a}
body.bk-zillow-app .bk-pill.both{box-shadow:0 0 0 2px #b8933f,0 1px 3px rgba(0,0,0,.35)}
body.bk-zillow-app .bk-pill-new,body.bk-zillow-app .bk-pill-h{color:#fff}
body.bk-zillow-app .bk-cluster{background:#b0182a;color:#fff;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
body.bk-zillow-app .bk-pill.has-photo{background:#fff;border-radius:8px;overflow:visible;padding:0;box-shadow:0 2px 8px rgba(0,0,0,.28)}
body.bk-zillow-app .bk-pill.has-photo .bk-pill-ph{position:relative;display:block;border-radius:8px 8px 0 0;overflow:hidden;line-height:0}
body.bk-zillow-app .bk-pill.has-photo .bk-pill-ph img{width:72px;height:54px;object-fit:cover}
body.bk-zillow-app .bk-pill.has-photo .bk-pill-p{background:#b0182a;color:#fff;width:100%;justify-content:center;border-radius:0 0 8px 8px;padding:3px 6px 7px;font:700 12px/1.1 Inter,system-ui,sans-serif}
body.bk-zillow-app .bk-pill.has-photo:after{border-top-color:#b0182a}
body.bk-zillow-app .bk-pill.has-photo .bk-pill-new{position:absolute;top:4px;left:4px;z-index:2;background:#b0182a;color:#fff;border-radius:3px;padding:1px 4px;font:700 8px/1.2 Inter,system-ui,sans-serif}

/* Pin tap carousel */
.bk-pin-tray{position:absolute;left:0;right:0;bottom:0;z-index:45;padding:0 0 8px;background:linear-gradient(180deg,transparent,rgba(22,24,28,.25) 18%,rgba(22,24,28,.2))}
.bk-pin-tray[hidden]{display:none}
.bk-pin-tray-row{display:flex;gap:10px;overflow-x:auto;padding:8px 12px 12px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;align-items:stretch}
.bk-pin-tray .bk-res-card{flex:0 0 232px;width:232px;max-width:232px;scroll-snap-align:start;margin:0;display:flex;flex-direction:column;max-height:280px}
.bk-pin-tray .bk-car{flex:none;height:128px}
.bk-pin-tray .bk-car img,.bk-pin-tray .bk-car .bk-nophoto{height:128px}
.bk-pin-tray .bk-res-b{padding:8px 10px 10px}
.bk-pin-tray .bk-price{font-size:16px}
.bk-pin-tray .bk-add-tour{margin-top:4px}
.bk-pin-tray-x{position:absolute;top:8px;right:10px;z-index:2;min-height:36px;padding:0 12px;border-radius:999px;border:0;background:#fffdf8;color:#16181c;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
.bk-zillow.bk-mode-map .bk-pin-tray{bottom:var(--bk-sheet-h, 112px)}
.bk-zillow.bk-mode-split .bk-pin-tray{bottom:12px}

/* Frosted tab bar */
.bk-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:80;display:flex;gap:0;background:rgba(255,253,248,.86);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid rgba(201,162,39,.35);padding:4px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(0,0,0,.1)}
.bk-tabbar button{flex:1;border:0;background:transparent;color:#5c5348;font:600 10.5px/1.15 Inter,system-ui,sans-serif;padding:6px 2px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px}
.bk-tabbar button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}
.bk-tabbar button[aria-selected="true"]{color:#1f1708}
.bk-tabbar button[aria-selected="true"] svg{stroke:#b8933f}
.bk-page{max-width:720px;margin:0 auto;padding:16px 16px 32px;color:#16181c}
.bk-page h1{margin:0 0 8px;font:700 24px/1.2 Inter,system-ui,sans-serif}
.bk-page p{margin:0 0 14px;font:400 15px/1.5 Inter,system-ui,sans-serif;color:rgba(22,24,28,.78)}
.bk-page .bk-empty{background:#fffdf8}
.bk-upd-card,.bk-tour-card,.bk-inbox-card{background:#fffdf8;border:1px solid rgba(201,162,39,.35);border-radius:16px;padding:14px;margin:0 0 12px;color:#16181c;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.bk-upd-card b,.bk-tour-card b{display:block;font:700 16px/1.25 Inter,system-ui,sans-serif}
.bk-upd-k{display:inline-block;margin:0 0 6px;font:700 10px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#7a5a12;background:rgba(201,162,39,.28);border-radius:999px;padding:3px 8px}
.bk-upd-k.drop{color:#8a1d14;background:#fff4f2}
.bk-tour-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.bk-tour-tools a,.bk-tour-tools button{min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;border:1px solid rgba(201,162,39,.55);background:rgba(201,162,39,.4);color:#1f1708;font:600 13px Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer}
.bk-tour-map{height:220px;border-radius:16px;overflow:hidden;margin:0 0 14px;border:1px solid rgba(201,162,39,.35);background:#e8e3d6}
.bk-tour-card{display:flex;gap:10px;align-items:center}
.bk-tour-card img{width:72px;height:56px;object-fit:cover;border-radius:8px;background:#ddd6c4}
.bk-tour-num{flex:none;width:28px;height:28px;border-radius:999px;background:#b8933f;color:#1f1708;font:700 13px/28px Inter,system-ui,sans-serif;text-align:center}
.bk-tour-acts{margin-left:auto;display:flex;gap:4px}
.bk-tour-acts button{border:0;background:transparent;color:#16181c;font:600 12px Inter,system-ui,sans-serif;cursor:pointer;min-height:40px}
.bk-inbox-card{text-align:left}
.bk-inbox-card h2{margin:0 0 8px;font:700 18px/1.25 Inter,system-ui,sans-serif}
/* Couples bar is fixed on the body, so reserve space under it. */
body.bk-zillow-app .bk-who-bar{
  position:sticky;top:0;z-index:40;
  height:auto;box-sizing:border-box;margin:0;
  background:rgba(15,15,15,.92);color:#e8d193;
  border-bottom:1px solid rgba(201,162,39,.35)
}
body.bk-zillow-app .bk-who-bar button{color:#e8d193;border-color:rgba(201,162,39,.45)}
body.bk-zillow-app .bk-who-bar button.on{background:rgba(201,162,39,.5);color:#1f1708}

@media (min-width:800px){
  .bk-tabbar button{font-size:12px;padding:8px 4px}
  .bk-page{padding-top:28px}
}

@media (min-width:800px){
  .bk-z-panel.search.on,.bk-search-host,.bk-zillow{height:100%;min-height:0}
  .bk-zillow{display:flex;flex-direction:column}
  .bk-zillow .bk-filters,.bk-zillow .bk-status{flex:none}
  .bk-zillow .bk-split{flex:1 1 auto;min-height:0}
  .bk-zillow.bk-mode-split .bk-res-card{max-width:none}
  .bk-zillow.bk-mode-split .bk-car img,.bk-zillow.bk-mode-split .bk-car .bk-nophoto{height:160px}
  .bk-zillow .bk-map-toggle{display:none}
}

/* Popovers for price, beds, type (Apply to commit). Hidden on a narrow phone. */
 .bk-pops{display:flex;align-items:center;gap:6px;flex:none;flex-wrap:wrap}
@media (max-width:799px){.bk-pop[data-pop=price],.bk-pop[data-pop=beds]{display:none}}
@media (min-width:800px){
  .bk-pops{display:flex}
  .bk-zillow .bk-ztop{flex-wrap:wrap;gap:8px}
  .bk-zillow .bk-zrow,.bk-zillow .bk-ztools{display:contents}
  .bk-zillow .bk-search-go{order:8}
  .bk-zillow .bk-save{order:9}
  .bk-zillow .bk-chips{order:20;flex:1 0 100%}
  .bk-zillow .bk-saved{order:21;flex:1 0 100%}
}
.bk-pop{position:relative}
.bk-pop-btn{min-height:44px;padding:0 12px;border-radius:999px;border:1px solid rgba(201,162,39,.55);background:#fffdf8;color:#16181c;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.bk-pop-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:80;min-width:240px;padding:12px;border-radius:14px;background:#fffdf8;border:1px solid rgba(201,162,39,.4);box-shadow:0 12px 28px rgba(0,0,0,.16);display:grid;gap:10px}
.bk-pop-panel[hidden]{display:none!important}
.bk-pop-panel label{display:flex;flex-direction:column;gap:4px;font:600 12px Inter,system-ui,sans-serif;color:#16181c}
.bk-pop-panel input,.bk-pop-panel select{min-height:40px;border:1px solid rgba(22,24,28,.16);border-radius:10px;padding:0 10px;font:500 14px Inter,system-ui,sans-serif;background:#fff;color:#16181c}
.bk-pop-apply{min-height:40px;border:0;border-radius:10px;background:#b8933f;color:#1f1708;font:700 14px Inter,system-ui,sans-serif;cursor:pointer}

.bk-count-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0 8px}
.bk-count-row .bk-count{padding:0;margin:0}
.bk-sort-lab select{min-height:36px;border:1px solid rgba(201,162,39,.45);border-radius:999px;background:#fffdf8;color:#16181c;font:600 12px Inter,system-ui,sans-serif;padding:0 10px}

/* Card chips, arrows, broker, outline */
.bk-card-chips{position:absolute;left:8px;top:8px;z-index:2;display:flex;flex-wrap:wrap;gap:4px;max-width:70%}
.bk-card-chips em{font-style:normal;font:700 10px/1 Inter,system-ui,sans-serif;letter-spacing:.02em;background:rgba(255,253,248,.94);color:#16181c;border-radius:6px;padding:3px 6px;box-shadow:0 1px 4px rgba(0,0,0,.2)}
 .bk-car-prev,.bk-car-next{display:block;position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:32px;height:32px;border:0;border-radius:999px;background:rgba(255,253,248,.92);cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.bk-car-prev{left:8px}.bk-car-next{right:8px}
.bk-car-prev:before,.bk-car-next:before{content:"";display:block;width:8px;height:8px;border-left:2px solid #16181c;border-bottom:2px solid #16181c;margin:0 auto}
.bk-car-prev:before{transform:rotate(45deg);margin-left:10px}
.bk-car-next:before{transform:rotate(-135deg);margin-right:10px}
@media (hover:hover){
  .bk-res-card:hover .bk-car-prev,.bk-res-card:hover .bk-car-next{display:block}
}
.bk-office{font:500 11px/1.3 Inter,system-ui,sans-serif;color:rgba(22,24,28,.72);text-transform:uppercase;letter-spacing:.02em}
#bk-search-host.bk-zillow .bk-res-card{overflow:visible;scroll-margin:16px}
#bk-search-host.bk-zillow .bk-res-card .bk-car{border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden}
#bk-search-host.bk-zillow .bk-res-card.bk-active,
#bk-search-host.bk-zillow .bk-res-card.flash{
  outline:2px solid #b8933f;
  outline-offset:3px;
  box-shadow:0 0 0 3px #fffdf8, 0 0 0 5px #b8933f, 0 8px 22px rgba(0,0,0,.14);
  z-index:2
}
.bk-zillow .bk-facts{font:600 13px/1.35 Inter,system-ui,sans-serif}

/* Dark red price tags and dense red dots */
.bk-reddot{width:100%;height:100%;border-radius:999px;background:#b0182a;box-shadow:0 1px 4px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.7)}
.bk-pinwrap.bk-hot{z-index:800!important}
.bk-pinwrap.bk-hot .bk-pill,.bk-pinwrap.bk-hot .bk-reddot{transform:scale(1.28);transform-origin:center bottom}

/* Mini card on pin tap */
.bk-mini-wrap{position:absolute;left:12px;top:12px;right:auto;bottom:auto;z-index:650;width:260px;max-width:calc(100% - 24px);padding:0;background:transparent;pointer-events:auto}
.bk-mini-wrap[hidden]{display:none}
.bk-zillow.bk-mode-map .bk-pin-tray.bk-mini-wrap,.bk-zillow.bk-mode-split .bk-pin-tray.bk-mini-wrap{bottom:auto;top:12px;left:12px;z-index:650}
@media (max-width:799px){
  #bk-search-host.bk-zillow.bk-mode-map,.bk-zillow.bk-mode-map{position:fixed;inset:0 0 72px 0;z-index:45;height:auto;min-height:0;width:100%;max-height:none;background:#f4f0e8}
  .bk-zillow.bk-mode-map .bk-pin-tray.bk-mini-wrap{position:absolute;top:12px;left:12px;bottom:auto;z-index:650}
}
.bk-mini-wrap .bk-mini{width:100%;max-width:260px;margin:0;cursor:pointer}
.bk-mini-wrap .bk-car,.bk-mini-wrap .bk-car img,.bk-mini-wrap .bk-car .bk-nophoto{height:140px}
.bk-mini-wrap .bk-pin-tray-x{position:absolute;top:8px;right:8px;z-index:4}

/* Auto map search replaces the manual area button */
.bk-zillow .bk-here{display:none}

/* Two column cards on a wide split view */
@media (min-width:800px){
  .bk-zillow.bk-mode-split .bk-res{display:flex;flex-direction:column;gap:14px}
  .bk-zillow.bk-mode-split .bk-car img,.bk-zillow.bk-mode-split .bk-car .bk-nophoto{height:160px}
  .bk-zillow.bk-mode-list .bk-res{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
  body.bk-zillow-app.bk-detail-open .bk-z-panels{visibility:visible;pointer-events:auto}
  body.bk-zillow-app.bk-detail-open .bk-tabbar{visibility:visible;pointer-events:auto}
}

/* Keep the custom curated detail above the app, as an overlay */
body.bk-zillow-app #detail,body.bk-zillow-app #zflow{z-index:260}

/* Do not shrink result cards to fit the sheet. Scroll the list instead. */
.bk-zillow .bk-res-card,.bk-zillow .bk-car,.bk-zillow .bk-car img{flex-shrink:0}
.bk-zillow.bk-mode-split .bk-sheet{display:block;overflow-y:auto;min-height:0}
.bk-zillow.bk-mode-split .bk-res{display:block}
.bk-zillow.bk-mode-split .bk-res-card{margin:0 0 14px}

/* Keep the detail back control above the app chrome so desktop close is reliable */
body.bk-zillow-app.bk-detail-open #zback.zback,body.bk-zillow-app #zback.zback{z-index:2000;pointer-events:auto}

/* Round floating map buttons (Layers + locate), paper white, gold ring, not charcoal */
body.bk-zillow-app .bk-map-tools-z{position:absolute;top:auto;left:12px;bottom:16px;z-index:500;pointer-events:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.bk-zillow.bk-mode-map .bk-map-tools-z{bottom:calc(var(--bk-sheet-h, 112px) + 16px)}
.bk-zillow.bk-mode-split .bk-map-tools-z{bottom:16px;left:12px}
.bk-map-fabs{display:flex;flex-direction:column;gap:8px;pointer-events:auto}
.bk-map-fab{width:44px;height:44px;border-radius:999px;border:1px solid rgba(201,162,39,.5);background:#fffdf8;color:#16181c;box-shadow:0 2px 10px rgba(0,0,0,.16);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.bk-map-fab svg{width:22px;height:22px;fill:none;stroke:#16181c;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.bk-map-fab:disabled{opacity:.55}
.bk-map-layers{pointer-events:auto;background:#fffdf8;color:#16181c;border:1px solid rgba(201,162,39,.45);border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.16);padding:8px;min-width:160px;display:flex;flex-direction:column;gap:4px}
.bk-map-layers[hidden]{display:none}
.bk-map-layers button{border:0;background:transparent;color:#16181c;text-align:left;min-height:40px;padding:0 10px;border-radius:8px;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
.bk-map-layers button.on{background:rgba(201,162,39,.35)}
.bk-map-lot{display:flex;gap:8px;align-items:center;min-height:40px;padding:0 10px;font:600 14px Inter,system-ui,sans-serif;color:#16181c;cursor:pointer}
.bk-map-note{pointer-events:none;margin:0;padding:6px 10px;border-radius:10px;background:#fffdf8;color:#16181c;font:600 12px/1.3 Inter,system-ui,sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.bk-map-note[hidden]{display:none}
.bk-zillow.bk-mode-map .leaflet-bottom{bottom:calc(var(--bk-sheet-h, 112px) + 8px)}
.bk-zillow{min-height:calc(100vh - 72px)}
.bk-zillow.bk-mode-map{height:calc(100vh - 72px)}
@media (min-width:800px){
  body.bk-zillow-app .bk-explore{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
}

/* Search-map parcel tiles are Pima's default magenta; restyle on a dedicated pane. Detail 'From above' gold outline is a separate Leaflet polygon and is not affected. */
.leaflet-pane.bk-parcels-light{filter:grayscale(1) sepia(.22) brightness(.62) contrast(.85);opacity:.38}
.leaflet-pane.bk-parcels-sat{filter:grayscale(1) sepia(.5) saturate(1.2) brightness(1.15);opacity:.55}
/* bk22 memory: paged list and light cards */
#bk-search-host.bk-zillow .bk-show-more{display:block;width:100%;margin:6px 0 18px;min-height:48px;border-radius:999px;border:1px solid rgba(201,162,39,.6);background:#fffdf8;color:#16181c;font:600 15px Inter,system-ui,sans-serif;cursor:pointer}
#bk-search-host.bk-zillow .bk-show-more:focus-visible{outline:2px solid #b8933f;outline-offset:2px}
@media (max-width:799px){
  #bk-search-host.bk-zillow .bk-res .bk-res-card{content-visibility:auto;contain-intrinsic-size:auto 360px}
}

/* bk22: popover panels must sit above the results list on desktop */
@media (min-width:800px){.bk-zillow .bk-filters{position:relative;z-index:70}}

/* bk23: windowed list chunks. Live chunks do not affect layout; collapsed ones keep their height. */
#bk-search-host .bk-res > .bk-chunk{display:contents}
#bk-search-host .bk-res > .bk-chunk[data-gone]{display:block;grid-column:1/-1;width:100%;flex:none}

/* bk24: phone search is map first. A full-height map with a bottom sheet that snaps at peek, half and full. Desktop split view is untouched. */
@media (max-width:799px){
  #bk-search-host.bk-zillow.bk-mode-map{position:relative;inset:auto;z-index:1;width:auto;margin:0 -16px;height:calc(100vh - 72px);height:calc(100svh - 72px - env(safe-area-inset-bottom,0px));min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column}
  #bk-search-host.bk-zillow.bk-mode-map .bk-split{flex:1 1 auto;position:relative;min-height:0;overflow:hidden;display:block}
  #bk-search-host.bk-zillow.bk-mode-map .bk-map-col{position:absolute;inset:0;min-height:0}
  #bk-search-host.bk-zillow.bk-mode-map .bk-sheet{position:absolute;left:0;right:0;top:0;bottom:auto;height:100%!important;min-height:0;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:hidden;padding:0 12px 24px;border-radius:20px 20px 0 0;background:#fffdf8;box-shadow:0 -10px 34px rgba(0,0,0,.2);z-index:40;will-change:transform;overscroll-behavior:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch}
  #bk-search-host.bk-zillow.bk-mode-map[data-sheet="full"] .bk-sheet{overflow-y:auto;touch-action:auto}
  #bk-search-host.bk-zillow.bk-mode-map .bk-sheet > *{flex:none}
  #bk-search-host.bk-zillow.bk-mode-map .bk-sheet-handle{display:block;order:0;position:sticky;top:0;z-index:5;margin:0 -12px;width:calc(100% + 24px);height:26px;background:#fffdf8;border-radius:20px 20px 0 0;touch-action:none;cursor:grab}
  #bk-search-host.bk-zillow.bk-mode-map .bk-count-row{order:1;position:sticky;top:26px;z-index:5;margin:0 -12px;padding:2px 16px 10px;background:#fffdf8;touch-action:none;min-height:44px}
  #bk-search-host.bk-zillow.bk-mode-map .bk-sim{order:2;margin-top:6px}
  #bk-search-host.bk-zillow.bk-mode-map .bk-res{order:3}
  #bk-search-host.bk-zillow.bk-mode-map .bk-more-wrap{order:4}
  #bk-search-host.bk-zillow.bk-mode-map[data-sheet="peek"] .bk-sort-lab{visibility:hidden}
  #bk-search-host.bk-zillow.bk-mode-map.bk-sheet-dragging .bk-sheet{box-shadow:0 -14px 40px rgba(0,0,0,.26)}
  #bk-search-host.bk-zillow.bk-mode-map .bk-map-tools-z{bottom:calc(var(--bk-sheet-h, 100px) + 14px);transition:opacity .15s}
  #bk-search-host.bk-zillow.bk-mode-map[data-sheet="full"] .bk-map-tools-z,
  #bk-search-host.bk-zillow.bk-mode-map.bk-sheet-dragging .bk-map-tools-z{opacity:0;pointer-events:none}
  #bk-search-host.bk-zillow.bk-mode-map .bk-map-toggle{display:none}
  #bk-search-host.bk-zillow.bk-mode-map[data-sheet="full"] .bk-map-toggle{display:block;left:50%;right:auto;transform:translateX(-50%);bottom:16px;z-index:70}
  #bk-search-host.bk-zillow.bk-mode-map .bk-chips:not(:empty){display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  #bk-search-host.bk-zillow.bk-mode-map .bk-chips::-webkit-scrollbar{display:none}
  #bk-search-host.bk-zillow.bk-mode-map .bk-chip{flex:none;white-space:nowrap}
  #bk-search-host.bk-zillow.bk-mode-map .bk-pin-tray.bk-mini-wrap{top:10px}
}

/* bk24: couples bar is sticky at the top on Palmer; keep the map-first search clear of it */
@media (max-width:799px){
  body:has(.bk-who-bar) #bk-search-host.bk-zillow{scroll-margin-top:44px}
  body:has(.bk-who-bar) #bk-search-host.bk-zillow.bk-mode-map{height:calc(100vh - 72px - 44px);height:calc(100svh - 72px - 44px - env(safe-area-inset-bottom,0px))}
}

/* bk25: Zillow style listing sections (real data only) */
.bkd-cut{display:inline-block;margin-top:8px;padding:4px 10px;border-radius:999px;background:rgba(179,38,46,.22);border:1px solid rgba(240,120,125,.55);color:#ffb3b6;font:700 12px/1.3 Inter,system-ui,sans-serif;letter-spacing:.02em}
.bkd-est{appearance:none;display:flex;align-items:center;gap:10px;width:100%;margin-top:10px;padding:9px 12px;border-radius:12px;border:1px solid rgba(232,209,147,.35);background:rgba(232,209,147,.13);color:#f3e2b0;text-align:left;cursor:pointer;font:inherit}
.bkd-est b{font:700 15px/1.2 Inter,system-ui,sans-serif;color:#fff;white-space:nowrap}
.bkd-est span{flex:1;min-width:0;font:12px/1.3 Inter,system-ui,sans-serif;color:rgba(243,226,176,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bkd-est i{width:8px;height:8px;border-right:2px solid #e8d193;border-bottom:2px solid #e8d193;transform:rotate(-45deg);flex:none}
.bkd-hc{display:flex;gap:8px;margin-left:auto}
.bkd-call{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;border:1px solid rgba(232,209,147,.7);color:#e8d193;font:700 13px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;text-decoration:none;background:transparent}
.bkd-text{letter-spacing:.04em}
.zsheet.open .bkd-hc{display:none}
.bkd-cta{flex:none;display:none;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#0b0b0b;border-top:1px solid rgba(201,164,92,.55)}
.bkd-cta a{flex:1;min-height:44px;font-size:14px}
.bkd-cta.fx{position:fixed;left:0;right:0;bottom:0;max-width:760px;margin:0 auto;z-index:545}
.zsheet.open ~ .bkd-cta.fx{display:flex}
.zbody .dpanel{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
@media (min-width:1000px){.bkd-hc{display:none}.bkd-cta.in{display:flex}.zsheet.open ~ .bkd-cta.fx,.bkd-cta.fx{display:none}.zbody .dpanel{padding-bottom:28px}}
.bkd-sec[hidden],.bkd-more[hidden],.bkd-cust[hidden]{display:none!important}
.bkd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.bkd-grid.bkd-more{margin-top:10px}
.bkd-tile{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.62);border:1px solid rgba(150,121,58,.32);min-width:0}
.bkd-tile.wide{grid-column:1/-1}
.bkd-tile span{display:block;font:600 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#7a5f22}
.bkd-tile b{display:block;margin-top:3px;font:600 15px/1.35 Inter,system-ui,sans-serif;color:#1f1f1f;overflow-wrap:anywhere}
.bkd-btn{appearance:none;margin-top:12px;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid rgba(138,109,47,.8);background:rgba(255,255,255,.55);color:#5b4513;font:700 13px/1 Inter,system-ui,sans-serif;letter-spacing:.05em;cursor:pointer}
.bkd-btn.ghost{background:transparent;margin-top:0}
.bkd-link{display:inline-block;margin-top:12px;color:#7a5f22;font:700 14px/1.4 Inter,system-ui,sans-serif}
.bkd-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.bkd-chips.bkd-more{margin-top:8px}
.bkd-chip{padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(150,121,58,.4);font:500 13.5px/1.2 Inter,system-ui,sans-serif;color:#2b2416}
.bkd-rem{margin:16px 0 0;font:16px/1.65 Inter,system-ui,sans-serif;color:#2b2416;white-space:pre-line}
.bkd-rem.clamp{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.bkd-pay-total{display:flex;align-items:baseline;gap:6px}
.bkd-pay-total b{font:600 38px/1.1 Inter,system-ui,sans-serif;color:#1f1f1f}
.bkd-pay-total span{font:600 15px/1 Inter,system-ui,sans-serif;color:#5b4d33}
.bkd-stack{display:flex;height:14px;margin:12px 0 14px;border-radius:8px;overflow:hidden;background:rgba(0,0,0,.08)}
.bkd-stack i{display:block;min-width:4px}
.b-pi{background:#7a5f22}.b-tax{background:#c9a45c}.b-hoa{background:#3f7d6b}.b-ins{background:#8d98a5}
.bkd-leg{list-style:none;margin:0;padding:0}
.bkd-leg li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid rgba(150,121,58,.25);font:14.5px/1.3 Inter,system-ui,sans-serif}
.bkd-leg li i{width:11px;height:11px;border-radius:3px;flex:none}
.bkd-leg li span{flex:1;color:#3a3229}.bkd-leg li b{color:#1f1f1f}
.bkd-fine{margin:10px 0 0;font:12.5px/1.5 Inter,system-ui,sans-serif;color:#6b5d43}
.bkd-fine a{color:#7a5f22}
.bkd-cust{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;padding:14px;border-radius:14px;background:rgba(255,255,255,.6);border:1px solid rgba(150,121,58,.4)}
.bkd-cust label{display:flex;flex-direction:column;gap:5px;font:600 12px/1.2 Inter,system-ui,sans-serif;color:#5b4d33;letter-spacing:.04em}
.bkd-cust input,.bkd-cust select{height:44px;padding:0 12px;border-radius:10px;border:1px solid rgba(138,109,47,.6);background:#fff;color:#1f1f1f;font:16px Inter,system-ui,sans-serif;min-width:0}
.bkd-cust.bad input{border-color:#b3262e}
.bkd-dp{grid-column:1/-1;font:13px/1.4 Inter,system-ui,sans-serif;color:#3a3229}
.bkd-cust .bkd-btn{grid-column:1/-1}
.bkd-flood b{font:600 16px/1.4 Inter,system-ui,sans-serif;color:#1f1f1f}
.bkd-map{height:260px;border-radius:14px;border:1px solid rgba(150,121,58,.5);margin-top:8px;overflow:hidden}
.bkd-schools{list-style:none;margin:6px 0 0;padding:0}
.bkd-school{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid rgba(150,121,58,.25)}
.bkd-school div{flex:1;min-width:0}.bkd-school b{display:block;font:600 15px/1.3 Inter,system-ui,sans-serif;color:#1f1f1f}
.bkd-school span{display:block;margin-top:2px;font:13px/1.4 Inter,system-ui,sans-serif;color:#5b4d33}
.bkd-school em{display:block;font-style:normal;font-weight:700;color:#3f7d6b;margin-top:2px}
.bkd-school a{display:inline-block;margin-top:4px;font:600 13px/1.4 Inter,system-ui,sans-serif;color:#7a5f22}
.bkd-school u{text-decoration:none;font:600 13px/1.4 Inter,system-ui,sans-serif;color:#1f1f1f;white-space:nowrap}
.bkd-grade{flex:none;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font:700 17px/1 Inter,system-ui,sans-serif;color:#fff;background:#3f7d6b}
.bkd-grade.g-C{background:#b8892f}.bkd-grade.g-D,.bkd-grade.g-F{background:#b3262e}
.bkd-car{position:relative}
.bkd-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 10px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.bkd-track::-webkit-scrollbar{display:none}
.bkd-card{flex:0 0 218px;scroll-snap-align:start;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.75);border:1px solid rgba(150,121,58,.35);cursor:pointer}
.bkd-card .ph{position:relative;height:132px;background:#e9dfc2}
.bkd-card .ph img{width:100%;height:100%;object-fit:cover;display:block}
.bkd-card .bd{padding:10px 12px 12px}
.bkd-card .bd b{display:block;font:700 16px/1.3 Inter,system-ui,sans-serif;color:#1f1f1f}
.bkd-card .bd span{display:block;font:12.5px/1.4 Inter,system-ui,sans-serif;color:#5b4d33}
.bkd-card .bd em{display:block;margin-top:2px;font:normal 12.5px/1.4 Inter,system-ui,sans-serif;color:#3a3229;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bkd-nav{position:absolute;top:56px;z-index:2;width:36px;height:36px;border-radius:50%;border:1px solid rgba(138,109,47,.7);background:rgba(255,253,245,.95);color:#5b4513;font:700 22px/1 Inter,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.bkd-nav.prev{left:-6px}.bkd-nav.next{right:-6px}
@media (hover:none){.bkd-nav{display:none}}

/* bk26: keep the similar row subtitle readable on the cream card */
#bk-search-host .bk-sim .bk-sim-sub,#bk-search-host .bk-sim p.bk-sim-sub{color:#5c5348!important;opacity:1}

/* bk28: hide broken-image alt text in the photo well; the caption is for screen readers */
.bk-zillow .bk-car img{color:transparent;font-size:0}



/* bk29: typeahead. The list is attached to document.body so the map cannot cover it. */
.bk-zillow .bk-area,.bk-zillow .bk-area-wrap{position:relative;flex:1 1 160px;min-width:0;overflow:visible}
.bk-zillow .bk-filters,.bk-zillow .bk-ztop{overflow:visible}
.bk-zillow .bk-area input{padding-right:40px}
.bk-zillow .bk-area input[type="search"]::-webkit-search-cancel-button,
.bk-zillow .bk-area input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.bk-zillow .bk-area-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:999px;background:transparent;color:#16181c;font:600 22px/1 Inter,system-ui,sans-serif;cursor:pointer;z-index:5}
.bk-zillow .bk-area-x:hover,.bk-zillow .bk-area-x:focus{background:rgba(22,24,28,.08)}
.bk-zillow .bk-chip{max-width:min(72vw,280px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk-suggest{position:fixed;z-index:2000;background:#fffdf8;border:1px solid rgba(201,162,39,.55);border-radius:16px;box-shadow:0 12px 32px rgba(31,23,8,.2);max-height:min(52vh,420px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px;box-sizing:border-box}
.bk-suggest[hidden]{display:none}
.bk-suggest .bk-sg-item{display:block;width:100%;text-align:left;min-height:48px;padding:10px 12px;border:0;background:transparent;border-radius:12px;color:#16181c;cursor:pointer;font:inherit}
.bk-suggest .bk-sg-item[aria-selected="true"],.bk-suggest .bk-sg-item:hover{background:rgba(201,162,39,.22)}
.bk-suggest .bk-sg-k{display:block;font:600 11px/1.2 Inter,system-ui,sans-serif;color:#5c5348;letter-spacing:.03em;text-transform:uppercase}
.bk-suggest .bk-sg-t{display:block;font:600 15px/1.3 Inter,system-ui,sans-serif;color:#16181c}
.bk-suggest .bk-sg-s{display:block;font:400 13px/1.3 Inter,system-ui,sans-serif;color:#5c5348}


/* Vector basemap (Mapbox or MapLibre) sits in the Leaflet tile pane; markers and parcels stay on top. */
#bk-search-host .leaflet-gl-layer,
#bk-search-host .leaflet-gl-layer canvas,
#bk-search-host .maplibregl-canvas,
#bk-search-host .mapboxgl-canvas{pointer-events:none}
#bk-search-host .maplibregl-ctrl-bottom-left,
#bk-search-host .maplibregl-ctrl-bottom-right,
#bk-search-host .maplibregl-ctrl-top-left,
#bk-search-host .maplibregl-ctrl-top-right,
#bk-search-host .mapboxgl-ctrl-top-left,
#bk-search-host .mapboxgl-ctrl-top-right,
#bk-search-host .mapboxgl-ctrl-bottom-right,
#bk-search-host .mapboxgl-ctrl-attrib{display:none}
#bk-search-host .mapboxgl-ctrl-bottom-left{display:block;pointer-events:auto}
#bk-search-host .mapboxgl-ctrl-logo{display:block}
#bk-search-host .maplibregl-map,
#bk-search-host .mapboxgl-map{font:inherit;background:#f0ece3}
#bk-search-host[data-bk-base="dark"] .maplibregl-map,
#bk-search-host[data-bk-base="dark"] .mapboxgl-map{background:#121110}


/* White shopping surface for the home search area only. Night uses navy/slate, not charcoal on black. */
.bk-z-panels,.bk-z-panel.search,.bk-zillow .bk-sheet,.bk-zsearch,.bk-zillow .bk-res{background:#fff}
.bk-zillow .bk-ztop,.bk-zillow .bk-filters{background:#fff;position:sticky;top:0;z-index:60}
.bk-you-dot{display:block;width:14px;height:14px;border-radius:50%;background:#1a73e8;border:2px solid #fff;box-shadow:0 0 0 6px rgba(26,115,232,.28)}
.bk-map-fab.bk-map-locate svg{fill:#16181c;stroke:none}
.bk-map-fab[data-act="draw"][aria-pressed="true"]{background:#b8933f;color:#1f1708}
.leaflet-container.bk-drawing,.bk-res-map.bk-drawing{cursor:crosshair}
.bk-mode-row{display:flex;gap:6px;margin:0 0 8px}
.bk-mode-row button{flex:1;min-height:36px;border-radius:999px;border:1px solid rgba(201,162,39,.5);background:#fff;color:#16181c;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
.bk-mode-row button.on{background:#b8933f;color:#1f1708;border-color:#b8933f}
.bk-ai{flex:none;width:44px;height:44px;border-radius:999px;border:1px solid rgba(201,162,39,.55);background:#fff;color:#16181c;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.bk-ai svg{width:20px;height:20px;fill:#b8933f;stroke:#b8933f;stroke-width:1.2}
.bk-ai-page{position:fixed;inset:0;z-index:230;background:rgba(22,24,28,.45);display:flex;align-items:stretch;justify-content:center}
.bk-ai-page[hidden]{display:none!important}
.bk-ai-card{background:#fff;color:#16181c;width:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;height:100%;box-sizing:border-box;overflow:hidden}
.bk-ai-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(201,162,39,.35)}
.bk-ai-head h2{margin:0;font:700 20px Inter,system-ui,sans-serif}
.bk-ai-x{border:0;background:transparent;color:#16181c;font:600 15px Inter,system-ui,sans-serif;cursor:pointer;min-height:44px}
.bk-ai-body{flex:1;overflow:auto;padding:16px;display:grid;gap:12px;align-content:start;box-sizing:border-box}
.bk-ai-lead,.bk-ai-ans{margin:0;font:500 14px/1.45 Inter,system-ui,sans-serif;color:#3a3a3a}
.bk-ai-ans{padding:10px 12px;border-radius:12px;background:#f6f3ec;color:#16181c}
.bk-ai-prompts{display:grid;gap:8px}
.bk-ai-prompts button{text-align:left;min-height:44px;padding:10px 12px;border-radius:12px;border:1px solid rgba(22,24,28,.14);background:#fff;color:#16181c;font:600 15px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
@media (min-width:800px){
  .bk-ai-card{height:auto;max-height:92vh;margin:4vh auto;border-radius:20px}
}
body.bk-night .bk-z-panels,body.bk-night .bk-z-panel.search,body.bk-night .bk-zillow .bk-sheet,body.bk-night .bk-zsearch,body.bk-night .bk-zillow .bk-res{background:#121110;color:#f4f1ea}
body.bk-night .bk-zillow .bk-ztop,body.bk-night .bk-zillow .bk-filters{background:#121110}
body.bk-night .bk-zillow .bk-area input,body.bk-night .bk-search-go,body.bk-night .bk-save,body.bk-night .bk-fab-filt,body.bk-night .bk-pop-btn,body.bk-night .bk-ai{background:#1f1c17;color:#f4f1ea;border-color:rgba(201,162,39,.45)}
body.bk-night .bk-search-go{background:#b8933f;color:#1f1708}
body.bk-night .bk-chip{background:#1f1c17;color:#f4f1ea;border-color:rgba(201,162,39,.45)}
body.bk-night .bk-map-fab{background:#1f1c17;color:#f4f1ea}
body.bk-night .bk-map-fab svg,body.bk-night .bk-map-fab.bk-map-locate svg{stroke:#f4f1ea;fill:#f4f1ea}
body.bk-night .bk-filt-card,body.bk-night .bk-ai-card,body.bk-night .bk-pop-panel{background:#1f1c17;color:#f4f1ea}
body.bk-night .bk-filt-body input,body.bk-night .bk-filt-body select,body.bk-night .bk-ai-prompts button,body.bk-night .bk-ai-ans{background:#121110;color:#f4f1ea;border-color:rgba(244,241,234,.2)}
body.bk-night .bk-filt-x,body.bk-night .bk-ai-x,body.bk-night .bk-ai-lead{color:#f4f1ea}
body.bk-night .bk-count,body.bk-night .bk-res-card,body.bk-night .bk-tabbar{color:#f4f1ea}
body.bk-night .bk-tabbar,body.bk-night .bk-res-card{background:#121110}
body.bk-night #bk-search-host .mapboxgl-map{background:#121110}


@media (max-width:799px){
  .bk-zillow .bk-zrow .bk-area{flex:1 1 0;min-width:0}
  .bk-pop[data-pop=type] .bk-pop-panel{left:auto;right:0;max-width:calc(100vw - 16px);min-width:min(240px, calc(100vw - 24px));box-sizing:border-box}
}
body.bk-night .bk-zillow .bk-sheet,body.bk-night #bk-sheet,body.bk-night .bk-sheet-handle,body.bk-night .bk-count-row,body.bk-night .bk-count{
  background:#121110;color:#f4f1ea
}
body.bk-night .bk-count{opacity:1}

body.bk-night #bk-search-host .bk-sheet,
body.bk-night #bk-sheet,
body.bk-night #bk-search-host .bk-count{
  background:#121110 !important;
  color:#f4f1ea !important;
}

/* bk30 night sheet chrome (handle + count-row) */
body.bk-night .bk-sheet,
body.bk-night .bk-sheet-handle,
body.bk-night .bk-count-row,
body.bk-night .bk-count,
body.bk-night #bk-search-host.bk-zillow.bk-mode-map .bk-sheet,
body.bk-night #bk-search-host.bk-zillow.bk-mode-map .bk-sheet-handle,
body.bk-night #bk-search-host.bk-zillow.bk-mode-map .bk-count-row,
body.bk-night #bk-search-host.bk-zillow.bk-mode-map .bk-count,
body.bk-night #bk-search-host .bk-sheet,
body.bk-night #bk-search-host .bk-sheet-handle,
body.bk-night #bk-search-host .bk-count-row{
  background:#121110 !important;
  color:#f4f1ea !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body.bk-night .bk-sheet-handle:before{background:rgba(244,241,234,.45) !important}
body.bk-night .bk-sort-lab select{background:#1f1c17;color:#f4f1ea;border-color:rgba(201,162,39,.45)}


/* bk30 light search surface is true white #ffffff */
body:not(.bk-night) #bk-search-host,
body:not(.bk-night) #bk-search-host.bk-zillow,
body:not(.bk-night) .bk-search-host,
body:not(.bk-night) .bk-zillow,
body:not(.bk-night) .bk-zillow .bk-filters,
body:not(.bk-night) .bk-zillow .bk-ztop,
body:not(.bk-night) .bk-zillow .bk-chips,
body:not(.bk-night) .bk-zillow .bk-saved,
body:not(.bk-night) .bk-zillow .bk-sheet,
body:not(.bk-night) .bk-zillow .bk-res,
body:not(.bk-night) .bk-zillow .bk-count,
body:not(.bk-night) .bk-zillow .bk-count-row,
body:not(.bk-night) .bk-zillow .bk-sheet-handle,
body:not(.bk-night) .bk-zillow .bk-res-card,
body:not(.bk-night) .bk-zillow .bk-picks,
body:not(.bk-night) .bk-fab-filt,
body:not(.bk-night) .bk-zillow .bk-area input,
body:not(.bk-night) .bk-zillow .bk-area input:focus,
body:not(.bk-night) .bk-zillow .bk-area input:focus-visible,
body:not(.bk-night) .bk-zillow .bk-save,
body:not(.bk-night) .bk-pop-btn,
body:not(.bk-night) .bk-pop-panel,
body:not(.bk-night) .bk-ai,
body:not(.bk-night) .bk-filt-card,
body:not(.bk-night) .bk-filt-foot,
body:not(.bk-night) .bk-filt-page,
body:not(.bk-night) .bk-sort-lab select,
body:not(.bk-night) .bk-tabbar,
body:not(.bk-night) #bk-search-host.bk-zillow .bk-show-more,
body:not(.bk-night) #bk-search-host.bk-zillow.bk-mode-map .bk-sheet,
body:not(.bk-night) #bk-search-host.bk-zillow.bk-mode-map .bk-sheet-handle,
body:not(.bk-night) #bk-search-host.bk-zillow.bk-mode-map .bk-count-row,
body:not(.bk-night) .bk-zillow.bk-mode-map .bk-sheet,
body:not(.bk-night) .bk-zillow.bk-mode-split .bk-sheet,
body:not(.bk-night) .bk-suggest{
  background:#ffffff !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body:not(.bk-night) .bk-zillow .bk-area input:-webkit-autofill,
body:not(.bk-night) .bk-zillow .bk-area input:-webkit-autofill:hover,
body:not(.bk-night) .bk-zillow .bk-area input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #ffffff inset,0 0 0 3px rgba(184,147,63,.28);
}
@media (max-width:799px){
  /* Home type moves to the chip row so the search input can use the full first-row width. */
  .bk-zillow .bk-ztop{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  .bk-zillow .bk-zrow,
  .bk-zillow .bk-ztools,
  .bk-zillow .bk-pops{display:contents}
  .bk-zillow .bk-fab-filt{order:1}
  .bk-zillow .bk-area,.bk-zillow .bk-area-wrap{order:2;flex:1 1 0;min-width:0}
  .bk-zillow .bk-search-go{order:3;flex:1 1 auto;padding:0 12px;font-size:13px}
  .bk-zillow .bk-save{order:4;flex:none;margin-left:0}
  .bk-zillow .bk-ai{order:5;flex:none}
  .bk-zillow .bk-pop[data-pop=type]{order:6;flex:none;position:relative}
  .bk-zillow .bk-chips{order:7;flex:1 1 auto;min-width:0;padding:0;background:transparent}
  .bk-zillow .bk-saved{order:8;flex:1 1 100%}
  .bk-pop[data-pop=type] .bk-pop-panel{left:0;right:auto;max-width:calc(100vw - 16px);min-width:min(240px, calc(100vw - 24px));box-sizing:border-box}
}
.bk-map-fab[data-act="draw"] svg,
.bk-map-fab[data-act="layers"] svg{fill:none;stroke:currentColor}
.bk-map-fab[data-act="draw"] svg path,
.bk-map-fab[data-act="layers"] svg path{fill:none}
body.bk-night .bk-map-fab[data-act="draw"] svg,
body.bk-night .bk-map-fab[data-act="layers"] svg{fill:none;stroke:#f4f1ea}
@media (min-width:800px){
  .bk-map-fab[title]{position:relative}
}


/* bk30 phone: Home type on chip row, input full width */
@media (max-width:799px){
  .bk-zillow .bk-ztop{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  .bk-zillow .bk-zrow,
  .bk-zillow .bk-ztools,
  .bk-zillow .bk-pops,
  .bk-zillow.bk-mode-map .bk-pops{display:contents !important}
  .bk-zillow .bk-fab-filt{order:1}
  .bk-zillow .bk-area,.bk-zillow .bk-area-wrap{order:2;flex:1 1 0;min-width:0;width:auto}
  .bk-zillow .bk-zbreak{order:3;flex:1 0 100%;height:0;margin:0;padding:0;border:0;overflow:hidden}
  .bk-zillow .bk-search-go{order:4;flex:1 1 auto;padding:0 12px;font-size:13px}
  .bk-zillow .bk-save{order:5;flex:none;margin-left:0}
  .bk-zillow .bk-ai{order:6;flex:none}
  .bk-zillow .bk-pop[data-pop=type]{order:7;flex:none;position:relative}
  .bk-zillow .bk-chips{order:8;flex:1 1 auto;min-width:0;padding:0;background:transparent}
  .bk-zillow .bk-saved{order:9;flex:1 1 100%}
}
@media (min-width:800px){
  .bk-zbreak{display:none !important}
}

@media (max-width:799px){
  .bk-zillow .bk-zbreak-chips{order:7;flex:1 0 100%;height:0;margin:0;padding:0;border:0;overflow:hidden}
  .bk-zillow .bk-pop[data-pop=type]{order:8}
  .bk-zillow .bk-chips{order:9}
  .bk-zillow .bk-saved{order:10}
}

/* ===== bk31: showcase entry + full-screen search overlay + floating chrome ===== */
body.bk-zillow-app{--bk-tabs-h:72px;padding-bottom:calc(var(--bk-tabs-h) + 16px + env(safe-area-inset-bottom,0px))}
body.bk-zillow-app .bk-search-enter{
  appearance:none;display:inline-flex;align-items:center;gap:12px;width:100%;max-width:440px;
  min-height:56px;padding:0 20px;border-radius:16px;border:1px solid rgba(201,162,39,.6);
  background:#fffdf8;color:#1f1708;font:700 17px/1.2 Inter,system-ui,sans-serif;
  box-shadow:0 8px 28px rgba(31,23,8,.1);cursor:pointer;text-align:left
}
body.bk-zillow-app .bk-search-enter svg{width:22px;height:22px;flex:none;color:#b8933f;stroke:currentColor}
body.bk-zillow-app .bk-search-enter:hover,body.bk-zillow-app .bk-search-enter:focus-visible{
  border-color:#b8933f;background:#fff;outline:2px solid #b8933f;outline-offset:2px
}
body.bk-night .bk-search-enter{background:#121110;color:#f4f1ea;border-color:rgba(201,162,39,.5)}
body.bk-night .bk-search-enter:hover,body.bk-night .bk-search-enter:focus-visible{background:#1f1c17}

.bk-search-overlay{
  position:fixed;inset:0;height:100dvh;height:100svh;z-index:70;display:flex;flex-direction:column;
  overflow:hidden;overscroll-behavior:none;background:#ffffff;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:calc(var(--bk-tabs-h, 72px) + env(safe-area-inset-bottom,0px));
  box-sizing:border-box
}
.bk-search-overlay[hidden]{display:none !important}
body.bk-night .bk-search-overlay{background:#121110}
body.bk-search-open{position:fixed;left:0;right:0;width:100%;overflow:hidden;overscroll-behavior:none}
body.bk-search-open,html:has(body.bk-search-open){overflow:hidden}
body.bk-filters-open .bk-search-overlay,
body.bk-detail-open .bk-search-overlay{padding-bottom:env(safe-area-inset-bottom,0px)}

#bk-search-overlay #bk-search-host,
body.bk-search-open #bk-search-host,
body.bk-search-open #bk-search-host.bk-zillow,
body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map{
  flex:1 1 auto;min-height:0 !important;height:100% !important;max-height:none !important;
  width:100% !important;margin:0 !important;position:relative !important;inset:auto !important;
  z-index:1 !important;overflow:hidden;display:flex !important;flex-direction:column;
  background:transparent !important
}

/* Floating frosted tab pill (light white / night navy, never charcoal) */
body.bk-zillow-app .bk-tabbar{
  position:fixed;left:50%;right:auto;transform:translateX(-50%);
  bottom:calc(8px + env(safe-area-inset-bottom,0px));
  width:calc(100% - 20px);max-width:460px;
  z-index:80;display:flex;gap:0;align-items:stretch;
  padding:5px 6px;border-radius:999px;
  border:1px solid rgba(201,162,39,.38);
  border-top-color:rgba(201,162,39,.38);
  box-shadow:0 8px 28px rgba(0,0,0,.18);
  background:rgba(255,255,255,.82) !important;
  backdrop-filter:blur(22px) saturate(1.2) !important;
  -webkit-backdrop-filter:blur(22px) saturate(1.2) !important
}
body.bk-zillow-app .bk-tabbar button{border-radius:999px;padding:7px 2px 5px}
body.bk-zillow-app .bk-tabbar button[aria-selected="true"]{color:#1f1708;background:rgba(184,147,63,.22)}
body.bk-night .bk-tabbar{
  background:rgba(18,17,16,.86) !important;
  border-color:rgba(201,162,39,.42);
  color:#f4f1ea
}
body.bk-night .bk-tabbar button{color:#c8c2b8}
body.bk-night .bk-tabbar button[aria-selected="true"]{color:#f4f1ea;background:rgba(184,147,63,.28)}
body.bk-zillow-app.bk-tab-overlay .bk-z-panels{inset:0 0 calc(var(--bk-tabs-h) + env(safe-area-inset-bottom,0px)) 0}

/* Back arrow */
.bk-search-back{
  flex:none;width:44px;height:44px;min-height:44px;padding:0;border-radius:999px;
  border:1px solid rgba(201,162,39,.5);background:rgba(255,255,255,.92);color:#16181c;
  box-shadow:0 2px 10px rgba(0,0,0,.14);cursor:pointer;display:inline-flex;align-items:center;justify-content:center
}
.bk-search-back svg{width:22px;height:22px}
body.bk-night .bk-search-back{background:rgba(18,17,16,.9);color:#f4f1ea;border-color:rgba(201,162,39,.45)}
#bk-search-overlay > .bk-search-back{position:absolute;top:calc(8px + env(safe-area-inset-top,0px));left:10px;z-index:80}

/* Hide the big gold Search button in the overlay */
body.bk-search-open .bk-search-go{display:none !important}

/* Map-mode: slim floating pills over an edge-to-edge map */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    display:grid !important;
    grid-template-columns:auto auto minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    align-items:center;
    gap:8px 8px;
    z-index:60;
    padding:8px 10px 8px;
    box-shadow:none !important;
    pointer-events:none
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop > *,
  body.bk-search-open #bk-search-host.bk-zillow .bk-zrow > *,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztools > *,
  body.bk-search-open #bk-search-host.bk-zillow .bk-pops > *,
  body.bk-search-open #bk-search-host.bk-zillow .bk-list-tools,
  body.bk-search-open #bk-search-host.bk-zillow .bk-search-back,
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt,
  body.bk-search-open #bk-search-host.bk-zillow .bk-area,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ai,
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips,
  body.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type],
  body.bk-search-open #bk-search-host.bk-zillow .bk-save{pointer-events:auto;order:0 !important}
  body.bk-search-open #bk-search-host.bk-zillow .bk-zrow,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztools,
  body.bk-search-open #bk-search-host.bk-zillow .bk-pops,
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-pops{
    display:contents !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-zbreak,
  body.bk-search-open #bk-search-host.bk-zillow .bk-zbreak-chips,
  body.bk-search-open #bk-search-host.bk-zillow .bk-saved{display:none !important}
  body.bk-search-open #bk-search-host.bk-zillow .bk-search-back{grid-column:1;grid-row:1}
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt{grid-column:2;grid-row:1}
  body.bk-search-open #bk-search-host.bk-zillow .bk-area,
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-wrap{grid-column:3;grid-row:1;flex:1 1 auto !important;min-width:0;width:auto}
  body.bk-search-open #bk-search-host.bk-zillow .bk-ai{grid-column:4;grid-row:1}
  body.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type]{
    grid-column:1;grid-row:2;position:relative
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips{
    grid-column:2/-1;grid-row:2;flex:1 1 auto;min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;
    scrollbar-width:none;padding:0;background:transparent !important;gap:6px
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips::-webkit-scrollbar{display:none}
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips:empty{display:none}
  body.bk-search-open #bk-search-host.bk-zillow .bk-chip{flex:none;white-space:nowrap}

  /* Peek map: chrome floats over the map */
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-ztop{
    position:absolute;top:0;left:0;right:0;background:transparent !important;
    backdrop-filter:none !important;-webkit-backdrop-filter:none !important
  }
  /* List (sheet full): slim frosted header, then cards */
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    position:relative;flex:none;
    background:rgba(255,255,255,.86) !important;
    backdrop-filter:blur(20px) saturate(1.15) !important;
    -webkit-backdrop-filter:blur(20px) saturate(1.15) !important
  }
  body.bk-search-open.bk-night #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    background:rgba(18,17,16,.88) !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-list-tools{display:none}
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    display:flex;align-items:center;gap:8px;grid-column:1/4;grid-row:3;min-width:0
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-save{
    position:fixed;left:auto;right:12px;top:auto;
    bottom:calc(var(--bk-sheet-h, 112px) + 14px + var(--bk-tabs-h, 72px) + env(safe-area-inset-bottom,0px));
    z-index:65;margin:0;grid-area:auto
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    position:static;grid-column:4;grid-row:3;margin:0
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-map-toggle{
    display:block;left:50%;right:auto;transform:translateX(-50%);
    bottom:calc(12px + var(--bk-tabs-h, 72px) + env(safe-area-inset-bottom,0px));
    z-index:75
  }

  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt{
    width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:999px;
    display:inline-flex;align-items:center;justify-content:center;position:relative
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt-lab{display:none}
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt-ico{display:block;width:20px;height:20px}
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-n{
    position:absolute;top:-4px;right:-4px;margin:0;min-width:18px;height:18px
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-ai{
    width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:999px
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area{position:relative;display:block}
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-ico{
    position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;
    color:rgba(22,24,28,.55);pointer-events:none;z-index:1
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area input{
    width:100%;min-height:40px;padding:0 12px 0 36px;border-radius:999px;
    box-shadow:0 2px 12px rgba(0,0,0,.14)
  }
  body.bk-search-open.bk-night #bk-search-host.bk-zillow .bk-area-ico{color:rgba(244,241,234,.6)}
}

/* Frosted pill surfaces on the map (light + night) */
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-fab-filt,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-ai,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-search-back,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-pop-btn,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-area input,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-save,
body.bk-search-open:not(.bk-night) #bk-search-host.bk-zillow .bk-here.bk-here-on{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important
}
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-fab-filt,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-ai,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-search-back,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-pop-btn,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-area input,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-save{
  background:rgba(18,17,16,.88) !important;
  color:#f4f1ea;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important
}

body.bk-search-open .bk-save .bk-save-short{display:none}
body.bk-search-open .bk-save .bk-save-full{display:inline}

/* Search this area pill after a pan */
body.bk-search-open .bk-zillow .bk-here{display:none}
body.bk-search-open .bk-zillow.bk-mode-map .bk-here.bk-here-on{
  display:inline-flex !important;align-items:center;justify-content:center;
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:calc(var(--bk-sheet-h, 112px) + 12px);
  z-index:55;min-height:36px;padding:0 14px;border:1px solid rgba(201,162,39,.5);
  border-radius:999px;background:rgba(255,255,255,.94);color:#16181c;
  font:700 13px Inter,system-ui,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,.16);
  white-space:nowrap;cursor:pointer
}
body.bk-search-open #bk-search-host[data-sheet="full"] .bk-here,
body.bk-search-open .bk-zillow.bk-mode-list .bk-here{display:none !important}
body.bk-search-open.bk-night .bk-zillow .bk-here.bk-here-on{
  background:rgba(18,17,16,.92) !important;color:#f4f1ea
}

/* List tools: Sort + Save */
.bk-list-tools{display:none}
body.bk-search-open .bk-list-tools .bk-sort-prefix{
  font:700 13px Inter,system-ui,sans-serif;color:#16181c;flex:none
}
body.bk-search-open.bk-night .bk-list-tools .bk-sort-prefix{color:#f4f1ea}
body.bk-search-open .bk-list-tools .bk-sort-lab{flex:none}
body.bk-search-open #bk-search-host[data-sheet="full"] .bk-count-row .bk-sort-lab{display:none}

/* Desktop overlay: slim top bar + map/list split */
@media (min-width:800px){
  body.bk-search-open #bk-search-host.bk-zillow{
    display:flex !important;flex-direction:column;height:100%
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    position:relative;flex:none;z-index:60;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
    padding:8px 12px;background:rgba(255,255,255,.92) !important;
    backdrop-filter:blur(16px) !important;-webkit-backdrop-filter:blur(16px) !important;
    box-shadow:0 1px 0 rgba(22,24,28,.06)
  }
  body.bk-search-open.bk-night #bk-search-host.bk-zillow .bk-ztop{
    background:rgba(18,17,16,.92) !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-zrow,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztools{display:contents}
  body.bk-search-open #bk-search-host.bk-zillow .bk-search-back{order:0}
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt{order:1}
  body.bk-search-open #bk-search-host.bk-zillow .bk-area{order:2;flex:1 1 280px;min-width:160px;position:relative}
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-ico{
    position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:rgba(22,24,28,.55);pointer-events:none
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area input{padding-left:36px}
  body.bk-search-open #bk-search-host.bk-zillow .bk-ai{order:3}
  body.bk-search-open #bk-search-host.bk-zillow .bk-save{order:4}
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips{order:20;flex:1 0 100%}
  body.bk-search-open #bk-search-host.bk-zillow .bk-split{flex:1 1 auto;min-height:0}
  body.bk-search-open #bk-search-host.bk-zillow .bk-list-tools{display:none}
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt-ico{display:none}
  body.bk-search-open #bk-search-host.bk-zillow .bk-here.bk-here-on{bottom:24px}
}

/* Suggest menu above the map */
body.bk-search-open .bk-suggest{z-index:80}

/* Hide unused filter-button label icon on the showcase (no overlay) — n/a */
.bk-fab-filt-ico{display:none}
.bk-area-ico{display:none}
body.bk-search-open .bk-fab-filt-ico{display:block}
body.bk-search-open .bk-area-ico{display:block}

/* Pin mini card should sit below the floating pills on the phone map */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-pin-tray.bk-mini-wrap{top:108px}
}

/* bk31 fixes: host fills overlay content box (not 100dvh over the tab bar);
   list-mode Save must not widen grid column 4 (that squeezed the search pill);
   map-mode Save is positioned in the host, above the peek sheet. */
body.bk-search-open #bk-search-overlay #bk-search-host,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow.bk-mode-map{
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  width:100% !important;
  margin:0 !important;
  position:relative !important;
  inset:auto !important
}
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    grid-column:1/-1;
    grid-row:3;
    padding-right:136px
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    position:absolute;
    right:10px;
    bottom:8px;
    left:auto;
    top:auto;
    grid-column:auto;
    grid-row:auto;
    margin:0
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-save{
    position:absolute;
    right:12px;
    left:auto;
    top:auto;
    bottom:calc(var(--bk-sheet-h, 112px) + 14px);
    z-index:65;
    grid-column:auto;
    grid-row:auto
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area,
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-wrap{
    width:100%;
    min-width:0
  }
}

/* bk31 fixes 2: explicit overlay host height so the tab pill has room;
   map-mode Save is position:fixed above the peek sheet (absolute failed when host height was auto). */
.bk-search-overlay{
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:0
}
body.bk-search-open #bk-search-overlay #bk-search-host,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow.bk-mode-map{
  flex:0 0 auto !important;
  height:calc(100dvh - var(--bk-tabs-h, 72px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important;
  max-height:calc(100dvh - var(--bk-tabs-h, 72px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important;
  min-height:0 !important
}
body.bk-filters-open #bk-search-overlay #bk-search-host,
body.bk-detail-open #bk-search-overlay #bk-search-host{
  height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important;
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important
}
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-save{
    position:fixed !important;
    right:12px !important;
    left:auto !important;
    top:auto !important;
    bottom:calc(var(--bk-sheet-h, 112px) + 14px + var(--bk-tabs-h, 72px) + env(safe-area-inset-bottom,0px)) !important;
    z-index:65
  }
}
body.bk-search-open .bk-fab-filt-ico path{fill:none;stroke:currentColor}
body.bk-search-open .bk-fab-filt-ico circle{fill:#fff;stroke:currentColor;stroke-width:1.7}
body.bk-search-open.bk-night .bk-fab-filt-ico circle{fill:#121110}

/* bk31 fixes 3: night .bk-filters backdrop-filter on #bk-zform made position:fixed
   Save a child of an 18px sticky box (pill flew off the top). Also give the tab pill a little more room. */
body.bk-zillow-app{--bk-tabs-h:84px}
body.bk-search-open #bk-zform,
body.bk-search-open .bk-zillow form,
body.bk-search-open .bk-zillow .bk-filters{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
  transform:none !important
}

/* bk31 polish: hide phone zoom (pinch), keep attribution readable, drop the top form strip, slim Sort. */
@media (max-width:799px){
  body.bk-search-open .leaflet-control-zoom{display:none !important}
  body.bk-search-open .bk-zillow.bk-mode-map .leaflet-bottom.leaflet-right{
    left:12px;right:12px;display:flex;justify-content:center;align-items:flex-end;
    pointer-events:none;bottom:calc(var(--bk-sheet-h, 112px) + 8px)
  }
  body.bk-search-open .leaflet-control-attribution{
    pointer-events:auto;float:none;margin:0 auto;position:relative;left:auto;right:auto;
    background:rgba(255,255,255,.92);color:#16181c;border-radius:6px;padding:2px 8px;
    white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.14);font:500 11px/1.3 Inter,system-ui,sans-serif
  }
  body.bk-search-open .leaflet-control-attribution a{color:#16181c}
  body.bk-search-open.bk-night .leaflet-control-attribution{
    background:rgba(18,17,16,.92);color:#f4f1ea
  }
  body.bk-search-open.bk-night .leaflet-control-attribution a{color:#f4f1ea}

  /* The form wrapper was sticky with a solid navy/white box (~18px) above the map. */
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) form.bk-filters,
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) #bk-zform{
    position:absolute;top:0;left:0;right:0;height:0;margin:0;padding:0;
    overflow:visible;background:transparent !important;z-index:60;
    box-shadow:none;border:0
  }

  /* Sort is a slim 44px pill, same as Save search. */
  body.bk-search-open #bk-search-host[data-sheet="full"] .bk-list-tools{
    align-items:center;min-height:44px
  }
  body.bk-search-open #bk-search-host[data-sheet="full"] .bk-list-tools .bk-sort-lab{
    display:inline-flex;align-items:center;margin:0;height:44px;line-height:0
  }
  body.bk-search-open #bk-search-host[data-sheet="full"] .bk-list-tools .bk-sort-lab select{
    appearance:none;-webkit-appearance:none;-moz-appearance:none;
    box-sizing:border-box;margin:0;
    min-height:44px !important;height:44px !important;max-height:44px;
    padding:0 28px 0 12px !important;
    border-radius:999px;border:1px solid rgba(184,147,63,.7);
    font:600 13px/44px Inter,system-ui,sans-serif;color:#16181c;
    background-color:#ffffff !important;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%2316181c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat:no-repeat;background-position:right 10px center;background-size:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.06);cursor:pointer
  }
  body.bk-search-open.bk-night #bk-search-host[data-sheet="full"] .bk-list-tools .bk-sort-lab select{
    background-color:rgba(18,17,16,.92) !important;color:#f4f1ea;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23f4f1ea' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>")
  }
  body.bk-search-open #bk-search-host[data-sheet="full"] .bk-list-tools .bk-save{
    min-height:44px;height:44px;box-sizing:border-box
  }
}

/* bk31 polish 2: map goes to the physical top (no navy/white status strip);
   chrome respects the safe area; attribution sits left of Save, fully readable. */
body.bk-search-open .bk-search-overlay{
  padding-top:0 !important
}
body.bk-search-open #bk-search-overlay #bk-search-host,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow,
body.bk-search-open #bk-search-overlay #bk-search-host.bk-zillow.bk-mode-map{
  height:calc(100dvh - var(--bk-tabs-h, 84px) - env(safe-area-inset-bottom,0px)) !important;
  max-height:calc(100dvh - var(--bk-tabs-h, 84px) - env(safe-area-inset-bottom,0px)) !important
}
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    padding-top:calc(8px + env(safe-area-inset-top,0px))
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-map-col,
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-map,
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .leaflet-container{
    top:0;left:0;right:0;bottom:0
  }
  body.bk-search-open .bk-zillow.bk-mode-map .leaflet-bottom.leaflet-right{
    left:12px;right:140px;justify-content:flex-start
  }
}

/* Cover a 1-2px canvas/letterbox gap at the very top of the map. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-map-col{
    top:-4px !important
  }
}

/* The kit's .bk-split { margin-top: 2px } (a typography rule) was leaving a 2px
   navy/white strip above the map. Zero it in the overlay and undo the earlier nudge. */
body.bk-search-open #bk-search-host.bk-zillow .bk-split{
  margin:0 !important
}
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map .bk-map-col{
    top:0 !important
  }
}

/* ===== bk31 polish: night contrast (WCAG AA) + slim unboxed header ===== */

/* Night: every list/peek/similar/filter/AI text is light on navy, gold for accents only. */
body.bk-night .bk-zillow .bk-res-card,
body.bk-night .bk-zillow .bk-res-b,
body.bk-night .bk-zillow .bk-price,
body.bk-night .bk-zillow .bk-facts,
body.bk-night .bk-zillow .bk-addr,
body.bk-night .bk-zillow .bk-type,
body.bk-night .bk-zillow .bk-sub,
body.bk-night .bk-zillow .bk-office,
body.bk-night .bk-zillow .bk-count,
body.bk-night .bk-sim,
body.bk-night .bk-sim h3,
body.bk-night .bk-sim-empty,
body.bk-night .bk-sim-card,
body.bk-night .bk-sim-b,
body.bk-night .bk-sim-b .bk-price,
body.bk-night .bk-sim-b .bk-addr,
body.bk-night .bk-sim-b .bk-sub{
  color:#f4f1ea !important
}
body.bk-night .bk-zillow .bk-addr,
body.bk-night .bk-zillow .bk-type,
body.bk-night .bk-zillow .bk-sub,
body.bk-night .bk-zillow .bk-office,
body.bk-night .bk-sim-sub,
body.bk-night #bk-search-host .bk-sim .bk-sim-sub,
body.bk-night #bk-search-host .bk-sim p.bk-sim-sub,
body.bk-night .bk-sim-b{
  color:rgba(244,241,234,.88) !important
}
body.bk-night .bk-zillow .bk-res-card,
body.bk-night .bk-sim-card{
  background:#121110 !important;
  border-color:rgba(201,162,39,.4)
}
body.bk-night .bk-sim{
  background:#121110 !important;
  border-color:rgba(201,162,39,.4)
}
body.bk-night .bk-zillow .bk-add-tour{
  background:#b8933f !important;
  color:#1f1708 !important;
  border-color:#b8933f
}
body.bk-night .bk-sim-why i{
  background:rgba(184,147,63,.35) !important;
  color:#f4f1ea !important;
  border-color:rgba(201,162,39,.5)
}
body.bk-night .bk-new,
body.bk-night .bk-zillow .bk-new{
  color:#f4f1ea !important;
  border-color:rgba(201,162,39,.8);
  background:transparent
}
body.bk-night .bk-filt-body label,
body.bk-night .bk-filt-price,
body.bk-night .bk-filt-checks label,
body.bk-night .bk-filt-card,
body.bk-night .bk-filt-card h2,
body.bk-night .bk-pop-panel,
body.bk-night .bk-pop-panel label,
body.bk-night .bk-ai-card,
body.bk-night .bk-ai-head h2,
body.bk-night .bk-ai-lead,
body.bk-night .bk-ai-ans,
body.bk-night .bk-ai-prompts button{
  color:#f4f1ea !important
}
body.bk-night .bk-area input::placeholder,
body.bk-night .bk-zillow .bk-area input::placeholder{
  color:rgba(244,241,234,.72);
  opacity:1
}

/* Slim, unboxed chrome: 36px icon buttons, 36px search, 32px chips, 36px Sort/Save.
   List header <= ~140px, map header <= ~100px. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    gap:6px !important;
    padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px !important;
    box-shadow:none !important;
    border:0 !important;
    border-radius:0 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    background:rgba(255,255,255,.78) !important;
    backdrop-filter:blur(18px) saturate(1.1) !important;
    -webkit-backdrop-filter:blur(18px) saturate(1.1) !important;
    box-shadow:none !important;
    border:0 !important;
    border-radius:0 !important;
    border-bottom:1px solid rgba(201,162,39,.22) !important
  }
  body.bk-search-open.bk-night #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    background:rgba(18,17,16,.78) !important;
    border-bottom-color:rgba(201,162,39,.28) !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-search-back,
  body.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ai{
    width:36px !important;height:36px !important;min-width:36px !important;min-height:36px !important;
    padding:0 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area input{
    min-height:36px !important;height:36px !important;padding:0 12px 0 34px !important;
    font:500 14px/36px Inter,system-ui,sans-serif
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-ico{left:10px;width:15px;height:15px}
  body.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type]{
    grid-column:1;grid-row:2
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips{
    grid-column:2/-1;grid-row:2;gap:6px;align-items:center
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type] .bk-pop-btn,
  body.bk-search-open #bk-search-host.bk-zillow .bk-chip{
    min-height:32px !important;height:32px !important;max-height:32px;
    padding:0 10px !important;font:600 12px/32px Inter,system-ui,sans-serif;
    display:inline-flex;align-items:center;box-sizing:border-box
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    grid-column:1/-2;grid-row:3;min-height:36px;height:36px;padding-right:0;gap:8px
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab,
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab select,
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    min-height:36px !important;height:36px !important;max-height:36px;
    box-sizing:border-box;font:600 13px/36px Inter,system-ui,sans-serif
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab select{
    padding:0 28px 0 12px !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    position:absolute;right:10px;bottom:6px;left:auto;top:auto;
    grid-column:auto;grid-row:auto;padding:0 12px
  }
}


/* ===== bk31 polish 3: unbox slim header (day + night) + AgentOS night (no navy) ===== */

/* Kit .bk-zsearch .bk-filters draws a rounded bordered box around the header. Remove it. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow form.bk-filters,
  body.bk-search-open #bk-search-host.bk-zillow #bk-zform,
  body.bk-search-open #bk-search-host.bk-zsearch form.bk-filters,
  body.bk-search-open #bk-search-host.bk-zsearch #bk-zform{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    width:100%;
    max-width:none;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    margin:0 !important;
    width:100%;
    box-sizing:border-box;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    background:rgba(255,255,255,.78) !important;
    backdrop-filter:blur(18px) saturate(1.1) !important;
    -webkit-backdrop-filter:blur(18px) saturate(1.1) !important;
    border-bottom:1px solid rgba(188,154,85,.22) !important
  }
  body.bk-search-open.bk-night #bk-search-host.bk-zillow[data-sheet="full"] .bk-ztop{
    background:rgba(11,11,11,.55) !important;
    border-bottom-color:rgba(255,255,255,.18) !important
  }
}

/* Detail card contrast: solid colors the checker (and users) can read.
   Price uses gold clip-text; keep the clip but give color a gold fallback. */
.zhead .price,
#detail .price,
#zsheet .price{
  color:#c4a24d;
  -webkit-text-fill-color:transparent
}
.ztext{
  background-color:#BC9A55;
  color:#1f1708
}
.zbody{
  background-color:#fffdf5
}
.zbody .zeye{color:#5c4514}

/* Night search: AgentOS tokens. Near-black + aurora blooms. Frosted ice glass cards.
   Never navy. Never charcoal tiles on black. Day mode is unchanged. */
body.bk-night.bk-search-open #bk-search-overlay{
  background-color:#0B0B0B !important;
  background-image:
    radial-gradient(60% 90% at 8% 20%,rgba(232,201,140,.4),transparent 70%),
    radial-gradient(50% 80% at 32% 90%,rgba(236,160,178,.32),transparent 70%),
    radial-gradient(50% 90% at 55% 10%,rgba(120,205,196,.3),transparent 70%),
    radial-gradient(50% 90% at 78% 85%,rgba(170,150,230,.32),transparent 70%),
    radial-gradient(45% 80% at 96% 20%,rgba(140,190,240,.35),transparent 70%) !important;
  background-attachment:fixed
}
body.bk-night.bk-search-open #bk-search-host,
body.bk-night.bk-search-open #bk-search-host.bk-zillow,
body.bk-night.bk-search-open #bk-search-host .bk-zsearch,
body.bk-night.bk-search-open #bk-search-host .bk-res,
body.bk-night.bk-search-open #bk-search-host .bk-count-row,
body.bk-night.bk-search-open #bk-search-host .bk-count,
body.bk-night.bk-search-open #bk-search-host .bk-sheet-handle,
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-mode-list .bk-sheet,
body.bk-night #bk-search-host[data-bk-base="dark"] .mapboxgl-map,
body.bk-night #bk-search-host[data-bk-base="dark"] .maplibregl-map{
  background:#0B0B0B !important;
  background-color:#0B0B0B !important;
  color:#F4F1EA !important
}
body.bk-night.bk-search-open #bk-search-host .bk-res,
body.bk-night.bk-search-open #bk-search-host .bk-count-row,
body.bk-night.bk-search-open #bk-search-host .bk-count,
body.bk-night.bk-search-open #bk-search-host .bk-sheet-handle,
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-mode-list .bk-sheet{
  background:transparent !important
}
body.bk-night.bk-search-open #bk-search-host .bk-count,
body.bk-night.bk-search-open #bk-search-host .bk-count-row,
body.bk-night.bk-search-open #bk-search-host .bk-sheet-handle{
  color:#F4F1EA !important
}
body.bk-night.bk-search-open #bk-search-host .bk-sheet-handle:before{
  background:rgba(244,241,234,.55) !important
}

/* Peek sheet: dark frost over the map, not navy. */
body.bk-night.bk-search-open #bk-search-host.bk-mode-map:not([data-sheet="full"]) .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-sheet{
  background-color:#15161a !important;
  background-image:linear-gradient(180deg,rgba(21,22,26,.88),rgba(11,11,11,.92)) !important;
  backdrop-filter:blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(160%) !important;
  color:#F4F1EA !important;
  border-color:rgba(255,255,255,.28)
}

/* Listing + similar cards: frosted ice glass with rotating pastel tints, dark text. */
body.bk-night .bk-zillow .bk-res-card,
body.bk-night .bk-sim-card,
body.bk-night .bk-sim{
  --h1:246,226,180;
  --h2:236,206,140;
  color:#16181c !important;
  background-color:#efe4c8 !important;
  background-image:linear-gradient(150deg,rgba(var(--h1),.82),rgba(var(--h2),.55) 60%,rgba(255,255,255,.42)) !important;
  backdrop-filter:blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(160%) !important;
  border:1px solid rgba(255,255,255,.65) !important;
  border-radius:20px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 10px 30px rgba(0,0,0,.25)
}
body.bk-night .bk-zillow .bk-res-card:nth-child(5n+2),
body.bk-night .bk-sim-card:nth-child(5n+2){--h1:250,214,222;--h2:238,176,192;background-color:#f0d4dc !important}
body.bk-night .bk-zillow .bk-res-card:nth-child(5n+3),
body.bk-night .bk-sim-card:nth-child(5n+3){--h1:196,236,230;--h2:140,212,204;background-color:#cfece8 !important}
body.bk-night .bk-zillow .bk-res-card:nth-child(5n+4),
body.bk-night .bk-sim-card:nth-child(5n+4){--h1:226,216,250;--h2:192,176,240;background-color:#e0d8f4 !important}
body.bk-night .bk-zillow .bk-res-card:nth-child(5n+5),
body.bk-night .bk-sim-card:nth-child(5n+5){--h1:210,230,250;--h2:168,204,240;background-color:#d4e6f6 !important}
body.bk-night .bk-zillow .bk-res-card .bk-price,
body.bk-night .bk-zillow .bk-res-card .bk-facts,
body.bk-night .bk-zillow .bk-res-card .bk-addr,
body.bk-night .bk-zillow .bk-res-card .bk-type,
body.bk-night .bk-zillow .bk-res-card .bk-sub,
body.bk-night .bk-zillow .bk-res-card .bk-office,
body.bk-night .bk-zillow .bk-res-b,
body.bk-night .bk-sim,
body.bk-night .bk-sim h3,
body.bk-night .bk-sim-empty,
body.bk-night .bk-sim-b,
body.bk-night .bk-sim-b .bk-price,
body.bk-night .bk-sim-b .bk-addr,
body.bk-night .bk-sim-b .bk-sub,
body.bk-night #bk-search-host .bk-sim h3{
  color:#16181c !important
}
body.bk-night .bk-zillow .bk-res-card .bk-addr,
body.bk-night .bk-zillow .bk-res-card .bk-type,
body.bk-night .bk-zillow .bk-res-card .bk-sub,
body.bk-night .bk-zillow .bk-res-card .bk-office,
body.bk-night .bk-zillow .bk-res-card .bk-facts,
body.bk-night .bk-sim-sub,
body.bk-night #bk-search-host .bk-sim .bk-sim-sub,
body.bk-night #bk-search-host .bk-sim p.bk-sim-sub,
body.bk-night .bk-sim-b,
body.bk-night .bk-sim-b .bk-addr,
body.bk-night .bk-sim-b .bk-sub{
  color:rgba(22,24,28,.78) !important
}
body.bk-night .bk-zillow .bk-add-tour{
  background:#BC9A55 !important;
  color:#1f1708 !important;
  border-color:#BC9A55
}
body.bk-night .bk-new,
body.bk-night .bk-zillow .bk-new{
  color:#1f1708 !important;
  border-color:rgba(188,154,85,.9);
  background:rgba(255,255,255,.7)
}

/* Reason / filter tags: dark translucent pills with a gold dot. */
body.bk-night .bk-sim-why i,
body.bk-night .bk-chip{
  background-color:#2a2c32 !important;
  background-image:none !important;
  color:#F4F1EA !important;
  border:1px solid rgba(255,255,255,.28) !important;
  display:inline-flex;align-items:center;gap:6px
}
body.bk-night .bk-sim-why i::before,
body.bk-night .bk-chip::before{
  content:"";width:6px;height:6px;border-radius:999px;background:#BC9A55;flex:none;display:inline-block
}

/* Header / map chrome pills: light frost, dark text (calendar language). */
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-search-back,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-fab-filt,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-ai,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-area input,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-save,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type] .bk-pop-btn,
body.bk-night.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab select,
body.bk-night.bk-search-open #bk-search-host .bk-map-toggle,
body.bk-night.bk-search-open #bk-search-host .bk-map-fab,
body.bk-night.bk-search-open #bk-search-host .bk-here.bk-here-on{
  color:#16181c !important;
  background-color:#f3efe4 !important;
  background-image:linear-gradient(150deg,rgba(255,255,255,.78),rgba(255,255,255,.42)) !important;
  backdrop-filter:blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(160%) !important;
  border:1px solid rgba(255,255,255,.65) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 8px 20px rgba(0,0,0,.2)
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab select{
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%2316181c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"),
    linear-gradient(150deg,rgba(255,255,255,.78),rgba(255,255,255,.42)) !important;
  background-repeat:no-repeat,no-repeat;
  background-position:right 10px center,0 0;
  background-size:12px,auto
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-area-ico,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-ai svg,
body.bk-night.bk-search-open #bk-search-host .bk-map-fab svg,
body.bk-night.bk-search-open #bk-search-host .bk-map-fab.bk-map-locate svg{
  color:#16181c !important;
  fill:#16181c;
  stroke:#16181c
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-ai svg{fill:#BC9A55;stroke:#BC9A55}
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-area input::placeholder,
body.bk-night .bk-area input::placeholder,
body.bk-night .bk-zillow .bk-area input::placeholder{
  color:rgba(22,24,28,.72);
  opacity:1
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-list-tools .bk-sort-prefix{color:#F4F1EA !important}

/* Chip row (Home type, This map area, active filters): dark translucent + gold dot. */
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type] .bk-pop-btn,
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-chip{
  background-color:#2a2c32 !important;
  background-image:none !important;
  color:#F4F1EA !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.28)
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow .bk-pop[data-pop=type] .bk-pop-btn::before{
  content:"";width:6px;height:6px;border-radius:999px;background:#BC9A55;flex:none;display:inline-block;margin-right:6px
}

/* Tab bar: frosted near-black pill, not navy, not solid charcoal. */
body.bk-night.bk-zillow-app .bk-tabbar,
body.bk-night .bk-tabbar{
  background:rgba(21,22,26,.72) !important;
  background-color:rgba(21,22,26,.72) !important;
  background-image:none !important;
  backdrop-filter:blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(160%) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:#F4F1EA !important
}
body.bk-night .bk-tabbar button{color:rgba(244,241,234,.8) !important}
body.bk-night .bk-tabbar button[aria-selected="true"]{
  color:#F4F1EA !important;
  background:rgba(188,154,85,.32) !important
}

/* Filters + AI: light frost panels, dark text, on a dim aurora veil. */
body.bk-night .bk-filt-page,
body.bk-night .bk-ai-page{
  background:rgba(11,11,11,.55) !important
}
body.bk-night .bk-filt-card,
body.bk-night .bk-ai-card,
body.bk-night .bk-pop-panel,
body.bk-night .bk-filt-foot{
  color:#16181c !important;
  background-color:#efe4c8 !important;
  background-image:linear-gradient(150deg,rgba(246,226,180,.82),rgba(255,255,255,.42)) !important;
  backdrop-filter:blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(160%) !important;
  border:1px solid rgba(255,255,255,.65) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 10px 30px rgba(0,0,0,.25)
}
body.bk-night .bk-filt-body label,
body.bk-night .bk-filt-price,
body.bk-night .bk-filt-checks label,
body.bk-night .bk-filt-card h2,
body.bk-night .bk-filt-x,
body.bk-night .bk-pop-panel,
body.bk-night .bk-pop-panel label,
body.bk-night .bk-ai-card,
body.bk-night .bk-ai-head,
body.bk-night .bk-ai-head h2,
body.bk-night .bk-ai-lead,
body.bk-night .bk-ai-ans,
body.bk-night .bk-ai-x,
body.bk-night .bk-ai-prompts button{
  color:#16181c !important
}
body.bk-night .bk-filt-body input,
body.bk-night .bk-filt-body select,
body.bk-night .bk-ai-prompts button,
body.bk-night .bk-ai-ans{
  background:#fff !important;
  color:#16181c !important;
  border-color:rgba(22,24,28,.2) !important
}

/* Detail in night: near-black stage, cream/glass sheet, gold price, gold Text me. */
body.bk-night #detail.zflow{
  background-color:#0B0B0B !important
}
body.bk-night .zbody{
  background-color:#fffdf5 !important;
  color:#16181c
}
body.bk-night .zbody .zeye{color:#5c4514}
body.bk-night .ztext{background-color:#BC9A55;color:#1f1708}
body.bk-night .zhead .price,
body.bk-night #detail .price,
body.bk-night #zsheet .price{color:#d4b36a}

/* Attribution stays readable on a frost chip. */
body.bk-night.bk-search-open .leaflet-control-attribution{
  background:rgba(21,22,26,.88);
  color:#F4F1EA
}
body.bk-night.bk-search-open .leaflet-control-attribution a{color:#F4F1EA}

/* Beat map-peek navy frost (more specific :not([data-sheet=full]) shorthand). */
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-search-back,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-fab-filt,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-ai,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-area input,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-save,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-pop-btn,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-here.bk-here-on,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-map-fab{
  color:#16181c !important;
  background:#f3efe4 !important;
  background-color:#f3efe4 !important;
  background-image:linear-gradient(150deg,rgba(255,255,255,.78),rgba(255,255,255,.42)) !important;
  border:1px solid rgba(255,255,255,.65) !important
}
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-pop[data-pop=type] .bk-pop-btn,
body.bk-search-open.bk-night #bk-search-host.bk-zillow:not([data-sheet="full"]) .bk-chip{
  color:#F4F1EA !important;
  background:#2a2c32 !important;
  background-color:#2a2c32 !important;
  background-image:none !important;
  border:1px solid rgba(255,255,255,.28) !important
}

/* Full list in night: opaque near-black aurora so the map cannot show through. */
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map[data-sheet="full"] .bk-sheet{
  background-color:#0B0B0B !important;
  background-image:
    radial-gradient(60% 90% at 8% 20%,rgba(232,201,140,.4),transparent 70%),
    radial-gradient(50% 80% at 32% 90%,rgba(236,160,178,.32),transparent 70%),
    radial-gradient(50% 90% at 55% 10%,rgba(120,205,196,.3),transparent 70%),
    radial-gradient(50% 90% at 78% 85%,rgba(170,150,230,.32),transparent 70%),
    radial-gradient(45% 80% at 96% 20%,rgba(140,190,240,.35),transparent 70%) !important;
  background-attachment:fixed !important;
  color:#F4F1EA !important
}
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-res,
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-count-row,
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-count,
body.bk-night.bk-search-open #bk-search-host[data-sheet="full"] .bk-sheet-handle{
  background:transparent !important
}

/* ===== bk31: no navy left in night search. Peek sheet is AgentOS frost + aurora. Map canvas sits on graphite. ===== */
body.bk-night #bk-search-host[data-bk-base="dark"] .mapboxgl-map,
body.bk-night #bk-search-host[data-bk-base="dark"] .maplibregl-map,
body.bk-night #bk-search-host[data-bk-base="dark"] .leaflet-container,
body.bk-night #bk-search-host .bk-res-map,
body.bk-night.bk-search-open #bk-search-overlay{
  background:#0B0B0B !important;
  background-color:#0B0B0B !important
}
body.bk-night .bk-search-overlay,
body.bk-night.bk-search-open .bk-search-overlay{
  background:#0B0B0B !important
}
body.bk-night .bk-search-enter{
  background:#15161a !important;
  color:#F4F1EA !important
}
body.bk-night .bk-search-enter:hover,
body.bk-night .bk-search-enter:focus-visible{background:#1c1d20 !important}
body.bk-search-open.bk-night .bk-fab-filt-ico circle{fill:#f3efe4}

/* Peek sheet: frosted near-black with aurora, not solid navy. Handle and count inherit the frost. */
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-sheet,
body.bk-night.bk-search-open #bk-search-host.bk-mode-map:not([data-sheet="full"]) .bk-sheet{
  background-color:#0B0B0B !important;
  background-image:
    radial-gradient(80% 120% at 12% 0%,rgba(232,201,140,.38),transparent 62%),
    radial-gradient(70% 100% at 78% 120%,rgba(170,150,230,.28),transparent 64%),
    radial-gradient(60% 90% at 50% 0%,rgba(120,205,196,.22),transparent 58%),
    linear-gradient(180deg,rgba(21,22,26,.72),rgba(11,11,11,.88)) !important;
  backdrop-filter:blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(160%) !important;
  color:#F4F1EA !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 -10px 30px rgba(0,0,0,.28)
}
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-sheet-handle,
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-count-row,
body.bk-night.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-count,
body.bk-night.bk-search-open #bk-search-host.bk-mode-map:not([data-sheet="full"]) .bk-sheet-handle,
body.bk-night.bk-search-open #bk-search-host.bk-mode-map:not([data-sheet="full"]) .bk-count-row,
body.bk-night.bk-search-open #bk-search-host.bk-mode-map:not([data-sheet="full"]) .bk-count{
  background:transparent !important;
  background-image:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  color:#F4F1EA !important
}

/* New look (Dec 3, 2026): no floating bottom bar on the details sheet, same as the buyer showcases. */
.bkd-cta,.bkd-cta.fx,.bkd-cta.in{display:none !important}

/* ===== searchbar-20261204: stretch the search pill; move Type onto the Sort row =====
   Phone Property Finder header only. Desktop and everything else stay the same.
   Row 1: back, filters, stretched search, sparkle — tighter gaps, search fills the row.
   Full list: Type sits on the Sort row between Newest and Save search (two-row header).
   Active filter chips, when present, take their own row under that.
   Map peek (no Sort row): Type stays under the search as a compact pill. */
.bk-type-short{display:none}
.bk-type-full{display:inline}
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    grid-template-columns:auto auto minmax(0,1fr) auto !important;
    column-gap:6px !important;
    row-gap:6px !important;
    padding-left:8px;
    padding-right:8px;
    padding-bottom:8px
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area,
  body.bk-search-open #bk-search-host.bk-zillow .bk-area-wrap{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:stretch !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-area input{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-type-short{display:inline}
  body.bk-search-open #bk-search-host.bk-zillow .bk-type-full{display:none}

  /* Full list: Type moves into the Sort row; header collapses to two rows. */
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    display:flex !important;
    grid-column:1 / 3 !important;
    grid-row:2 !important;
    min-height:36px;
    height:36px;
    padding-right:0 !important;
    gap:6px;
    min-width:0
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-pop[data-pop=type]{
    grid-column:3 !important;
    grid-row:2 !important;
    justify-self:start;
    align-self:center;
    position:relative;
    z-index:6
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    position:static !important;
    grid-column:4 !important;
    grid-row:2 !important;
    justify-self:end;
    align-self:center;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    top:auto !important;
    margin:0
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-pop[data-pop=type] .bk-pop-btn{
    min-height:36px !important;
    height:36px !important;
    max-height:36px;
    padding:0 12px !important;
    font:600 13px/36px Inter,system-ui,sans-serif;
    display:inline-flex;
    align-items:center;
    box-sizing:border-box
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-chips{
    grid-column:1 / -1 !important;
    grid-row:3 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-chips:empty{
    display:none !important
  }

  /* 320px: drop the Sort: label so Type + Save search still fit. */
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    min-width:0;
    overflow:visible
  }
}
@media (max-width:360px){
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-sort-prefix{
    display:none !important
  }
}
@media (max-width:340px){
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save .bk-save-full{
    display:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save .bk-save-short{
    display:inline !important
  }
}


/* searchbar-20261204b: Type (and Save) live inside .bk-list-tools so Home type
   no longer sits in grid column 1 and stretches the back-button column.
   Row 1 is then back + filter + a search pill that fills the leftover space. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop{
    grid-template-columns:auto auto minmax(0,1fr) auto !important;
    column-gap:6px !important;
    row-gap:6px !important
  }
  /* Full list: one flex row for Sort, Type, and Save search. */
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    display:flex !important;
    align-items:center;
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100%;
    min-width:0;
    min-height:36px;
    height:36px;
    padding-right:0 !important;
    gap:6px
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-pop[data-pop=type]{
    flex:none;
    position:relative;
    z-index:6;
    grid-column:auto !important;
    grid-row:auto !important;
    justify-self:auto
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-save,
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-save{
    position:static !important;
    margin-left:auto !important;
    grid-column:auto !important;
    grid-row:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    top:auto !important
  }
  /* Map peek: keep Type visible under the search; hide Sort; Save stays floating. */
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-list-tools{
    display:flex !important;
    align-items:center;
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100%;
    min-width:0;
    gap:6px;
    padding:0;
    height:36px
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-list-tools .bk-sort-prefix,
  body.bk-search-open #bk-search-host.bk-zillow.bk-mode-map:not([data-sheet="full"]) .bk-list-tools .bk-sort-lab{
    display:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips{
    grid-column:1 / -1 !important;
    grid-row:3 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips:empty{
    display:none !important
  }
}


/* nooh (Dec 5 2026, t2206u): the floating Open Houses map pill is gone. The date
   choices still take a line under Type when the public Open Houses tab (or ?ohwin=) is on.
   Active filter chips sit on row 3 normally, and move to row 4 while that date line is showing. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow .bk-ohrow,
  body.bk-search-open #bk-search-host.bk-zillow .bk-ztop > .bk-ohrow{
    display:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-oh-on .bk-ztop > .bk-ohrow{
    display:flex !important;
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    justify-self:start;
    width:auto;
    max-width:100%;
    pointer-events:auto
  }
  body.bk-search-open #bk-search-host.bk-zillow .bk-chips:not(:empty){
    grid-column:1 / -1 !important;
    grid-row:3 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow.bk-oh-on .bk-chips:not(:empty){
    grid-row:4 !important
  }
}

/* searchbar-20261204d: Sort, Type, Save must fit the row (Save was running 2 to 14px past the right edge).
   Sort shrinks to the leftover width; Type and Save keep their natural size. */
@media (max-width:799px){
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools{
    box-sizing:border-box;max-width:100%;overflow:visible
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab{
    flex:1 1 0 !important;min-width:0 !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-sort-lab select{
    width:100% !important;min-width:0 !important;max-width:100% !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-save{
    margin-left:0 !important;flex:none !important
  }
  body.bk-search-open #bk-search-host.bk-zillow[data-sheet="full"] .bk-list-tools .bk-pop[data-pop=type]{
    flex:none !important
  }
}

/* ===== Ask about homes sheet, rounded pill style (Dec 5, 2026 photofix). Shared by AgentOS Property Finder, the public Property Finder and every showcase. ===== */
.bk-ai-page .bk-ai-card{background:#fffdf8;color:#16130d;font-family:-apple-system,"SF Pro Text",Inter,system-ui,sans-serif}
.bk-ai-page .bk-aq-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 8px;border:0}
.bk-ai-page .bk-aq-title{grid-column:2;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.bk-ai-page .bk-aq-title h2{margin:0;font:650 17px/1.2 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;letter-spacing:-.01em;color:inherit;white-space:nowrap}
.bk-ai-page .bk-aq-beta{flex:none;padding:3px 8px;border-radius:999px;border:1px solid rgba(184,147,63,.65);background:rgba(201,162,39,.12);color:#7a5f22;font:700 10.5px/1 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.bk-ai-page .bk-aq-x{grid-column:3;justify-self:end;width:40px;height:40px;border-radius:999px;border:0;background:rgba(120,120,128,.16);color:#16130d;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}
.bk-ai-page .bk-aq-x svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none}
.bk-ai-page .bk-aq-body{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:18px 18px 12px;display:block}
.bk-ai-page .bk-aq-h{margin:6px 0 8px;font:700 28px/1.15 -apple-system,"SF Pro Display",Inter,system-ui,sans-serif;letter-spacing:-.02em;color:inherit}
.bk-ai-page .bk-aq-sub{margin:0 0 18px;font:500 15px/1.4 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;color:#5d5546}
.bk-ai-page .bk-aq-ans{margin:0 0 16px;padding:12px 14px;border-radius:16px;background:#f3ecdb;color:#16130d;font:500 14px/1.45 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif}
.bk-ai-page .bk-aq-ans[hidden]{display:none}
.bk-ai-page .bk-aq-pills{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.bk-ai-page .bk-aq-pills button{flex:0 1 auto;max-width:100%;min-height:42px;padding:10px 16px;border-radius:999px;border:1.5px solid rgba(22,19,13,.78);background:#fffdf8;color:#16130d;font:600 15px/1.25 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,border-color .15s}
.bk-ai-page .bk-aq-pills button:active,.bk-ai-page .bk-aq-pills button:hover{background:#f3ecdb;border-color:#b8933f}
.bk-ai-page .bk-aq-bar{flex:none;display:flex;align-items:center;gap:8px;margin:8px 12px calc(12px + env(safe-area-inset-bottom,0px));padding:6px 6px 6px 14px;border-radius:999px;border:1.5px solid rgba(22,19,13,.78);background:#fff;box-shadow:0 6px 22px rgba(0,0,0,.10)}
.bk-ai-page .bk-aq-bar:focus-within{border-color:#b8933f}
.bk-ai-page .bk-aq-spark{flex:none;width:20px;height:20px;fill:#b8933f;stroke:#b8933f;stroke-width:1.2}
.bk-ai-page .bk-aq-bar input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#16130d;font:500 16px/1.2 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;padding:9px 2px;-webkit-appearance:none;appearance:none}
.bk-ai-page .bk-aq-bar input::placeholder{color:#8a8171}
.bk-ai-page .bk-aq-mic,.bk-ai-page .bk-aq-send{flex:none;width:40px;height:40px;border-radius:999px;border:0;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bk-ai-page .bk-aq-mic{background:rgba(120,120,128,.16);color:#3a3a3c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.bk-ai-page .bk-aq-mic.on{background:#b8933f;color:#fff}
.bk-ai-page .bk-aq-mic svg,.bk-ai-page .bk-aq-send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bk-ai-page .bk-aq-send{background:rgba(120,120,128,.22);color:#fff;transition:background .15s}
.bk-ai-page .bk-aq-bar.has-text .bk-aq-send{background:linear-gradient(135deg,#c9a45c,#ecd9a0 55%,#c9a45c);color:#1f1708}
@media (min-width:800px){.bk-ai-page .bk-ai-card{height:auto;max-height:92vh;margin:4vh auto;border-radius:24px}.bk-ai-page .bk-aq-head{padding-top:14px}}
/* dark: black sheet, charcoal tiles (#3a3a3c to #2c2c2e), cream text, gold accents. No navy. */
html body.bk-night .bk-ai-page .bk-ai-card{background:#000 !important;color:#f4f1ea !important}
html body.bk-night .bk-ai-page .bk-aq-title h2,html body.bk-night .bk-ai-page .bk-aq-h{color:#f4f1ea !important}
html body.bk-night .bk-ai-page .bk-aq-sub{color:rgba(244,241,234,.72) !important}
html body.bk-night .bk-ai-page .bk-aq-beta{border-color:rgba(232,209,147,.6);background:rgba(232,209,147,.12);color:#e8d193}
html body.bk-night .bk-ai-page .bk-aq-x{background:rgba(120,120,128,.32);color:#f4f1ea}
html body.bk-night .bk-ai-page .bk-aq-ans{background:linear-gradient(180deg,#3a3a3c,#2c2c2e) !important;color:#f4f1ea !important}
html body.bk-night .bk-ai-page .bk-aq-pills button{background:linear-gradient(180deg,#3a3a3c,#2c2c2e) !important;border:1.5px solid rgba(232,209,147,.45);color:#f4f1ea !important}
html body.bk-night .bk-ai-page .bk-aq-pills button:active,html body.bk-night .bk-ai-page .bk-aq-pills button:hover{border-color:#e8d193}
html body.bk-night .bk-ai-page .bk-aq-bar{background:linear-gradient(180deg,#3a3a3c,#2c2c2e);border-color:rgba(232,209,147,.45);box-shadow:none}
html body.bk-night .bk-ai-page .bk-aq-bar input{color:#f4f1ea}
html body.bk-night .bk-ai-page .bk-aq-bar input::placeholder{color:rgba(244,241,234,.55)}
html body.bk-night .bk-ai-page .bk-aq-spark{fill:#e8d193;stroke:#e8d193}
html body.bk-night .bk-ai-page .bk-aq-mic{background:rgba(120,120,128,.34);color:#f4f1ea}
html body.bk-night .bk-ai-page .bk-aq-send{background:rgba(120,120,128,.34);color:#f4f1ea}
html body.bk-night .bk-ai-page .bk-aq-bar.has-text .bk-aq-send{background:linear-gradient(135deg,#c9a45c,#ecd9a0 55%,#c9a45c);color:#1f1708}

/* Ask about homes is a full sheet: the bottom tab bar (and public strip) must not sit over its pinned input bar. */
body.bk-ai-open .bk-tabbar{visibility:hidden !important;pointer-events:none !important}
body.bk-ai-open .ppf-strip,body.bk-ai-open #ppf-strip{visibility:hidden !important;pointer-events:none !important}
