/* scraper_map_v8: all selectors scoped to .c-scraper_map_v8. Map colours follow the real program. */
.c-scraper_map_v8 {
  --smv7-line: #d4910f; --smv7-fill: #f6b73c; --smv7-gold: #a86a05; --smv7-goldfill: #f2a900; --smv7-mail: #1d1d22; --smv7-none: #a3a3a8;
  --smv7-h: clamp(360px, 52vh, 620px);
  color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.c-scraper_map_v8 *, .c-scraper_map_v8 *::before, .c-scraper_map_v8 *::after { box-sizing: border-box; }
.c-scraper_map_v8 button { font: inherit; color: inherit; }
.c-scraper_map_v8 :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header: what the program does, in 3 steps */
.c-scraper_map_v8 .smv7-title {
  margin: 0 0 clamp(14px, 2.2vh, 24px); color: var(--heading);
  font: 600 clamp(26px, 3.4vw, 46px)/1.08 var(--font); letter-spacing: -.03em; text-wrap: balance;
}
.c-scraper_map_v8 .smv7-steps { list-style: none; margin: 0 0 clamp(14px, 2.4vh, 26px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.c-scraper_map_v8 .smv7-step { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--sunken); min-width: 0; }
.c-scraper_map_v8 .smv7-step + .smv7-step::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: solid var(--faint); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
.c-scraper_map_v8 .smv7-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: #fff; font: 600 14px/1 var(--font); }
.c-scraper_map_v8 .smv7-st { min-width: 0; }
.c-scraper_map_v8 .smv7-st p { margin: 3px 0 10px; color: var(--heading); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.35; font-weight: 500; }
.c-scraper_map_v8 .smv7-demo { display: flex; flex-wrap: wrap; gap: 5px; }
.c-scraper_map_v8 .smv7-demo i {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--page); border: 1px solid var(--line-2); color: var(--text-2); font: 500 12px/1 var(--font); white-space: nowrap;
}
.c-scraper_map_v8 .smv7-demo i.smv7-q { border-radius: 7px; color: var(--heading); }
.c-scraper_map_v8 .smv7-demo svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.c-scraper_map_v8 .smv7-demo i.smv7-own { background: #fdf6e3; border-color: #f3dfa8; color: var(--smv7-gold); }
.c-scraper_map_v8 .smv7-dots { gap: 4px !important; background: rgba(246,183,60,.22) !important; border: 1.5px dashed var(--smv7-line) !important; border-radius: 7px !important; }
.c-scraper_map_v8 .smv7-dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--smv7-mail); box-shadow: 0 0 0 1.5px #fff; }
.c-scraper_map_v8 .smv7-dots b.g { background: var(--smv7-none); }

/* stats bar */
.c-scraper_map_v8 .smv7-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: clamp(12px, 2vh, 22px); }
.c-scraper_map_v8 .smv7-stat { padding-top: 10px; border-top: 1px solid var(--heading); min-width: 0; }
.c-scraper_map_v8 .smv7-stat b {
  display: block; color: var(--heading); font: 600 clamp(28px, 3.6vw, 48px)/1.02 var(--font);
  letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.c-scraper_map_v8 .smv7-stat span { display: block; margin-top: 4px; color: var(--text-3); font-size: 14px; }

/* program frame */
.c-scraper_map_v8 .smv7-frame { padding: clamp(12px, 1.6vw, 20px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--page); }
.c-scraper_map_v8 .smv7-label { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }
.c-scraper_map_v8 .smv7-label b { color: var(--heading); font-weight: 600; }
.c-scraper_map_v8 .smv7-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.c-scraper_map_v8 .smv7-map {
  position: relative; height: var(--smv7-h); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  overflow: hidden; isolation: isolate; background: #e9eef0;
}
.c-scraper_map_v8 .smv7-leaf { position: absolute; inset: 0; background: #e9eef0; cursor: grab; outline: none; }
.c-scraper_map_v8 .smv7-leaf:active { cursor: grabbing; }
.c-scraper_map_v8 .smv7-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.c-scraper_map_v8 .leaflet-container { font: 12px/1.4 var(--font); background: #e9eef0; }
.c-scraper_map_v8 .leaflet-interactive { cursor: pointer; }
.c-scraper_map_v8 .leaflet-control-attribution { background: rgba(255,255,255,.82); color: var(--text-3); font-size: 10px; border-top-left-radius: 6px; }
.c-scraper_map_v8 .leaflet-control-attribution a { color: inherit; }

.c-scraper_map_v8 .smv7-pill {
  position: absolute; z-index: 800; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 24px);
  padding: 7px 14px; border-radius: 999px; background: rgba(21,22,23,.86); color: #fff; font-size: 12px; line-height: 1.35;
  text-align: center; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .25s var(--ease);
}
.c-scraper_map_v8 .smv7-pill:empty, .c-scraper_map_v8 .smv7-pill.off { opacity: 0; }

/* legend */
.c-scraper_map_v8 .smv7-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.c-scraper_map_v8 .smv7-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.c-scraper_map_v8 .smv7-legend i { display: inline-block; flex: none; }
.c-scraper_map_v8 .lg-sel { width: 14px; height: 10px; border: 2px solid var(--smv7-gold); background: rgba(242,169,0,.45); border-radius: 3px; }
.c-scraper_map_v8 .lg-past { width: 14px; height: 10px; border: 1.5px dashed var(--smv7-line); background: rgba(246,183,60,.28); border-radius: 3px; }
.c-scraper_map_v8 .lg-pt { width: 9px; height: 9px; border-radius: 50%; background: var(--smv7-none); box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--smv7-none); }
.c-scraper_map_v8 .lg-pt.on { background: var(--smv7-mail); box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--smv7-mail); }
.c-scraper_map_v8 .smv7-inview { margin-left: auto; font-variant-numeric: tabular-nums; }
.c-scraper_map_v8 .smv7-note { margin: 8px 0 0; color: var(--faint); font-size: 12px; max-width: 760px; }

