/* The practice search (card M16uOYyr, plan docs/ai/2026/10/2026-10-01-
   practice-search; the design board's "Chosen 1 Oct"). The city bar
   sticks under the header and the filters beside the results; the
   filters scroll on their own only when the window is too short for
   them. Below 900px the filters are a sheet behind a button (once
   practices.js has run) and the results one column. The map's own
   rules are at the end, prefixed sm- */

.ps {
  --ps-bar-top: 71px;
  --ps-side-top: 168px;
  --ps-open: #276b47;
  --ps-open-bg: #e4f1ea;
  --ps-loi: #7a5605;
  --ps-loi-bg: #fbf1dc;
  --ps-sold: #76406f;
  --ps-sold-bg: #f3e8f2;
  --ps-pin-open: #2c5870;
  --ps-pin-loi: #8a6206;
  --ps-pin-sold: #82487c;
}

.ps-hero {
  background: var(--po-tint-cool);
  padding: var(--po-sp-10) 0 var(--po-sp-2);
}

.ps-hero h1 {
  margin: 0;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-display);
  font-weight: 600;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-ink-soft);
}

.ps-hero p {
  margin: var(--po-sp-2) 0 0;
  font-size: var(--po-fs-xl);
  color: var(--po-body);
}

/* Heard, not seen: the new search's count (practices.js, plan L3) */
.ps-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The city bar */

.ps-bar {
  position: sticky;
  top: var(--ps-bar-top);
  z-index: 60;
  background: var(--po-tint-cool);
  padding: var(--po-sp-3) 0 var(--po-sp-4);
  border-bottom: 1px solid var(--po-line-2);
}

.ps-bar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--po-sp-2);
}

.ps-bar-in > * {
  flex-shrink: 0;
}

.ps-city {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  height: 46px;
  box-sizing: border-box;
  padding-left: var(--po-sp-3);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 8px;
}

.ps-city:focus-within {
  border-color: var(--po-brand-2);
  box-shadow: 0 0 0 3px rgba(58, 115, 150, 0.13);
}

.ps-city svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--po-muted);
}

.ps-city input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  background: none;
  padding: 0 var(--po-sp-3);
  font: inherit;
  font-size: 16px;
  color: var(--po-ink-soft);
}

.ps-within,
.ps-sort {
  display: flex;
  align-items: center;
  gap: var(--po-sp-2);
  height: 46px;
  box-sizing: border-box;
  padding: 0 var(--po-sp-2) 0 var(--po-sp-3);
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 8px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  color: var(--po-ink-2);
}

.ps-within select,
.ps-sort select {
  height: 40px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--po-ink-soft);
  cursor: pointer;
}

.ps-go,
.ps-fbtn {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: var(--po-sp-2);
}

.ps-go svg,
.ps-fbtn svg {
  width: 17px;
  height: 17px;
}

.ps-fcount {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--po-brand-ink);
  color: #fff;
  font-size: var(--po-fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-fcount[hidden] {
  display: none;
}

/* The filters beside the results */

.ps-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--po-sp-8);
  align-items: start;
  padding-bottom: var(--po-sp-16);
}

.ps-side {
  position: sticky;
  top: var(--ps-side-top);
  max-height: calc(100vh - var(--ps-side-top) - var(--po-sp-4));
  overflow-y: auto;
  margin-top: var(--po-sp-6);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
}

.ps-side-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--po-sp-3) var(--po-sp-4) var(--po-sp-1);
}

.ps-side-h h2 {
  margin: 0;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.ps-clear {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 700;
  color: var(--po-brand-ink);
}

.ps-close {
  display: none;
}

.ps-side-b {
  padding: 0 var(--po-sp-4) var(--po-sp-2);
}

.ps-group {
  margin: 0;
  padding: var(--po-sp-2) 0;
  border: 0;
  border-top: 1px solid var(--po-line);
}

.ps-group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--po-ink-soft);
}

