:root {
  --v2-bg: #0b1220;
  --v2-panel-bg: #101a2e;
  --v2-accent: #34d3c9;
  --v2-accent-dim: #1f7f79;
  --v2-text: #e7edf5;
  --v2-text-dim: #93a1b8;
  --v2-border: #22304a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#v2-nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  background: var(--v2-panel-bg);
  border-bottom: 1px solid var(--v2-border);
  position: relative;
  z-index: 1100;
}
.v2-nav-brand { font-size: 18px; font-weight: 700; color: var(--v2-text); text-decoration: none; flex-shrink: 0; }
.v2-nav-brand span { color: var(--v2-accent); }
#v2-nav-links { display: flex; gap: 22px; flex: 1; }
#v2-nav-links a { color: var(--v2-text-dim); text-decoration: none; font-size: 14px; }
#v2-nav-links a:hover { color: var(--v2-text); }
.v2-nav-cta {
  flex-shrink: 0;
  background: var(--v2-accent);
  color: #06231f;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.v2-nav-cta:hover { background: #4fe3d9; }
@media (max-width: 700px) {
  #v2-nav-links { display: none; }
}

#v2-app {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  overflow: hidden;
}

#v2-map {
  position: absolute;
  inset: 0;
  background: var(--v2-bg);
}

/* Dark-tinted tile layer to match the reference site's dark theme without
   needing a paid vector-tile provider - CSS filter over the free OSM raster
   tiles this theme's own production map already uses. */
#v2-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) grayscale(0.9) brightness(0.74) contrast(0.92);
}

/* ---- Multi-field search bar (keyword + location + practice area) -
   a full-width strip pinned to the top of the map area, distinct from
   #v2-search-panel below it (which stays as the quick "click a country"
   entry point - the two serve different intents, not a replacement). ---- */
#v2-multi-search {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(16,26,46,0.92);
  border-bottom: 1px solid var(--v2-border);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.v2-multi-search-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; position: relative; }
.v2-multi-search-field label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--v2-text-dim); font-weight: 600; }
.v2-multi-search-field input,
.v2-multi-search-field select {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: #0d1626;
  color: var(--v2-text);
  font-size: 13.5px;
  font-family: inherit;
}
.v2-multi-search-field input:focus,
.v2-multi-search-field select:focus { outline: 1px solid var(--v2-accent); }
#v2-ms-submit {
  flex-shrink: 0;
  background: var(--v2-accent);
  color: #06231f;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  align-self: flex-end;
}
#v2-ms-submit:hover { background: #4fe3d9; }
#v2-ms-nearme {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--v2-accent);
  border: 1px solid var(--v2-accent-dim);
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-end;
  white-space: nowrap;
}
#v2-ms-nearme:hover { background: rgba(52,211,201,0.1); border-color: var(--v2-accent); }
#v2-ms-nearme:disabled { opacity: 0.6; cursor: default; }
.v2-ms-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--v2-panel-bg);
  border: 1px solid var(--v2-border);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1001;
}
.v2-ms-suggestions.v2-open { display: block; }
.v2-ms-suggestion { padding: 8px 12px; font-size: 13.5px; cursor: pointer; display: flex; justify-content: space-between; }
.v2-ms-suggestion:hover { background: rgba(52,211,201,0.1); }
@media (max-width: 700px) {
  /* Stays position:absolute (not static) - #v2-map is position:absolute;
     inset:0 regardless of sibling document flow, so a static search bar
     here would just render on top of/behind the map rather than pushing
     it down. Stacks the fields vertically instead; #v2-search-panel's
     top offset is set from JS (v2-map.js) based on this bar's real
     rendered height, not a guessed pixel value here - it varies too much
     between viewport widths to hardcode safely. */
  #v2-multi-search { flex-direction: column; align-items: stretch; }
  #v2-ms-submit, #v2-ms-nearme { align-self: stretch; justify-content: center; }
}

#v2-search-panel {
  position: absolute;
  top: 108px;
  left: 24px;
  z-index: 1000;
  width: 300px;
  background: var(--v2-panel-bg);
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.v2-brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--v2-text);
}
.v2-brand span { color: var(--v2-accent); }

.v2-search-box { position: relative; }

#v2-search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: #0d1626;
  color: var(--v2-text);
  font-size: 14px;
}
#v2-search-input:focus { outline: 1px solid var(--v2-accent); }

