body.sm-site { overflow: hidden; }
.sm { position: fixed; inset: 0; display: grid; grid-template-columns: 420px 1fr; grid-template-rows: auto 1fr; background: var(--page, var(--bg)); }
.sm-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--surface); border-bottom: 1px solid var(--line); z-index: 5;
}
.sm-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--bg); flex: none; }
.sm-round:hover { background: var(--bg-2); }
.sm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.sm-brand b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-logo { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 13px; background: var(--brand); }
.sm-logo img { width: 100%; height: 100%; object-fit: cover; }
.sm-seg { margin-left: auto; display: flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--bg); }
.sm-seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.sm-seg button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(16, 24, 40, .12); }
.sm-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 24, 40, .14); cursor: pointer;
}
.sm-pill .ic { width: 17px; height: 17px; }
.sm-pill em { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; font-style: normal; font-size: 11.5px; line-height: 20px; text-align: center; color: #fff; background: var(--brand); }
.sm-top .sm-pill { box-shadow: none; }
.sm-side { grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 2; }
.sm-side-head { padding: 16px 18px 10px; display: grid; gap: 2px; }
.sm-side-head b { font-size: 17px; color: var(--ink); }
.sm-side-head span { font-size: 12.5px; }
.sm-list { flex: 1; overflow-y: auto; padding: 4px 12px 24px; display: grid; gap: 10px; align-content: start; }
.sm-none { margin: 30px 18px; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); }
.sm-none .ic { width: 30px; height: 30px; }
.sm-none b { color: var(--ink); }
.sm-card { display: flex; gap: 12px; padding: 8px; border-radius: 16px; border: 1px solid transparent; color: inherit; transition: background .15s, border-color .15s; }
.sm-card:hover, .sm-card.on { background: var(--bg); border-color: var(--line); }
.sm-card-img { position: relative; width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.sm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sm-card-img em { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(16, 24, 40, .7); }
.sm-card-body { min-width: 0; display: grid; gap: 3px; align-content: start; }
.sm-card-price { font-size: 17px; font-weight: 800; color: var(--navy, var(--ink)); }
.sm-alt { font-size: 12px; font-weight: 600; color: var(--muted); }
.sm-card-title { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card-loc { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-card-loc .ic { width: 13px; height: 13px; flex: none; }
.sm-card-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-card-facts span { font-size: 12px; font-weight: 600; color: var(--text); background: var(--bg-2); padding: 1px 7px; border-radius: 6px; }
.sm-map-wrap { position: relative; grid-row: 2; min-height: 0; }
.sm-map { position: absolute; inset: 0; background: var(--bg-2); }
.sm-map.sm-drawing { cursor: crosshair; touch-action: none; }
.sm-tools { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; gap: 8px; }
.sm-draw[aria-pressed="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.sm-draw-hint {
  position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(16, 24, 40, .82); max-width: calc(100% - 32px);
}
.sm-locate { position: absolute; right: 10px; bottom: 96px; z-index: 500; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 24, 40, .14); }
.sm-loading { position: absolute; inset: 0; z-index: 400; display: grid; place-items: center; pointer-events: none; }
.sm-loading[hidden] { display: none; }
.sm-loading span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: sm-spin .8s linear infinite; }
@keyframes sm-spin { to { transform: rotate(360deg); } }
.sm-strip { display: none; }
.sm-only-m { display: none; }

.sm-pin-box { background: none; border: 0; }
.sm-pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; padding: 5px 9px; border-radius: 999px;
  font: 800 12.5px/1 var(--font, inherit); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(16, 24, 40, .22); cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.sm-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.sm-pin.soft { border-style: dashed; }
.sm-pin.hot { color: #B42318; }
.sm-pin:hover, .sm-pin.on { z-index: 1000; color: #fff; background: var(--brand); border-color: var(--brand); transform: translate(-50%, -100%) scale(1.12); }
.sm-pin.on::after, .sm-pin:hover::after { border-color: var(--brand); }
.sm-cluster {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px/1 var(--font, inherit); color: #fff; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent), 0 4px 12px rgba(16, 24, 40, .25); cursor: pointer;
}
.sm-cluster.lg { width: 48px; height: 48px; }
.sm-cluster.xl { width: 56px; height: 56px; font-size: 14px; }
.leaflet-marker-icon.sm-pin-box:focus-visible .sm-pin { outline: 3px solid var(--brand); outline-offset: 2px; }

@media (max-width: 900px) {
  .sm { grid-template-columns: 1fr; }
  .sm-top { gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; z-index: 800; }
  .sm-brand b { display: none; }
  .sm-seg { margin-left: 0; flex: 1; }
  .sm-seg button { flex: 1; padding: 0 6px; }
  .sm-top .sm-filters span { display: none; }
  .sm-top .sm-filters { width: 40px; padding: 0; justify-content: center; position: relative; }
  .sm-top .sm-filters em { position: absolute; top: -4px; right: -4px; }
  .sm-side { position: absolute; inset: 0; top: auto; height: 100%; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); z-index: 600; grid-row: auto; border-right: 0; padding-top: 112px; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sm-side.open { transform: none; }
  .sm-map-wrap { grid-row: 2; }
  .sm-only-m { display: inline-flex; }
  .sm-tools { top: 12px; width: max-content; max-width: calc(100% - 20px); z-index: 700; }
  .sm-tools .sm-pill span { font-size: 13px; }
  .sm-strip {
    display: flex; position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 500; gap: 10px;
    padding: 0 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .sm-strip::-webkit-scrollbar { display: none; }
  .sm-strip[hidden] { display: none; }
  .sm-card-h { flex: 0 0 min(86%, 360px); scroll-snap-align: center; background: var(--surface); border-color: var(--line); box-shadow: 0 10px 28px rgba(16, 24, 40, .2); }
  .sm-card-h.on { border-color: var(--brand); }
  .sm-card-h .sm-card-img { width: 112px; }
  .sm-strip { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); z-index: 1001; }
  .sm-locate { bottom: calc(222px + env(safe-area-inset-bottom, 0px)); }
  .sm .leaflet-control-zoom { margin-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
}