.ps-group legend + * {
  clear: both;
}

.ps-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 0 2px;
  height: 28px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 700;
  color: var(--po-brand-ink);
  cursor: pointer;
}

.ps-opt {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 500;
  color: var(--po-ink-2);
  cursor: pointer;
}

.ps-opt:hover {
  background: var(--po-tint-cool);
}

.ps-opt input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--po-brand-ink);
}

.ps-opt span:first-of-type {
  flex: 1;
}

.ps-opt .n {
  font-size: var(--po-fs-md);
  color: var(--po-body);
  font-variant-numeric: tabular-nums;
}

.ps-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.ps-all[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .ps-all svg {
    transition: none;
  }
}

/* "Show all 8": folded, a long list hides what follows its first few */
.ps-group.folded .ps-opt[data-more] {
  display: none;
}

.ps-side-f {
  display: none;
}

/* The results */

.ps-res {
  min-width: 0;
  padding-top: var(--po-sp-6);
}

.ps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-4);
}

.ps-head h2 {
  margin: 0;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-3xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--po-ink-soft);
}

.ps-head p {
  margin: 2px 0 0;
  font-size: var(--po-fs-lg);
  color: var(--po-body);
}

.ps-tools {
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
}

.ps-sort {
  height: 40px;
}

.ps-view {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: #eef1f4;
}

.ps-view[hidden] {
  display: none;
}

.ps-view button {
  height: 34px;
  padding: 0 var(--po-sp-4);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--po-body);
  cursor: pointer;
}

.ps-view button[aria-pressed="true"] {
  background: #fff;
  color: var(--po-ink-soft);
  box-shadow: 0 1px 3px rgba(30, 40, 50, 0.15);
}

.ps-save {
  margin-top: var(--po-sp-4);
  padding: var(--po-sp-3) var(--po-sp-3) var(--po-sp-3) var(--po-sp-4);
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
  border: 1px solid #d3e2ec;
  border-radius: 12px;
  background: var(--po-brand-tint);
}

.ps-save > svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 11px;
  border-radius: 50%;
  background: #fff;
  color: var(--po-brand-ink);
}

.ps-save > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-save b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  color: var(--po-ink-soft);
}

.ps-save span {
  font-size: var(--po-fs-base);
  color: var(--po-body);
}

.ps-save .btn {
  flex-shrink: 0;
}

.ps-sec {
  padding-top: var(--po-sp-10);
}

.ps-sec:first-of-type {
  padding-top: var(--po-sp-6);
}

.ps-sec-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--po-sp-3);
  padding-bottom: var(--po-sp-3);
  margin-bottom: var(--po-sp-4);
  border-bottom: 1px solid var(--po-line);
}

.ps-sec-h .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: center;
  background: var(--ps-open);
}

.ps-pending .dot {
  background: var(--ps-loi);
}

.ps-sold .dot {
  background: var(--ps-sold);
}

.ps-sec-h h3 {
  margin: 0;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-2xl);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.ps-sec-h .n {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--po-body);
}

.ps-sec-h .line {
  margin-left: auto;
  font-size: var(--po-fs-base);
  color: var(--po-body);
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--po-sp-5);
}

.ps-more {
  grid-column: 1 / -1;
  justify-self: center;
}

.ps-empty {
  margin-top: var(--po-sp-6);
  padding: var(--po-sp-12) var(--po-sp-8);
  border: 1px dashed #cfd6dc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--po-sp-2);
  text-align: center;
}

.ps-empty b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-3xl);
  color: var(--po-ink-soft);
}

.ps-empty > div {
  margin-top: var(--po-sp-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--po-sp-2);
}

/* The card's search chips (E5) */

.ps .card-l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-2);
}

.card-mi {
  flex-shrink: 0;
  font-family: var(--po-font-text);
  font-size: var(--po-fs-md);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--po-body);
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.chip.st {
  left: 12px;
  top: 12px;
}