#v2-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--v2-panel-bg);
  border: 1px solid var(--v2-border);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}
#v2-search-suggestions.v2-open { display: block; }
.v2-suggestion {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.v2-suggestion:hover { background: #16233d; }
.v2-suggestion .v2-count { color: var(--v2-text-dim); }

.v2-summary {
  margin-top: 14px;
  font-size: 12px;
  color: var(--v2-text-dim);
}

#v2-results-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 360px;
  /* Not 100vh - this panel is positioned relative to #v2-app, which is
     now calc(100vh - 60px) tall (the nav header above it), and vh units
     are always relative to the real viewport regardless of the
     positioned ancestor's actual height. 100vh here would overflow
     #v2-app's own bottom edge by exactly the nav's height and get
     clipped by #v2-app's overflow:hidden. */
  height: 100%;
  background: var(--v2-panel-bg);
  border-left: 1px solid var(--v2-border);
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.25s ease;
}
#v2-results-panel.v2-hidden { transform: translateX(100%); }

#v2-results-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--v2-text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
#v2-results-close:hover { color: var(--v2-text); }

.v2-results-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-accent);
  margin-bottom: 6px;
}

#v2-results-title { margin: 0 0 4px; font-size: 24px; }

.v2-results-count {
  font-size: 13px;
  color: var(--v2-text-dim);
  margin-bottom: 16px;
}

#v2-refine-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: #0d1626;
  color: var(--v2-text);
  font-size: 13px;
  margin-bottom: 16px;
}