/* business card = popup on the dot */
.c-scraper_map_v8 .smv7-pop .leaflet-popup-content-wrapper {
  padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--page);
  box-shadow: 0 12px 32px rgba(17,18,20,.16), 0 2px 6px rgba(17,18,20,.06);
}
.c-scraper_map_v8 .smv7-pop .leaflet-popup-content { width: 272px !important; margin: 0; font: 13px/1.45 var(--font); color: var(--text); }
.c-scraper_map_v8 .smv7-pop .leaflet-popup-tip { background: var(--page); box-shadow: 0 0 0 1px var(--line-2); }
.c-scraper_map_v8 .smv7-pop { animation: smv7-up .14s var(--ease); }
@keyframes smv7-up { from { opacity: 0; margin-bottom: 14px; } }
.c-scraper_map_v8 .smv7-card { position: relative; padding: 14px; }
.c-scraper_map_v8 .smv7-card h3 {
  margin: 0 30px 2px 0; color: var(--heading); font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-scraper_map_v8 .smv7-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--text-3) !important; cursor: pointer;
}
.c-scraper_map_v8 .smv7-x:hover { background: var(--sunken); color: var(--heading) !important; }
.c-scraper_map_v8 .smv7-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.c-scraper_map_v8 .smv7-card .sub { margin: 0 0 10px; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-scraper_map_v8 .smv7-card .st { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-weight: 500; color: var(--text-3); }
.c-scraper_map_v8 .smv7-card .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--smv7-none); }
.c-scraper_map_v8 .smv7-card .st.ok { color: var(--heading); }
.c-scraper_map_v8 .smv7-card .st.ok i { background: var(--smv7-mail); }
.c-scraper_map_v8 .smv7-card .mails { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 5px; }
.c-scraper_map_v8 .smv7-card .mails li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--sunken); font-size: 12px;
}
.c-scraper_map_v8 .smv7-card .mails li[hidden] { display: none; }
.c-scraper_map_v8 .smv7-card .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-scraper_map_v8 .smv7-card em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3); }
.c-scraper_map_v8 .smv7-card em.own { color: var(--smv7-gold); }
.c-scraper_map_v8 .smv7-card em.hire { color: var(--text-2); }
.c-scraper_map_v8 .smv7-card em.off { color: var(--faint); text-decoration: line-through; }
.c-scraper_map_v8 .smv7-card .more { padding: 2px 0 6px; border: 0; background: none; color: var(--heading) !important; font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.c-scraper_map_v8 .smv7-card .more:hover { text-decoration: underline; }
.c-scraper_map_v8 .smv7-card .rest { margin: 0 0 6px; color: var(--text-3); font-size: 12px; }
.c-scraper_map_v8 .smv7-card .lpr { display: flex; gap: 7px; align-items: flex-start; margin: 4px 0 6px; padding: 7px 9px; border-radius: 8px; background: #fdf6e3; color: var(--smv7-gold); font-size: 12px; }
.c-scraper_map_v8 .smv7-card .lpr b { color: var(--heading); font-weight: 600; }
.c-scraper_map_v8 .smv7-card .lpr svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.c-scraper_map_v8 .smv7-card .acts { display: flex; gap: 6px; margin-top: 10px; }
.c-scraper_map_v8 .smv7-card .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--page); color: var(--heading) !important;
  text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease), transform .2s var(--spring);
}
.c-scraper_map_v8 .smv7-card .btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.c-scraper_map_v8 .smv7-card .btn.pri { flex: 1; background: var(--dark); border-color: var(--dark); color: #fff !important; }
.c-scraper_map_v8 .smv7-card .btn.pri small { min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: .75; font-size: 11px; font-weight: 400; }
.c-scraper_map_v8 .smv7-card .btn.pri:hover { background: #2b2c2f; }
.c-scraper_map_v8 .smv7-card .btn:not(.pri):not(.no):hover { background: var(--sunken); }
.c-scraper_map_v8 .smv7-card .btn.no { flex: 1; border-style: dashed; color: var(--text-3) !important; }
.c-scraper_map_v8 .smv7-card .btn:active { transform: scale(.97); }
.c-scraper_map_v8 .smv7-card .soc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.c-scraper_map_v8 .smv7-card .soc a {
  --b: var(--heading); display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--sunken); color: var(--text) !important; font-size: 12px; font-weight: 500; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.c-scraper_map_v8 .smv7-card .soc .s-fb { --b: #1877f2; } .c-scraper_map_v8 .smv7-card .soc .s-ig { --b: #e1306c; }
.c-scraper_map_v8 .smv7-card .soc .s-li { --b: #0a66c2; } .c-scraper_map_v8 .smv7-card .soc .s-yt { --b: #ff0000; }
.c-scraper_map_v8 .smv7-card .soc a:hover { background: color-mix(in srgb, var(--b) 12%, transparent); color: var(--b) !important; }

@media (prefers-reduced-motion: reduce) {
  .c-scraper_map_v8 *, .c-scraper_map_v8 *::before, .c-scraper_map_v8 *::after { transition-duration: .01ms !important; animation: none !important; }
}
/* card never taller than the map: long email lists scroll inside */
.c-scraper_map_v8 .smv7-card { max-height: calc(var(--smv7-h) - 56px); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 860px) {
  .c-scraper_map_v8 .smv7-pill { white-space: normal; border-radius: 14px; width: max-content; }
}

/* ---------- v3/v4 additions ---------- */
.c-scraper_map_v8 .smv7-leaf.smv7-over { cursor: pointer; }
.c-scraper_map_v8 .leaflet-control-zoom { border: 0; box-shadow: 0 2px 10px rgba(17,18,20,.14); border-radius: 10px; overflow: hidden; margin: 10px 10px 0 0; }
.c-scraper_map_v8 .leaflet-control-zoom a {
  width: 34px; height: 34px; line-height: 32px; border: 0; background: rgba(255,255,255,.96); color: var(--heading);
  font: 400 20px/32px var(--font); transition: background .2s var(--ease);
}
.c-scraper_map_v8 .leaflet-control-zoom a + a { border-top: 1px solid var(--line-2); }
.c-scraper_map_v8 .leaflet-control-zoom a:hover { background: var(--sunken); }

/* count badge over zones that have clickable businesses */
.c-scraper_map_v8 .smv7-count { width: 0 !important; height: 0 !important; background: none; border: 0; cursor: pointer; }
.c-scraper_map_v8 .smv7-count span {
  position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; background: var(--dark); color: #fff;
  font: 600 11px/1.3 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(17,18,20,.22); transition: transform .2s var(--spring), background .2s var(--ease);
}
.c-scraper_map_v8 .smv7-count span::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px;
  background: inherit; transform: rotate(45deg); border-radius: 1px;
}
.c-scraper_map_v8 .smv7-count:hover span { transform: translateX(-50%) scale(1.08); }
.c-scraper_map_v8 .smv7-count.on span { background: var(--smv7-gold); }
.c-scraper_map_v8 .smv7-count.hide { visibility: hidden; }

/* soft pulse on a few businesses */
.c-scraper_map_v8 .smv7-pulse { pointer-events: none; }
.c-scraper_map_v8 .smv7-pulse i {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--smv7-goldfill);
  opacity: 0; animation: smv7-pulse 2.4s var(--ease) infinite;
}
@keyframes smv7-pulse { 0% { transform: scale(.25); opacity: .9; } 80%, 100% { transform: scale(1); opacity: 0; } }

/* panel (desktop right column, mobile bottom sheet) */
.c-scraper_map_v8 .smv7-aside { position: relative; border-radius: var(--radius-sm); background: var(--sunken); min-height: var(--smv7-h); }
.c-scraper_map_v8 .smv7-aside-in { position: relative; padding: 18px; max-height: var(--smv7-h); overflow: auto; overscroll-behavior: contain; font-size: 13px; color: var(--text-2); }
.c-scraper_map_v8 .smv7-aside-in p { margin: 0 0 10px; }
.c-scraper_map_v8 .smv7-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: calc(var(--smv7-h) - 36px); margin: 0 !important; color: var(--text-3); font-size: 15px; font-weight: 500;
}
.c-scraper_map_v8 .smv7-empty i {
  width: 34px; height: 24px; border: 1.5px dashed var(--smv7-line); border-radius: 7px; background: rgba(246,183,60,.28);
}
.c-scraper_map_v8 .smv7-k { margin: 0 0 4px !important; color: var(--text-3); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.c-scraper_map_v8 .smv7-zn { margin: 0 34px 2px 0; color: var(--heading); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.c-scraper_map_v8 .smv7-dim { color: var(--text-3); }
.c-scraper_map_v8 .smv7-big { margin: 14px 0 12px !important; color: var(--text-2); font-size: 14px; }
.c-scraper_map_v8 .smv7-big b { color: var(--heading); font-size: 40px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-right: 4px; }
.c-scraper_map_v8 .smv7-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2); }
.c-scraper_map_v8 .smv7-grid div { padding: 9px 11px; background: var(--page); min-width: 0; }
.c-scraper_map_v8 .smv7-grid div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.c-scraper_map_v8 .smv7-grid b { display: block; color: var(--heading); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.c-scraper_map_v8 .smv7-grid span { display: block; color: var(--text-3); font-size: 12px; }
.c-scraper_map_v8 .smv7-tb { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.c-scraper_map_v8 .smv7-tb th { padding: 6px 0; text-align: left; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.c-scraper_map_v8 .smv7-tb td { padding: 7px 0; border-bottom: 1px solid var(--line-2); color: var(--text); }
.c-scraper_map_v8 .smv7-tb th + th, .c-scraper_map_v8 .smv7-tb td + td { text-align: right; font-variant-numeric: tabular-nums; }
.c-scraper_map_v8 .smv7-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--page); color: var(--text-3) !important; cursor: pointer;
}
.c-scraper_map_v8 .smv7-close:hover { color: var(--heading) !important; }
.c-scraper_map_v8 .smv7-close svg, .c-scraper_map_v8 .smv7-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.c-scraper_map_v8 .smv7-go {
  margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--dark); color: #fff !important; font-size: 13px; font-weight: 500; cursor: pointer; transition: transform .2s var(--spring);
}
.c-scraper_map_v8 .smv7-go svg { width: 16px; height: 16px; }
.c-scraper_map_v8 .smv7-go:active { transform: scale(.97); }
.c-scraper_map_v8 .smv7-aside.open .smv7-aside-in { animation: smv7-in .22s var(--ease); }
@keyframes smv7-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 860px) {
  .c-scraper_map_v8 { --smv7-h: min(64svh, 460px); }
  .c-scraper_map_v8 .smv7-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .c-scraper_map_v8 .smv7-stat b { font-size: 34px; }
  .c-scraper_map_v8 .smv7-frame { padding: 10px; border-radius: 16px; }
  .c-scraper_map_v8 .smv7-body { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; }
  /* bottom sheet over the map */
  .c-scraper_map_v8 .smv7-aside {
    position: absolute; z-index: 900; left: 0; right: 0; bottom: 0; min-height: 0; max-height: 64%;
    display: flex; flex-direction: column; border-radius: 16px 16px var(--radius-sm) var(--radius-sm);
    background: var(--page); box-shadow: 0 -8px 28px rgba(17,18,20,.18);
    transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .c-scraper_map_v8 .smv7-aside::before { content: ""; flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--line-2); }
  .c-scraper_map_v8 .smv7-aside.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .c-scraper_map_v8 .smv7-aside-in { max-height: none; flex: 1; padding: 10px 16px 16px; }
  .c-scraper_map_v8 .smv7-aside.open .smv7-aside-in { animation: none; }
  .c-scraper_map_v8 .smv7-close { top: 6px; right: 10px; background: var(--sunken); }
  .c-scraper_map_v8 .smv7-big { margin: 10px 0 10px !important; }
  .c-scraper_map_v8 .smv7-big b { font-size: 32px; }
  .c-scraper_map_v8 .smv7-grid b { font-size: 16px; }
  .c-scraper_map_v8 .smv7-legend { gap: 6px 14px; }
  .c-scraper_map_v8 .smv7-inview { margin-left: 0; width: 100%; }
    .c-scraper_map_v8 .smv7-pill { white-space: normal; border-radius: 14px; width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  .c-scraper_map_v8 .smv7-pulse { display: none; }
  .c-scraper_map_v8 .smv7-aside { transition: none !important; }
}

/* hint pill sits at the top so it never covers the zones and dots */
.c-scraper_map_v8 .smv7-pill { top: 12px; bottom: auto; }
@media (max-width: 860px) { .c-scraper_map_v8 .smv7-pill { font-size: 11.5px; padding: 6px 12px; } }
/* the card owns the map while open: zoom buttons step aside so its close button stays reachable */
.c-scraper_map_v8 .smv7-popopen .leaflet-control-zoom { opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s linear .2s; }

/* v4: compact frame, steps stack on phones */
.c-scraper_map_v8 .smv7-frame { padding: clamp(10px, 1.2vw, 16px); }
.c-scraper_map_v8 .smv7-legend { margin-top: 8px; }
@media (max-width: 860px) {
  .c-scraper_map_v8 .smv7-steps { grid-template-columns: 1fr; gap: 8px; }
  .c-scraper_map_v8 .smv7-step { padding: 10px 12px; gap: 10px; align-items: center; }
  .c-scraper_map_v8 .smv7-step + .smv7-step::before { display: none; }
  .c-scraper_map_v8 .smv7-st p { margin: 0; font-size: 15px; }
  .c-scraper_map_v8 .smv7-demo { display: none; }
  .c-scraper_map_v8 .smv7-n { width: 28px; height: 28px; font-size: 13px; }
  .c-scraper_map_v8 .smv7-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
  .c-scraper_map_v8 .smv7-stat { padding-top: 8px; }
  .c-scraper_map_v8 .smv7-stat b { font-size: clamp(19px, 5.6vw, 30px); letter-spacing: -.03em; }
  .c-scraper_map_v8 .smv7-stat span { font-size: 11.5px; line-height: 1.3; }
  .c-scraper_map_v8 .smv7-label { font-size: 14px; }
}

/* v6: label + numbers + hint read as one result block on top of the map */
.c-scraper_map_v8 .smv7-res { margin: 2px 2px 12px; }
.c-scraper_map_v8 .smv7-res .smv7-label { margin: 0 0 12px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; }
.c-scraper_map_v8 .smv7-res .smv7-stats { margin-bottom: 0; }
.c-scraper_map_v8 .smv7-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
@media (max-width: 860px) {
  .c-scraper_map_v8 .smv7-res { margin: 4px 4px 10px; }
  .c-scraper_map_v8 .smv7-res .smv7-label { font-size: 15px; margin-bottom: 10px; }
  .c-scraper_map_v8 .smv7-hint { margin-top: 8px; font-size: 12.5px; }
}
/* v7: dots hidden at the start view, fade in from zoom 10 */
.c-scraper_map_v8 .leaflet-smv7-dots-pane, .c-scraper_map_v8 .leaflet-smv7-pulse-pane { opacity: 0; transition: opacity .5s var(--ease, ease); }
.c-scraper_map_v8 .smv7-showdots .leaflet-smv7-dots-pane, .c-scraper_map_v8 .smv7-showdots .leaflet-smv7-pulse-pane { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .c-scraper_map_v8 .leaflet-smv7-dots-pane, .c-scraper_map_v8 .leaflet-smv7-pulse-pane { transition: none; } }
.c-scraper_map_v8 .smv7-step .smv7-st p { margin-bottom: 8px; }
