/* Budget Search (tools/what-can-i-buy/): the requirements form, the results list and the Map column. Presentation only; matching is in kpt-discover.js.
   Same look as the rest of Groundwork: white, navy ink, hairline borders, one blue for actions, modest type (page title 44px desktop, 32px phone).
   Layout: no place chosen = one list column; a place chosen = the Map is the stage (desktop: a compact results panel on the left; phone: a bottom sheet that minimises). */
body.kdp{margin:0;background:#fff;color:var(--gw-body,#3B4256);font-family:var(--gw-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);-webkit-font-smoothing:antialiased}
.kd-wrap{max-width:var(--gw-shell-w,1040px);margin:0 auto;padding:0 var(--gw-gutter,22px) 56px}
.kd{--ink:#16213E;--body:#3B4256;--muted:#5F6672;--blue:#0B63CE;--gold:#85661F;--green:#1F7A3D;--grey:#F5F5F7;--line:#E3E3E8;--nav:58px;font-size:15px;line-height:1.45;color:var(--body)}
.kd *{box-sizing:border-box}
.kd-load{padding:40px 0;color:var(--muted)}
.kd-eye{margin:0;color:var(--gold);font-weight:700;font-size:13px}
.kd-h1{color:var(--ink);letter-spacing:-.03em;line-height:1.1;font-weight:700;font-size:32px;margin:6px 0 0;text-wrap:balance}
.kd-lede{margin:12px 0 0;font-size:16px;color:var(--muted);max-width:52ch}
.kd-src{margin:14px 0 0;display:inline-block;max-width:60ch;padding:7px 14px;border-radius:12px;background:#EEF3FB;color:#1F3F8F;font-size:14px;font-weight:600;line-height:1.4}
.kd-fine{margin:20px 0 0;font-size:13.5px;color:var(--muted)}.kd-fine a{color:var(--blue)}
@media (min-width:900px){.kd-h1{font-size:44px}}

/* ---- the requirements form ---- */
.kd-entry{max-width:640px;margin:0 auto;padding-top:28px}
.kd-form{margin-top:24px;display:grid;gap:20px}
.kd-grid2{display:grid;gap:20px}
.kd-fgrid{display:grid;gap:20px;margin-top:14px}
.kd-f{min-width:0}
.kd-l{display:block;font-size:13.5px;color:var(--muted);font-weight:500;margin:0 0 6px}.kd-l small{font-weight:400}
.kd-in{display:flex;align-items:center;gap:8px;height:48px;border:1px solid #CFCFD6;border-radius:12px;padding:0 14px;background:#fff;min-width:0}
.kd-in:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,99,206,.14)}
.kd-in input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:17px;color:var(--ink);height:100%;padding:0}
.kd-in input::placeholder{color:#8A90A0;font-size:15.5px}
.kd-in input[type=search]::-webkit-search-cancel-button{display:none}
.kd-pre,.kd-suf{color:var(--muted);flex:none}.kd-suf{font-size:14px}
.kd-x{flex:none;border:0;background:transparent;color:var(--muted);font-size:16px;cursor:pointer;padding:6px;min-width:32px;min-height:32px}
.kd-note{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--muted)}
.kd-err{margin:6px 0 0;font-size:13px;color:#B3261E;min-height:0}.kd-err:empty{display:none}
.kd-seg{display:flex;background:var(--grey);border:1px solid var(--line);border-radius:14px;padding:3px;gap:2px}
.kd-seg button{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:14px;color:var(--muted);font-weight:500;padding:10px 6px;border-radius:11px;cursor:pointer;white-space:nowrap}
.kd-seg button[aria-checked=true]{background:#fff;color:var(--ink);font-weight:700;box-shadow:0 1px 2px rgba(20,32,63,.12)}
.kd-seg button:disabled{opacity:.45;cursor:not-allowed}
.kd-seg[aria-disabled=true]{opacity:.7}
.kd-i{border:0;background:transparent;color:var(--muted);font:inherit;font-size:14px;cursor:pointer;padding:0 4px;min-width:24px;min-height:24px;vertical-align:baseline}
.kd-hp{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--muted);font-weight:400}.kd-hp[hidden]{display:none}
.kd-more{border-top:1px solid var(--line);padding-top:12px}
.kd-more summary{cursor:pointer;font-weight:700;color:var(--ink);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px}
.kd-more summary::-webkit-details-marker{display:none}
.kd-more summary small{font-weight:400;color:var(--muted);font-size:13px;margin-left:auto}
.kd-more summary::after{content:"⌄";color:var(--muted)}.kd-more[open] summary::after{content:"⌃"}
.kd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border-radius:980px;border:1px solid var(--ink);background:var(--ink);color:#fff;font:inherit;font-weight:700;font-size:15.5px;cursor:pointer;white-space:nowrap}
.kd-btn:hover{background:#0f1830}.kd-btn.kd-ghost{background:#fff;color:var(--ink);min-height:44px;padding:0 20px;font-size:14.5px}
.kd-go{width:100%;margin-top:6px}
.kd-link{border:0;background:transparent;padding:0;font:inherit;color:var(--blue);cursor:pointer;text-decoration:none}.kd-link:hover{text-decoration:underline}
.kd-apply{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.kd-radl{margin:12px 0 6px;font-size:13px;color:var(--muted)}
.kd-rad{display:flex;gap:6px;flex-wrap:nowrap}
.kd-rad button{flex:1;min-width:0;border:1px solid #CFCFD6;border-radius:980px;background:#fff;padding:8px 4px;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap}
.kd-rad button[aria-checked=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.kd-sugg{margin-top:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(20,32,63,.10);overflow:hidden;max-height:300px;overflow-y:auto}.kd-sugg[hidden]{display:none}
.kd-sg{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;padding:10px 14px;font:inherit;cursor:pointer;color:var(--ink)}
.kd-sg:last-child{border-bottom:0}.kd-sg:hover,.kd-sg:focus{background:var(--grey);outline:0}.kd-sg b{font-weight:600}.kd-sg span{font-size:12.5px;color:var(--muted)}
.kd-sgn{margin:0;padding:12px 14px;font-size:13.5px;color:var(--muted)}
.kd-tick{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--ink);font-weight:500;line-height:1.35;cursor:pointer;margin-top:10px}
.kd-tick input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--ink)}
.kd-tick small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;margin-top:1px}.kd-tick i{font-style:normal;color:var(--muted);font-weight:400}

/* ---- results ---- */
.kd-cols{display:block;padding-top:20px}
.kd-main{min-width:0;max-width:680px;margin:0 auto}
.kd-lead{margin-top:2px}
.kd-sub{margin:8px 0 0;font-size:14px;color:var(--muted)}
.kd-sub a{color:var(--blue);font-weight:600;text-decoration:none;white-space:nowrap}.kd-sub a:hover{text-decoration:underline}   /* R3c: "See it on the Map" for a postal district */.kd-tiers{margin-top:2px}
.kd-bar{margin-top:8px;position:sticky;top:var(--nav);z-index:20;background:#fff;padding:8px 0 10px;border-bottom:1px solid transparent;display:grid;gap:10px}
.kd-chips{margin-top:14px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.kd-chips::-webkit-scrollbar{display:none}
.kd-chip{flex:none;display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--grey);border-radius:980px;padding:7px 12px;font:inherit;font-size:13.5px;color:var(--ink);font-weight:600;white-space:nowrap;cursor:pointer}
.kd-barrow{display:flex;gap:10px;align-items:center}
.kd-barrow .kd-btn{flex:1}
.kd-quick{margin-top:6px;max-width:420px}.kd-radin{display:none}.kd-quick2{margin-bottom:6px}
.kd-sec{margin-top:26px}
.kd-ch{font-size:22px;color:var(--ink);letter-spacing:-.02em;margin:0;font-weight:800}
.kd-g{margin-top:14px}
.kd-gh{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.kd-gh h3{margin:0;font-size:19px;color:var(--ink);font-weight:800;letter-spacing:-.02em}.kd-gh span{color:var(--muted);font-size:14px}
.kd-gn{margin:2px 0 10px;font-size:13px;color:var(--muted);border-left:2px solid var(--line);padding-left:10px;line-height:1.4}
.kd-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px 18px;margin-top:10px;display:grid;gap:6px;scroll-margin-top:140px}
.kd-card.is-sel{border-color:var(--ink)}.kd-card.is-hl{box-shadow:0 0 0 3px rgba(11,99,206,.28)}
.kd-card h3{margin:0;font-size:18px;color:var(--ink);font-weight:700;letter-spacing:-.02em}
.kd-card p{margin:0}
.kd-meta{font-size:13px;color:var(--muted)}
.kd-ev{font-size:14.5px;color:var(--body)}.kd-ev b{display:inline-block;font-size:19px;color:var(--ink);font-weight:800;letter-spacing:-.02em}
.kd-n{font-size:13px;color:var(--muted)}
.kd-inv{font-size:14px;color:var(--body)}.kd-inv span{color:var(--muted);font-size:12.5px;display:block}.kd-inv b{color:var(--ink);font-size:16px}
.kd-inv-no{color:var(--muted)}
.kd-invt{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:2px;font-size:14.5px;color:var(--body);font-variant-numeric:tabular-nums}.kd-invt span{display:inline;color:var(--ink);font-weight:600;font-size:14.5px}.kd-inv .kd-n{margin-top:2px}.kd-invt b{color:var(--ink);font-weight:800}
.kd-invgone{margin-top:6px}
.kd-tag{display:inline-block;border-radius:980px;padding:4px 10px;font-size:12.5px;font-weight:700}
.kd-tg-g{background:#E9F4EC;color:var(--green)}.kd-tg-a{background:#F6EEDC;color:#7A5A12}.kd-tg-b{background:#E8F0FB;color:#0A4FA3}.kd-tg-n{background:var(--grey);color:var(--muted)}
.kd-acts{display:flex;gap:18px;flex-wrap:wrap;margin-top:2px}.kd-acts a{color:var(--blue);font-weight:600;font-size:14.5px;text-decoration:none;min-height:24px}.kd-acts a:hover{text-decoration:underline}
.kd-more-b{display:flex;width:100%;justify-content:center;gap:6px;margin-top:12px;border:0;background:#EFEDE7;border-radius:14px;min-height:46px;font:inherit;font-weight:700;color:var(--ink);cursor:pointer}
.kd-empty{margin-top:18px;font-size:15px}.kd-empty ul{margin:8px 0;padding:0;list-style:none;display:grid;gap:8px}.kd-empty li span{color:var(--muted);font-size:13.5px}
.kd-unp,.kd-meth{margin-top:22px;border-top:1px solid var(--line);padding-top:12px}
.kd-unp summary,.kd-meth summary{cursor:pointer;font-weight:600;color:var(--ink);font-size:14.5px}
.kd-unp ul,.kd-ul{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.kd-unp li,.kd-ul li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.kd-unp li span,.kd-ul li span{color:var(--muted);font-size:13px}.kd-ul a,.kd-unp a{color:var(--blue);font-weight:600;text-decoration:none}
.kd-meth .inner p{margin:8px 0 0;font-size:13.5px;color:var(--muted);line-height:1.5}

/* ---- edit panel (desktop: inline; phone: full sheet) ---- */
.kd-edit{display:none;border:1px solid var(--line);background:var(--grey);border-radius:20px;padding:20px 22px;margin-top:14px}
.kd-edit.open{display:block}
.kd-edit-h{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.kd-edit-h b{color:var(--ink);font-size:18px}.kd-edit-h span{color:var(--muted);font-size:13.5px}
.kd-sheetx,.kd-sheetbar{display:none}
.kd-edit .kd-form{margin-top:14px}
.kd-edit .kd-in,.kd-edit .kd-sugg{background:#fff}
.kd-edit .kd-more{border-top:0;padding-top:0}
.kd-ken{margin:44px auto 0;max-width:680px;border-top:1px solid var(--line);padding-top:22px}
.kd-ken h2{margin:4px 0 10px;font-size:22px;color:var(--ink);font-weight:800}
.kd-ken .who{display:flex;gap:14px;align-items:flex-start}.kd-ken .who img{border-radius:50%;width:48px;height:48px;object-fit:cover;flex:none}.kd-ken .who p{margin:0;color:var(--muted)}
.kd-ken .acts{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px}.kd-ken .acts a{color:var(--blue);font-weight:600;text-decoration:none}

/* ---- map: when a place is chosen the Map is the stage and the results sit on it (desktop: a compact panel on the left; phone: a bottom sheet that minimises) ---- */
.kd-mapcol[hidden]{display:none!important}
.kd-mapbox{position:relative;height:100%;background:#EDEAE2;overflow:hidden}
.kd-mapslot{height:100%}
.kd-map{width:100%;height:100%}
.kd-shd{display:none}
.kd-loc{font-size:14.5px;font-weight:600;min-height:24px}
.kd-card.is-sel{box-shadow:0 0 0 2px var(--ink)}

/* ---- list-first (no place chosen): one column ---- */
@media (min-width:900px){
  .kd-cols{display:grid;grid-template-columns:minmax(0,680px);gap:28px;align-items:start}
  .kd-main{margin:0;max-width:680px}
  .kd-radin{display:block;flex:1;max-width:340px}.kd-quick{display:none}.kd-barrow{justify-content:flex-start}.kd-radin .kd-rad button{padding:9px 4px}
  .kd-barrow .kd-btn{flex:none}
  .kd-bar{position:static;padding:0}
  .kd-edit-h .kd-sheetx{display:none}
  .kd-edit .kd-grid2,.kd-edit .kd-fgrid{grid-template-columns:1fr 1fr;gap:20px 28px}
  .kd-edit .kd-form{grid-template-columns:1fr 1fr;gap:20px 28px}
  .kd-edit .kd-grid2{grid-column:1/-1;display:contents}
  .kd-edit .kd-more{grid-column:1/-1}
  .kd-edit .kd-apply{grid-column:1/-1}
  .kd-edit .kd-fgrid{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width:899px){
  .kd-wrap{padding:0 16px 40px}
  .kd-bar{margin-left:-16px;margin-right:-16px;padding:8px 16px 10px;border-bottom-color:var(--line)}
  .kd-mapcol{display:none}
  /* the phone edit sheet: the same form, full height, with its own button pinned at the bottom (the page behind is locked) */
  .kd-edit{position:fixed;inset:0;z-index:60;margin:0;border:0;border-radius:0;background:#fff;overflow-y:auto;padding:16px 16px calc(92px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
  .kd-edit-h{position:sticky;top:-16px;background:#fff;margin:-16px -16px 0;padding:16px;z-index:2;border-bottom:1px solid var(--line);align-items:center}
  .kd-edit-h span{display:none}
  .kd-sheetx{display:inline-flex;margin-left:auto;border:0;background:transparent;font-size:20px;color:var(--ink);min-width:44px;min-height:44px;align-items:center;justify-content:center;cursor:pointer}
  .kd-sheetbar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:61;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
  .kd-edit:not(.open) .kd-sheetbar{display:none}
  .kd-sheetbar .kd-btn{width:100%}
  .kd-edit .kd-apply .kd-btn{display:none}
  .kd-edit .kd-in,.kd-edit .kd-sugg{background:#fff}
  .kd-rad button{padding:10px 4px}
}

/* ---- the stage ---- */
body.kd-hasmap .kd-wrap{max-width:none;padding-left:0;padding-right:0}
body.kd-hasmap .kd-ken{padding-left:22px;padding-right:22px}
body.kd-hasmap .kd-cols{position:relative;display:block;padding:0;height:calc(100vh - var(--nav));height:calc(100dvh - var(--nav));min-height:560px;overflow:hidden}
body.kd-hasmap .kd-mapcol{position:absolute;inset:0;display:block;margin:0;z-index:1;isolation:isolate}   /* the map's own layers stay under the panel */
body.kd-hasmap .kd-main{position:absolute;z-index:30;background:#fff;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body.kd-hasmap .kd-lead .kd-eye{display:none}
body.kd-hasmap .kd-h1{font-size:20px;line-height:1.2;letter-spacing:-.02em;margin:0}
body.kd-hasmap .kd-sub{font-size:13px;margin-top:6px}
body.kd-hasmap .kd-chips{margin-top:12px}
body.kd-hasmap .kd-card{padding:12px 14px;border-radius:14px;scroll-margin-top:12px}
body.kd-hasmap .kd-card h3{font-size:16px}
body.kd-hasmap .kd-ch{font-size:18px}
body.kd-hasmap .kd-sec{margin-top:20px}
body.kd-hasmap .kd-ev b{font-size:17px}
body.kd-hasmap .kd-acts{gap:4px 14px}
body.kd-hasmap .kd-acts a,body.kd-hasmap .kd-loc{font-size:14px}
body.kd-hasmap .kd-mapbox .mapkey i.a{background:#8B93A7;opacity:1}
body.kd-hasmap .kd-mapbox .lyr{left:auto;right:16px;top:16px}
body.kd-hasmap .kd-mapbox .lyr-p{left:auto;right:0}
body.kd-hasmap .kd-mapbox .lyr-b{height:40px}
body.kd-hasmap .kd-mapbox .lyr-p{top:46px}
@media (min-width:900px){
  body.kd-hasmap .kd-main{left:16px;top:16px;bottom:16px;width:408px;max-width:none;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(20,32,63,.12);padding:16px 18px 24px}
  body.kd-hasmap .kd-edit{padding:16px 16px 18px;border-radius:16px}
  body.kd-hasmap .kd-edit .kd-form,body.kd-hasmap .kd-edit .kd-fgrid{grid-template-columns:1fr;gap:16px}
  body.kd-hasmap .kd-mapbox .mapkey{left:440px;bottom:16px}
  body.kd-hasmap .kd-mapbox .zoomc{left:440px;bottom:62px}
}
@media (max-width:899px){
  body.kd-hasmap .kd-main{left:0;right:0;bottom:0;max-height:58%;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgba(20,32,63,.18);padding:0 16px calc(14px + env(safe-area-inset-bottom,0px))}
  body.kd-hasmap .kd-bar{position:static;margin-left:0;margin-right:0;padding:8px 0 6px;border-bottom:0}
  body.kd-hasmap .kd-shd{display:block;position:sticky;top:0;z-index:6;background:#fff;margin:0 -16px 4px;padding:0 16px}
  .kd-shb{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;border:0;background:transparent;font:inherit;text-align:left;padding:18px 0 8px;position:relative;cursor:pointer;color:var(--ink)}
  .kd-grab{position:absolute;left:50%;top:7px;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#CFCFD6}
  .kd-shl{display:grid;min-width:0;flex:1}.kd-shl b{font-size:16px;font-weight:800;color:var(--ink)}.kd-shl span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.kd-hasmap .kd-cols:not(.is-min) .kd-shl{display:none}
  body.kd-hasmap .kd-cols:not(.is-min) .kd-shb{justify-content:flex-end;min-height:40px;padding-top:12px}
  .kd-shc{flex:none;font-size:13.5px;font-weight:700;color:var(--blue);min-height:44px;display:inline-flex;align-items:center}
  body.kd-hasmap .kd-cols.is-min .kd-main{max-height:none;overflow:visible}
  body.kd-hasmap .kd-cols.is-min .kd-main>:not(.kd-shd):not(#kdEdit){display:none}
  body.kd-hasmap .kd-cols.is-min .kd-shd{margin-bottom:0}
  body.kd-hasmap .kd-mapbox .mapkey,body.kd-hasmap .kd-mapbox .zoomc{display:none}
}
@media (prefers-reduced-motion:no-preference){.kd-card{transition:box-shadow .2s}}
.kd-seg[data-k=tenure] button{white-space:normal;line-height:1.2;padding:8px 6px}.kd-seg[data-k=tenure] button[data-v=free]{flex:1.7}
/* V2.1: Beyond the numbers is one quiet line */
.kd-ken-l{margin:4px 0 0;color:var(--muted)}.kd-ken-l a{color:var(--blue);font-weight:600;text-decoration:none;white-space:nowrap}
/* Bedroom Search (26 Oct 2026): resales whose bedroom count is not confirmed are their own quieter group, after the matches */
.kd-unconf .kd-ch .kd-cnt{color:var(--muted);font-size:14px;font-weight:600;margin-left:6px;letter-spacing:0}
.kd-uch{margin:14px 0 0;font-size:15px;color:var(--ink);font-weight:700}
.kd-card.kd-unc{background:#FBFBFA;border-style:dashed}
.kd-card.kd-unc .kd-ev b{font-size:16px}
.kd-uncl{margin-top:18px}.kd-uncl .kd-link{font-size:13px}

/* ---- Results layout (Ken, 28 Oct 2026): the width is used for comparison, not for bigger cards.
   List view (no place chosen): a centred container up to 1,400px; desktop = one compact table per group; phone and the map panel = compact expandable cards.
   Same V3.8 language: white, navy ink, hairlines, one blue for actions. ---- */
body[data-kd-view=list] .kd-wrap{max-width:var(--gw-shell-w,1400px)}
@media (min-width:900px){
  body[data-kd-view=list] .kd-cols{grid-template-columns:minmax(0,1fr)}
  body[data-kd-view=list] .kd-main{max-width:none}
}
.kd.is-results .kd-h1{font-size:28px;letter-spacing:-.025em;margin:0}
@media (min-width:900px){.kd.is-results .kd-h1{font-size:34px}}
.kd.is-results .kd-lead{margin-top:6px}
/* chips: plain words, with Edit search as the one outlined pill */
.kd.is-results .kd-bar{margin-top:10px;padding:6px 0 8px}
.kd.is-results .kd-barrow{display:flex;align-items:center;gap:6px;min-width:0}
.kd.is-results .kd-chips{margin:0;flex:0 1 auto;min-width:0;gap:2px}
.kd.is-results .kd-chip{border:0;background:transparent;padding:7px 10px;border-radius:10px;font-weight:500;font-size:14.5px;color:var(--ink)}
.kd.is-results .kd-chip:hover{background:var(--grey)}
/* R3 (30 Oct 2026): on every width the results' chips wrap, whole, as on phones; in the desktop map panel they were cut off behind Edit search */
.kd.is-results .kd-barrow{flex-wrap:wrap}
.kd.is-results .kd-chips{flex-wrap:wrap;overflow:visible}
.kd-editb{flex:none;display:inline-flex;align-items:center;gap:8px;border:1px solid #CFCFD6;background:#fff;border-radius:980px;padding:7px 14px;font:inherit;font-size:14.5px;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap;min-height:38px}
.kd-editb:hover{border-color:var(--ink)}.kd-editb[aria-expanded=true]{border-color:var(--ink);background:var(--grey)}
.kd.is-results .kd-quick2{margin:2px 0 0}.kd.is-results .kd-quick2 .kd-tick{margin-top:4px;font-size:13.5px}
/* groups */
.kd.is-results .kd-sec{margin-top:22px}
.kd.is-results .kd-g{margin-top:18px}
.kd.is-results .kd-gh{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 2px;flex-wrap:wrap}
.kd.is-results .kd-gh h3,.kd.is-results .kd-gh .kd-ch{margin:0;font-size:19px;font-weight:750;color:var(--ink);letter-spacing:-.02em}
.kd-cnt{color:var(--muted);font-size:14px;font-weight:500;margin-left:4px;letter-spacing:0}
.kd.is-results .kd-gn{border-left:0;padding-left:0;margin:2px 0 8px;font-size:13px}
.kd-sort{display:inline-flex;align-items:center;gap:4px;font-size:13.5px;color:var(--muted)}
.kd-sort select{border:0;background:transparent;font:inherit;font-size:13.5px;color:var(--ink);font-weight:600;padding:6px 2px;cursor:pointer;min-height:32px;field-sizing:content}
/* rows: a real table. Phone and the map panel: each row is a compact card (name and price, district · tenure, size); its details are the row after it */
.kd-tbl{width:100%;border-collapse:collapse;border-top:1px solid var(--line)}
.kd-tbl,.kd-tb{display:block}.kd-th{display:none}
.kd-card.kd-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:0;row-gap:2px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:11px 2px;background:transparent;align-items:baseline}
.kd-row>td{display:block;padding:0;min-width:0}
.kd-rnc{grid-column:1 / 3;grid-row:1;padding-right:12px!important}
.kd-rn{margin:0;font-size:16px;line-height:1.3;font-weight:650;color:var(--ink);letter-spacing:-.01em;min-width:0}
.kd-rt{border:0;background:transparent;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.kd-rt::after{content:"⌄";color:var(--muted);font-weight:400;font-size:13px;margin-left:6px}.kd-rt[aria-expanded=true]::after{content:"⌃"}
.kd-rt:hover{color:var(--blue)}
.kd-rdist{margin-left:8px;font-size:12.5px;color:var(--muted);font-weight:500}
.kd-rdi{grid-column:1;grid-row:2;font-size:13px;color:var(--muted)}
.kd-rten{grid-column:2;grid-row:2;font-size:13px;color:var(--muted)}.kd-rten::before{content:"\00a0· "}
.kd-rs{grid-column:1 / 3;grid-row:3;font-size:13.5px;color:var(--body);font-variant-numeric:tabular-nums}
.kd-rp{grid-column:3;grid-row:1 / span 2;text-align:right;font-variant-numeric:tabular-nums;align-self:start}
.kd-rp b{font-size:16px;font-weight:750;color:var(--ink);white-space:nowrap}
.kd-rp small{display:block;font-size:11.5px;color:var(--muted);font-weight:500;white-space:nowrap}
.kd-ac{grid-column:1 / -1;grid-row:4}
.kd-row .kd-acts{gap:16px;margin-top:4px}.kd-row .kd-acts a,.kd-row .kd-loc{font-size:13.5px;font-weight:600}
.kd-rxr{display:block}.kd-rxr[hidden]{display:none}.kd-rxr>td{display:block;padding:0 0 12px}
.kd-rx{padding:10px 12px;background:#FAFAFB;border-radius:12px;display:grid;gap:6px}
.kd-rx .kd-ev{font-size:13.5px}.kd-rx .kd-ev b{font-size:15px}
.kd-invd{font-size:13.5px}.kd-invd>span{display:block;color:var(--muted);font-size:12.5px}
.kd-card.kd-row.is-sel{box-shadow:inset 3px 0 0 var(--ink);padding-left:10px}
.kd-card.kd-row.kd-unc{background:transparent;border-style:solid}
.kd-row.is-hl{box-shadow:inset 3px 0 0 var(--blue)}
.kd-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kd.is-results .kd-more-b{min-height:40px;margin-top:10px;background:var(--grey);font-size:14px}
.kd-unconf>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:6px;padding:12px 0;border-top:1px solid var(--line)}
.kd-unconf>summary::-webkit-details-marker{display:none}
.kd-unconf>summary .kd-ch{font-size:17px;font-weight:700}
.kd-unconf>summary::after{content:"⌄";color:var(--muted);margin-left:auto}.kd-unconf[open]>summary::after{content:"⌃"}
.kd-sortl{display:none}
/* desktop table (list view only; the map panel keeps the cards) */
@media (min-width:900px){
  .kd-sortl{display:inline}.kd-sortm{display:none}
  body:not(.kd-hasmap) .kd-tbl{display:table;table-layout:fixed;border-top:0}
  body:not(.kd-hasmap) .kd-th{display:table-header-group}
  body:not(.kd-hasmap) .kd-tb{display:table-row-group}
  body:not(.kd-hasmap) .kd-th th{text-align:left;padding:6px 4px 6px;font-size:12.5px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line);vertical-align:bottom}
  body:not(.kd-hasmap) .kd-th th:nth-child(1){width:29%}body:not(.kd-hasmap) .kd-th th:nth-child(2){width:7%}body:not(.kd-hasmap) .kd-th th:nth-child(3){width:19%}
  body:not(.kd-hasmap) .kd-th th:nth-child(4){width:17%}body:not(.kd-hasmap) .kd-th th:nth-child(5){width:14%}body:not(.kd-hasmap) .kd-th th:nth-child(6){width:14%}
  body:not(.kd-hasmap) .kd-th th.r{text-align:right}
  .kd-sh{border:0;background:transparent;font:inherit;color:inherit;padding:4px 0;cursor:pointer;display:inline-flex;align-items:center;gap:5px;text-align:inherit}
  .kd-sh:hover{color:var(--ink)}.kd-th th[aria-sort] .kd-sh{color:var(--ink)}
  .kd-arr{font-size:9px;color:var(--ink)}
  body:not(.kd-hasmap) .kd-card.kd-row{display:table-row;padding:0;border:0}
  body:not(.kd-hasmap) .kd-row>td{display:table-cell;padding:11px 4px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px;color:var(--body)}
  body:not(.kd-hasmap) .kd-rnc{padding-right:12px!important}
  body:not(.kd-hasmap) .kd-rn{font-size:15px}
  body:not(.kd-hasmap) .kd-rten::before{content:none}
  body:not(.kd-hasmap) .kd-rbed{display:none}
  body:not(.kd-hasmap) .kd-rp{text-align:right}
  body:not(.kd-hasmap) .kd-row .kd-acts{margin:0;justify-content:flex-end;gap:14px;flex-wrap:nowrap}
  body:not(.kd-hasmap) .kd-row:hover>td{background:#FAFAFB}
  body:not(.kd-hasmap) .kd-row.is-open>td{border-bottom:0}
  body:not(.kd-hasmap) .kd-rxr{display:table-row}.kd-rxr[hidden]{display:none!important}
  body:not(.kd-hasmap) .kd-rxr>td{display:table-cell;padding:0 4px 12px;border-bottom:1px solid var(--line)}
  body:not(.kd-hasmap) .kd-card.kd-row.is-sel>td:first-child{box-shadow:inset 3px 0 0 var(--ink)}
}
@media (max-width:899px){
  .kd.is-results .kd-barrow{gap:4px}
  .kd.is-results .kd-barrow{flex-wrap:wrap}
  .kd.is-results .kd-chips{flex-wrap:wrap;overflow:visible;flex:0 1 auto;gap:0 2px}   /* every chip whole, wrapping; never cut off */
  body:not(.kd-hasmap) .kd.is-results .kd-bar{position:static;border-bottom:0}
  .kd.is-results .kd-h1{font-size:24px}
  .kd.is-results .kd-bar{padding:6px 16px 8px}
  .kd.is-results .kd-chip{padding:7px 8px;font-size:14px}
  /* phone list: compact cards; Research and Map are in the details, opened by tapping the name (with the map, they stay on each card) */
  body:not(.kd-hasmap) .kd-row:not(.is-open) .kd-acts{display:none}
}
.kd.is-results .kd-tick i{white-space:nowrap}
@media (max-width:899px){.kd.is-results .kd-chip{padding:6px 7px;font-size:13.5px}.kd-editb{min-height:36px;padding:6px 12px;font-size:14px}}
.kd-rx p{margin:0}
@media (max-width:899px){.kd-card.kd-row.is-open{border-bottom:0}.kd-rxr{border-bottom:1px solid var(--line)}}
body.kd-hasmap .kd-card.kd-row.is-open{border-bottom:0}body.kd-hasmap .kd-rxr{border-bottom:1px solid var(--line)}