#v2-guides-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-guides-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-accent);
  margin-bottom: 8px;
}
#v2-guides-list { display: flex; flex-direction: column; gap: 6px; }
.v2-guide-link {
  display: block;
  font-size: 13px;
  color: var(--v2-text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(52,211,201,0.08);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.v2-guide-link:hover {
  border-color: rgba(52,211,201,0.4);
  background: rgba(52,211,201,0.14);
}

#v2-results-list { display: flex; flex-direction: column; gap: 10px; }

.v2-load-more {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--v2-border);
  background: transparent;
  color: var(--v2-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.v2-load-more:hover { background: rgba(52,211,201,0.1); border-color: rgba(52,211,201,0.4); }
.v2-load-more:disabled { opacity: 0.6; cursor: default; }

.v2-result-card {
  background: #0d1626;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 12px 14px;
}
.v2-result-card.with-image { display: flex; gap: 10px; }
.v2-result-image {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #16233d;
}
.v2-result-body { min-width: 0; flex: 1; }
.v2-result-card .v2-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.v2-result-card .v2-title a { color: var(--v2-accent); text-decoration: none; }
.v2-result-card .v2-title a:hover { text-decoration: underline; }
.v2-result-card .v2-address { font-size: 12px; color: var(--v2-text-dim); margin-bottom: 6px; }
.v2-result-card .v2-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52,211,201,0.12);
  color: var(--v2-accent);
}

/* Leaflet's own marker wrapper gets a zero-size box (see v2-map.js) so a
   variable-width pill is never clipped or forced into a fixed circle. */
.leaflet-marker-icon.v2-bubble-wrap {
  background: none;
  border: none;
}

.v2-bubble {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.v2-bubble:hover {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 10;
}

/* Large: the handful of biggest markets. Solid fill so they command
   attention first - the one place on the map that's meant to pop. */
.v2-bubble--large {
  padding: 7px 14px 7px 10px;
  background: var(--v2-accent);
  box-shadow: 0 2px 8px rgba(3,10,20,0.4);
}
.v2-bubble--large .v2-bubble-icon {
  width: 15px;
  height: 15px;
  color: #08201c;
}
.v2-bubble--large .v2-bubble-count {
  color: #08201c;
  font-weight: 700;
  font-size: 14px;
}

/* Medium: reuses the exact same translucent chip already used for the
   phone/rating tags in the results panel, so the map and the panel read
   as one consistent design instead of two different visual languages. */
.v2-bubble--medium {
  padding: 5px 11px;
  background: rgba(11,18,32,0.9);
  border: 1px solid rgba(52,211,201,0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.v2-bubble--medium .v2-bubble-count {
  color: var(--v2-accent);
  font-weight: 700;
  font-size: 12.5px;
}

/* Small: present but quiet - deliberately recedes so it doesn't compete
   with the countries that actually matter. */
.v2-bubble--small {
  padding: 3px 9px;
  background: rgba(11,18,32,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.v2-bubble--small .v2-bubble-count {
  color: #d3dfec;
  font-weight: 600;
  font-size: 11.5px;
}

.v2-bubble-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.v2-bubble-icon svg {
  width: 100%;
  height: 100%;
}
.v2-bubble-count {
  letter-spacing: -0.01em;
}

/* An individual, non-clustered listing marker - the visible dot stays
   small and quiet on purpose (the cluster bubbles carry the visual
   weight, not these), but it sits inside a much larger invisible tap
   target: Leaflet binds clicks to the whole icon element, so without
   this the real clickable area was exactly the tiny dot itself. */
.v2-pin-hitarea {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.v2-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8aa3c7;
  border: 2px solid #0a1120;
  box-shadow: 0 0 0 4px rgba(138,163,199,0.3), 0 2px 6px rgba(0,0,0,0.65);
  transition: transform 0.15s ease;
}
.v2-pin-hitarea:hover .v2-pin { transform: scale(1.35); }

.leaflet-popup-content-wrapper {
  background: var(--v2-panel-bg);
  color: var(--v2-text);
  border-radius: 8px;
}
.leaflet-popup-tip { background: var(--v2-panel-bg); }
.leaflet-popup-close-button { color: var(--v2-text-dim) !important; }
.v2-pin-popup a {
  color: var(--v2-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.v2-pin-popup a:hover { text-decoration: underline; }
.v2-pin-popup.with-image img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.leaflet-popup.v2-pin-popup-wrap .leaflet-popup-content { margin: 10px 12px; }

@media (max-width: 720px) {
  #v2-search-panel { width: calc(100% - 32px); }
  #v2-results-panel { width: 100%; }
}

/* ---- Footer ---- */
#v2-footer {
  background: var(--v2-panel-bg);
  border-top: 1px solid var(--v2-border);
  padding: 40px 24px 20px;
}
.v2-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
.v2-footer-col p { color: var(--v2-text-dim); font-size: 13.5px; line-height: 1.6; margin: 10px 0 0; }
.v2-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--v2-text-dim); margin: 0 0 12px; }
.v2-footer-col a { display: block; color: var(--v2-text); text-decoration: none; font-size: 13.5px; margin-bottom: 9px; }
.v2-footer-col a:hover { color: var(--v2-accent); }
.v2-footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--v2-border);
  color: var(--v2-text-dim);
  font-size: 12.5px;
}
@media (max-width: 700px) {
  .v2-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Featured placement: one labelled card above the organic list, plus a soft
   ring on featured map pins. Same card, same size - only the hairline and the
   label differ, so the panel does not change shape. */
.v2-featured-label { margin: 0 0 6px; }
.v2-featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--v2-accent);
  color: var(--v2-accent);
}
.v2-result-card--featured { border-color: var(--v2-accent); }
.v2-list-divider {
  margin: 14px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--v2-border);
  font-size: 11px;
  color: var(--v2-text-dim);
}
/* Featured marker: a gold scales-of-justice badge (same glyph as the large
   cluster bubbles). Larger than a plain dot because the icon has to be readable,
   but only a handful of firms qualify, so it never crowds the map. */
.v2-pin.v2-pin--featured {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  border: 2px solid #e2b04a;
  color: #e2b04a;
  box-shadow: 0 0 0 3px rgba(226,176,74,0.22), 0 2px 6px rgba(0,0,0,0.55);
}
.v2-pin--featured svg { width: 100%; height: 100%; display: block; }

/* Featured strip: docked along the bottom of the map on the home view. It
   sits above the tiles but below the search/results chrome, hides itself
   while the results panel is open (the panel pins its own featured card),
   and never changes the map's size. */
#v2-featured-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 26px;
  z-index: 900;
  background: var(--v2-panel-bg);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  padding: 8px 10px 10px;
}
#v2-featured-strip.v2-fs-off { display: none; }
.v2-fs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.v2-fs-title { color: var(--v2-text); }
.v2-fs-spacer { flex: 1; }
.v2-fs-btn {
  height: 26px;
  min-width: 26px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg);
  color: var(--v2-text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.v2-fs-btn:hover { border-color: var(--v2-accent); }
.v2-fs-btn[aria-pressed="true"] { border-color: var(--v2-accent); color: var(--v2-accent); }
.v2-fs-wide { font-size: 12px; }
#v2-fs-viewport { overflow: hidden; }
#v2-featured-strip.v2-fs-collapsed #v2-fs-viewport { display: none; }
#v2-featured-strip.v2-fs-collapsed .v2-fs-head { margin-bottom: 0; }
#v2-fs-track { display: flex; gap: 8px; }
.v2-fs-card {
  flex: 0 0 236px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #0d1626;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.v2-fs-card:hover { border-color: var(--v2-accent); }
.v2-fs-av {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #1b2a44;
  color: var(--v2-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.v2-fs-body { min-width: 0; }
.v2-fs-name { font-size: 13px; font-weight: 600; color: var(--v2-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-fs-sig { font-size: 11.5px; color: var(--v2-accent); }
.v2-fs-addr { font-size: 11.5px; color: var(--v2-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  #v2-featured-strip { left: 8px; right: 8px; bottom: 22px; }
  .v2-fs-card { flex-basis: 210px; }
}

/* ---- Find your firm (firm-finder.js): hidden unless the feature is switched on ---- */
.v2-ff-off { display: none !important; }
.v2-nav-claim {
  flex-shrink: 0;
  margin-right: 10px;
  color: var(--v2-accent);
  border: 1px solid var(--v2-accent);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.v2-nav-claim:hover { background: rgba(52, 211, 201, 0.12); }
@media (max-width: 520px) { .v2-nav-claim { display: none; } }
.v2-panel-tabs { display: flex; gap: 2px; margin: 10px 0 12px; padding: 2px; background: #0d1626; border: 1px solid var(--v2-border); border-radius: 8px; }
.v2-panel-tabs button { flex: 1; padding: 6px 0; border: 0; border-radius: 6px; background: transparent; color: var(--v2-text-dim); font: inherit; font-size: 12.5px; cursor: pointer; }
.v2-panel-tabs button[aria-selected="true"] { background: var(--v2-accent); color: #06231f; font-weight: 600; }
.v2-panel-tabs button:focus-visible, #v2-pane-firm input:focus-visible, #v2-pane-firm select:focus-visible,
.v2-claim-card button:focus-visible, .v2-ff-open:focus-visible, .v2-ff-more:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
.v2-claim-card { margin-top: 12px; padding: 11px 12px; border: 1px solid var(--v2-accent-dim); border-radius: 9px; background: #0d1d26; }
.v2-claim-card-head { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.v2-claim-card p { margin: 0 0 9px; font-size: 12px; line-height: 1.45; color: var(--v2-text-dim); }
.v2-claim-card p b { color: var(--v2-text); font-weight: 600; }
.v2-claim-card button { padding: 5px 11px; border: 0; border-radius: 6px; background: var(--v2-accent); color: #06231f; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.v2-ff-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.v2-ff-title b { color: var(--v2-accent); font-weight: 700; }
#v2-pane-firm input[type="text"], #v2-pane-firm select {
  width: 100%; box-sizing: border-box; margin-bottom: 7px; padding: 8px 10px; background: #0d1626;
  border: 1px solid var(--v2-border); border-radius: 7px; color: var(--v2-text); font: inherit; font-size: 13px;
}
.v2-ff-status { margin: 4px 0 2px; font-size: 11.5px; color: var(--v2-text-dim); }
.v2-ff-list { list-style: none; margin: 0; padding: 0; max-height: 42vh; overflow-y: auto; }
.v2-ff-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; padding: 9px 0; border-top: 1px solid var(--v2-border); }
.v2-ff-who { display: contents; }
.v2-ff-who b { flex: 1 1 100%; font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.v2-ff-who span { flex: 1 1 0; min-width: 0; font-size: 11.5px; color: var(--v2-text-dim); }
.v2-ff-chip { flex: none; font-size: 10.5px; color: var(--v2-accent); border: 1px solid var(--v2-accent-dim); border-radius: 99px; padding: 0 6px; }
.v2-ff-open { flex: none; padding: 4px 9px; border-radius: 6px; background: var(--v2-accent); color: #06231f; font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.v2-ff-open:hover { background: #4fe3d9; }
.v2-ff-more { width: 100%; margin-top: 8px; padding: 7px 0; border: 1px solid var(--v2-border); border-radius: 7px; background: transparent; color: var(--v2-accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.v2-ff-note { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--v2-text-dim); }
@media (max-width: 520px) { .v2-ff-chip { display: none; } }

/* ---- Map search: results layer, linked cards and pins, "Search this area" ---- */
/* Verified firms: the same dot with a teal halo, so they read as a tier without needing a legend click. */
.v2-pin.v2-pin--verified {
  width: 20px;
  height: 20px;
  background: var(--v2-accent);
  box-shadow: 0 0 0 5px rgba(52,211,201,0.32), 0 2px 6px rgba(0,0,0,0.65);
}
/* The pin that matches the card the visitor is hovering. */
.v2-pin.v2-pin--hot { transform: scale(1.4); box-shadow: 0 0 0 3px #0a1120, 0 0 0 5.5px var(--v2-accent); }
.v2-pin.v2-pin--featured.v2-pin--hot { transform: scale(1.25); }

.v2-result-card { cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.v2-result-card:hover { border-color: rgba(52,211,201,0.45); }
.v2-result-card.is-active { border-color: var(--v2-accent); background: #112038; }
.v2-tag--verified { background: rgba(52,211,201,0.2); font-weight: 600; }

.v2-area {
  position: absolute;
  z-index: 1001;
  left: calc(50% - 180px);
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.v2-area.v2-hidden { display: none; }
.v2-area-btn {
  background: var(--v2-accent);
  color: #06231f;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.v2-area-btn:hover { background: #4fe3d9; }
.v2-area-live {
  font-size: 11.5px;
  color: var(--v2-text);
  background: rgba(16,26,46,0.92);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}
.v2-area-live input { margin-right: 4px; vertical-align: -1px; }
@media (max-width: 720px) { .v2-area { left: 50%; bottom: 20px; } }

/* Placeholder cards while a search is loading. */
.v2-skel {
  display: grid;
  gap: 8px;
  background: #0d1626;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.v2-skel span {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #16233d 25%, #1d2e4d 50%, #16233d 75%);
  background-size: 200% 100%;
  animation: v2-skel 1.2s linear infinite;
}
.v2-skel span:first-child { width: 70%; height: 13px; }
.v2-skel span:last-child { width: 40%; }
@keyframes v2-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .v2-skel span { animation: none; } }

/* ---- Filter chips ---- */
.v2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.v2-chips.v2-hidden { display: none; }
.v2-chip {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: #0d1626;
  color: var(--v2-text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.v2-chip:hover { border-color: rgba(52,211,201,0.5); }
.v2-chip[aria-pressed="true"] { background: var(--v2-accent); border-color: var(--v2-accent); color: #06231f; }
.v2-chip:focus-visible, #v2-sheet-handle:focus-visible, .v2-ms-toggle:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }

/* The sheet handle and the compact search button only exist on a phone. */
#v2-sheet-handle { display: none; }
.v2-ms-toggle { display: none; }

/* ---- Phone layout (up to 720px) ----
   The results list becomes a bottom sheet over the map with three heights: peek (handle, title, count), half, full. The three
   search fields collapse behind one button that names the current search. */
@media (max-width: 720px) {
  #v2-multi-search { flex-direction: column; align-items: stretch; padding: 8px 12px; gap: 8px; }
  .v2-ms-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--v2-border);
    background: #0d1626;
    color: var(--v2-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .v2-ms-toggle #v2-ms-toggle-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v2-ms-toggle svg { flex-shrink: 0; color: var(--v2-accent); }
  .v2-ms-caret { transition: transform 0.15s ease; }
  #v2-multi-search.v2-ms-open .v2-ms-caret { transform: rotate(180deg); }
  #v2-multi-search > .v2-multi-search-field, #v2-ms-nearme, #v2-ms-submit { display: none; }
  #v2-multi-search.v2-ms-open > .v2-multi-search-field { display: flex; }
  #v2-multi-search.v2-ms-open > #v2-ms-nearme { display: inline-flex; }
  #v2-multi-search.v2-ms-open > #v2-ms-submit { display: block; }
  .v2-multi-search-field input, .v2-multi-search-field select { font-size: 16px; } /* 16px stops iOS zooming into the field */

  #v2-results-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 88%;
    padding: 0 16px 24px;
    border-left: 0;
    border-top: 1px solid var(--v2-border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.45);
    overscroll-behavior: contain;
  }
  #v2-results-panel[data-sheet="full"] { transform: translateY(0); }
  #v2-results-panel[data-sheet="half"] { transform: translateY(calc(100% - 0.46 * (100vh - 60px))); }
  #v2-results-panel[data-sheet="peek"] { transform: translateY(calc(100% - 112px)); overflow-y: hidden; }
  #v2-results-panel.v2-hidden { transform: translateY(100%); }
  #v2-sheet-handle {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -16px;
    padding: 10px 0 8px;
    background: var(--v2-panel-bg);
    cursor: grab;
    touch-action: none;
  }
  #v2-sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: #2f4166; }
  #v2-results-close { top: 6px; right: 10px; z-index: 3; width: 36px; height: 36px; }
  #v2-results-title { font-size: 20px; padding-right: 28px; }
  .v2-results-count { margin-bottom: 12px; }
  .v2-chip { min-height: 38px; }
  #v2-app.v2-searching #v2-search-panel { display: none; }
  .leaflet-control-zoom { display: none; } /* pinch to zoom; the buttons would poke out under the search bar */
  /* the "Search this area" button rides above the sheet */
  .v2-area { left: 50%; bottom: calc(var(--v2-sheet-visible, 0px) + 14px); }
}
@media (prefers-reduced-motion: reduce) { #v2-results-panel { transition: none; } }

/* A section marked v2-hidden is really hidden (the "Read first" heading used to show with nothing under it). */
#v2-guides-section.v2-hidden { display: none; }

/* The pin whose card or popup the visitor is looking at: a white ring. */
.v2-pin.v2-pin--selected { transform: scale(1.4); box-shadow: 0 0 0 3px #0a1120, 0 0 0 6px #fff; }
.v2-pin.v2-pin--featured.v2-pin--selected { transform: scale(1.2); }

/* ---- Search results: circles, numbers and the outline of the search ----
   Cluster circles (three sizes by count) with a dark outline and a soft halo; brass when a featured firm is inside. */
.v2-cl {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--v2-accent);
  border: 2px solid #0a1120;
  color: #04201e;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(52,211,201,0.25), 0 3px 9px rgba(0,0,0,0.6);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}
.v2-cl:hover { transform: translate(-50%, -50%) scale(1.1); }
.v2-cl--sm { width: 32px; height: 32px; font-size: 13px; }
.v2-cl--md { width: 40px; height: 40px; font-size: 14px; }
.v2-cl--lg { width: 50px; height: 50px; font-size: 15.5px; }
.v2-cl--feat { background: #d8a23d; box-shadow: 0 0 0 5px rgba(216,162,61,0.3), 0 3px 9px rgba(0,0,0,0.6); }

/* A firm that is in the list gets the number its card shows, so the card and the pin are the same thing. */
.v2-pin.v2-pin--num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 12px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #04201e;
  background: #9db4d6;
}
.v2-pin.v2-pin--num.v2-pin--verified { background: var(--v2-accent); }
.v2-num {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9db4d6;
  color: #04201e;
  font-size: 11.5px;
  font-weight: 800;
}
.v2-num--verified { background: var(--v2-accent); }
.v2-result-card { position: relative; }
.v2-result-card.has-num .v2-title { padding-right: 30px; }

/* Where the search is: the outline around the firms it found (see v2-map.js). */
.v2-outline { pointer-events: none; }

/* ---- Distance ---- */
.v2-distance { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 12px; color: var(--v2-text-dim); }
.v2-distance span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; flex-shrink: 0; }
.v2-distance select {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: #0d1626;
  color: var(--v2-text);
  font: inherit;
  font-size: 13px;
}
.v2-distance select:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
@media (max-width: 720px) { .v2-distance select { font-size: 16px; } }
/* The point distances are measured from: a ring in the middle of the dashed circle. */
.v2-center {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: rgba(10,17,32,0.85);
  box-shadow: 0 0 0 3px rgba(52,211,201,0.45), 0 2px 6px rgba(0,0,0,0.6);
}

.v2-tag--premium { background: #fbf1dc; color: #8a5a00; border-color: #ecd49b; }