.chip.st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentcolor;
}

.st-open {
  background: var(--ps-open-bg);
  color: var(--ps-open);
}

.st-loi {
  background: var(--ps-loi-bg);
  color: var(--ps-loi);
}

.st-sold {
  background: var(--ps-sold-bg);
  color: var(--ps-sold);
}

.chip.dom {
  right: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--po-ink-soft);
}

.chip.dom.new {
  background: var(--po-brand-ink);
  color: #fff;
}

.chip.sale {
  left: 12px;
  bottom: 12px;
  background: rgba(59, 68, 76, 0.92);
  color: #fff;
}

/* The account prompt */

.gate {
  width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: var(--po-sp-8);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(20, 30, 40, 0.55);
  color: var(--po-body);
}

.gate::backdrop {
  background: rgba(28, 36, 44, 0.48);
}

.gate[open] {
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-3);
}

.gate-x {
  position: absolute;
  right: var(--po-sp-4);
  top: var(--po-sp-4);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--po-bg-3);
  color: var(--po-ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gate-x svg {
  width: 18px;
  height: 18px;
}

.gate-l {
  margin-right: 52px;
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
  padding: var(--po-sp-3);
  border-radius: 12px;
  background: var(--po-tint-cool);
}

.gate-l > svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  background: #dfe8ef;
  color: var(--po-brand-ink);
}

.gate-l > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: var(--po-fs-md);
}

.gate-l b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  color: var(--po-ink-soft);
}

.gate h2 {
  margin: var(--po-sp-2) 0 0;
  font-family: var(--po-font-ui);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: var(--po-ls-tight);
  line-height: 1.2;
  color: var(--po-ink-soft);
}

.gate p {
  margin: 0 0 var(--po-sp-2);
  font-size: var(--po-fs-lg);
  line-height: 1.55;
}

.gate .btn {
  height: 50px;
  justify-content: center;
}

.gate-f {
  margin-top: var(--po-sp-2);
  padding-top: var(--po-sp-4);
  border-top: 1px solid var(--po-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-3);
}

.gate-f[hidden] {
  display: none;
}

.gate-f a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--po-font-ui);
  font-weight: 700;
  color: var(--po-brand-ink);
}

.gate-f .arw {
  width: 16px;
  height: 16px;
}

/* A tablet: two cards a row */

@media (max-width: 1180px) {
  .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A phone: one column, the filters a sheet behind a button */

@media (max-width: 899px) {
  .ps {
    --ps-bar-top: 0;
  }

  .ps-hero {
    padding: var(--po-sp-6) 0 var(--po-sp-2);
  }

  .ps-bar {
    position: static;
  }

  .ps-city {
    flex-basis: 100%;
  }

  .ps-within {
    flex: 1;
  }

  .ps-go {
    display: none;
  }

  .ps-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ps-side {
    position: static;
    max-height: none;
  }

  .ps-side.sheet {
    display: none;
    position: fixed;
    inset: 15vh 0 0;
    z-index: 90;
    margin: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 0 100vmax rgba(28, 36, 44, 0.48);
  }

  .ps-side.sheet.open {
    display: flex;
  }

  .ps-side.sheet .ps-side-b {
    flex: 1;
    overflow-y: auto;
  }

  .ps-side.sheet .ps-close {
    display: flex;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    align-items: center;
    justify-content: center;
    order: -1;
    color: var(--po-ink-2);
  }

  .ps-side.sheet .ps-close svg {
    width: 20px;
    height: 20px;
  }

  /* Shown on a phone with or without the sheet: without script it is
     how the filters are sent */
  .ps-side-f {
    display: block;
    padding: var(--po-sp-3) var(--po-sp-4) var(--po-sp-5);
    border-top: 1px solid var(--po-line);
  }

  .ps-side-f .btn {
    width: 100%;
    height: 50px;
    justify-content: center;
  }

  .ps-opt {
    min-height: 44px;
  }

  .ps-head {
    align-items: flex-start;
  }

  .ps-save {
    flex-wrap: wrap;
  }

  .ps-save > svg {
    display: none;
  }

  .ps-sec-h .line {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (min-width: 900px) {
  .ps-fbtn {
    display: none;
  }
}

@media (max-width: 640px) {
  .ps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-tools {
    width: 100%;
  }

  .ps-sort {
    flex: 1;
    min-width: 0;
  }

  .ps-sort select {
    flex: 1;
    min-width: 0;
  }

  .ps-save > div {
    flex-basis: calc(100% - 60px);
  }

  .ps-save .btn {
    width: 100%;
    justify-content: center;
  }

  .gate {
    padding: var(--po-sp-5);
  }
}

/* The map (search-map.js): the textured US, states shaded by how many
   practices they hold, and a pin per town */

.ps-map {
  position: relative;
  height: min(680px, 75vh);
  margin-top: var(--po-sp-6);
  border: 1px solid var(--po-line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #f3f1ec;
  transition: background-color 0.3s;
}

/* Zoomed out, the frame is the pale sea the country sits in (L20) */
.ps-map.sm-far {
  background: #eaf1f6;
}

.ps-map[hidden] {
  display: none;
}

.ps-map svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.sm-land {
  fill: #f6f4ef;
  stroke: #d9d4c8;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.sm-land.s1 {
  fill: #d6e4ee;
}

.sm-land.s2 {
  fill: #adc9dc;
}

.sm-land.s3 {
  fill: #6f9fc0;
}

.sm-land.s4 {
  fill: #2f6a91;
}

.sm-tex {
  transition: opacity 0.3s, visibility 0s;
}

/* Zoomed out the map is clean (plan L1): the texture fades out, and
   hides once faded so a zoom does not repaint it */
.sm-tex.off {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .sm-tex,
  .sm-tex.off {
    transition: none;
  }
}

.sm-borders,
.sm-nation {
  fill: none;
  stroke: #7d8a95;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

/* The sea (plan L10, L20): blue under the land zoomed in, and a paler
   blue zoomed out - lighter than the lightest shaded state, so the two
   never read alike (Cannon, 2 Oct) */
.sm-sea .ocean {
  fill: #cfe0ea;
  stroke: none;
  transition: fill 0.3s;
}

.sm-sea.far .ocean {
  fill: #eaf1f6;
}

@media (prefers-reduced-motion: reduce) {
  .ps-map,
  .sm-sea .ocean {
    transition: none;
  }
}

/* Zoomed in, the rest of the texture is faint - built-up areas, rivers
   and roads - and there are no county lines: the detail drew the eye
   from the listings (Cannon, 2 Oct). Lakes stay the sea's blue */
.sm-tex .urban {
  fill: rgba(205, 190, 165, 0.16);
  stroke: none;
}

.sm-tex .water {
  fill: #cfe0ea;
  stroke: none;
}

.sm-tex .rivers {
  fill: none;
  stroke: #c4d8e5;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.sm-tex .roads {
  fill: none;
  stroke: #ecd6ae;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

/* Town names (L11): under the pins in weight, never over them */
.sm-town {
  pointer-events: none;
}

.sm-town circle {
  fill: #7d8a95;
}

.sm-town text {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 500;
  fill: #4d5760;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
}

.sm-town.big text {
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--po-ink-soft);
}

.sm-ring {
  fill: rgba(47, 106, 145, 0.06);
  stroke: rgba(47, 106, 145, 0.45);
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.sm-here circle {
  fill: var(--po-ink-soft);
}

.sm-here text,
.sm-n text {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 700;
  fill: var(--po-ink-soft);
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  pointer-events: none;
}

.sm-n circle {
  fill: var(--po-ink-soft);
  stroke: #fff;
  stroke-width: 2;
}

.sm-n text {
  fill: #fff;
  stroke: none;
  dominant-baseline: central;
}

.sm-n,
.sm-pin {
  cursor: pointer;
}

.sm-pin rect {
  stroke: #fff;
  stroke-width: 1.2;
  paint-order: stroke;
  filter: drop-shadow(0 1px 2px rgba(20, 24, 27, 0.25));
}

.sm-pin circle {
  stroke: #fff;
  stroke-width: 2;
}

.sm-pin.open rect,
.sm-pin.open circle {
  fill: var(--ps-pin-open);
}

.sm-pin.loi rect,
.sm-pin.loi circle {
  fill: var(--ps-pin-loi);
}

.sm-pin.sold rect,
.sm-pin.sold circle {
  fill: var(--ps-pin-sold);
}

.sm-pin text {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 700;
  fill: #fff;
  dominant-baseline: central;
  pointer-events: none;
}

.sm-pin:hover rect,
.sm-pin:focus-visible rect {
  fill: #1c2e3a;
}

.sm-pin:focus-visible,
.sm-n:focus-visible {
  outline: none;
}

.sm-pin:focus-visible rect,
.sm-n:focus-visible circle {
  stroke: var(--po-brand-2);
  stroke-width: 2.5;
}

.sm-key {
  position: absolute;
  left: var(--po-sp-4);
  bottom: var(--po-sp-4);
  right: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--po-sp-2);
  pointer-events: none;
}

.sm-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 var(--po-sp-3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(20, 30, 40, 0.5);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.sm-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.sm-key .k-open {
  background: var(--ps-pin-open);
}

.sm-key .k-loi {
  background: var(--ps-pin-loi);
}

.sm-key .k-sold {
  background: var(--ps-pin-sold);
}

/* A bubble of towns too close to show apart (plan L17), keyed as one */
.sm-key .k-group {
  width: 12px;
  height: 12px;
  background: var(--po-ink-soft);
}

.sm-key .k-shade {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.sm-key .k-s1 {
  background: #d6e4ee;
}

.sm-key .k-s2 {
  background: #adc9dc;
}

.sm-key .k-s3 {
  background: #6f9fc0;
}

.sm-key .k-s4 {
  background: #2f6a91;
}

.sm-zoom {
  position: absolute;
  right: var(--po-sp-4);
  bottom: var(--po-sp-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--po-sh-2);
}

.sm-zoom button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 600;
  color: var(--po-ink-soft);
  cursor: pointer;
}

.sm-zoom button + button {
  border-top: 1px solid var(--po-line);
}

.sm-zoom .fit {
  font-size: var(--po-fs-xs);
  letter-spacing: var(--po-ls-caps);
}

.sm-top {
  position: absolute;
  left: var(--po-sp-4);
  top: var(--po-sp-4);
  display: flex;
  align-items: center;
  gap: var(--po-sp-2);
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(20, 30, 40, 0.5);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.sm-top button {
  min-height: 32px;
  padding: 0 var(--po-sp-3);
  border: 0;
  border-radius: 999px;
  background: var(--po-brand-tint);
  font: inherit;
  font-weight: 700;
  color: var(--po-brand-ink);
  cursor: pointer;
}

.sm-pop {
  position: absolute;
  z-index: 20;
  width: 270px;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: var(--po-sp-3) var(--po-sp-4);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(20, 30, 40, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--po-fs-md);
}

.sm-pop[hidden] {
  display: none;
}

.sm-pop b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  color: var(--po-ink-soft);
}

.sm-pop .row {
  display: flex;
  justify-content: space-between;
}

.sm-pop .row b {
  font-size: var(--po-fs-md);
}

.sm-pop .note {
  font-size: var(--po-fs-sm);
}

.sm-pop .btn {
  margin-top: 4px;
  justify-content: center;
}

.sm-pop .chip {
  position: static;
  align-self: flex-start;
}

.sm-pop + .sm-pop,
.sm-pop .sep {
  border-top: 1px solid var(--po-line);
  padding-top: 6px;
}
