


.map-panel {
  margin: 0;
  padding: clamp(28px, 3.4vw, 44px) 24px;
  border-top: 1px solid var(--rule, #e2e6e2);
}
.map-panel .inner {
  max-width: 860px;
  margin: 0 auto;
}
.map-panel h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 4px;
}

.compare-body .map-panel {
  padding: clamp(24px, 3vw, 36px) 0 0;
  margin-top: clamp(24px, 3vw, 36px);
}

.map-panel .map-addr {
  margin: 0.25rem 0 0.75rem;
  color: var(--ink-2, #555);
}

.map-panel [data-map-canvas] {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2, #eef1ee);
  border: 1px solid var(--line, #d8ded8);
}
.map-panel [data-map-canvas][hidden] { display: none; }

@media (max-width: 600px) {
  .map-panel [data-map-canvas] { height: 300px; }
}

.map-status {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-2, #555);
}
.map-status[hidden] { display: none; }
.map-status-off {
  padding: 0.6rem 0.75rem;
  background: var(--surface-2, #f3f5f3);
  border-left: 3px solid var(--line, #c9d2c9);
  border-radius: 0 4px 4px 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-2, #555);
}
.map-legend[hidden] { display: none; }
.map-legend li { display: flex; align-items: center; gap: 0.4rem; }
.map-legend .swatch { flex: none; width: 14px; height: 18px; }


.pb-pin {
  width: 18px;
  height: 24px;
  cursor: pointer;
  background: transparent;
}

.pb-pin-exact,
.map-legend .swatch-exact {
  background: var(--brand, #2e7d4f);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pb-pin-approx,
.map-legend .swatch-approx {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px dashed var(--brand, #2e7d4f);
  background: rgba(46, 125, 79, 0.14);
  box-shadow: none;
}

.map-legend .swatch-cluster {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--brand, #2e7d4f);
  background: rgba(46, 125, 79, 0.28);
  box-shadow: none;
}

.pb-pin-on {
  outline: 3px solid var(--accent, #c8781e);
  outline-offset: 2px;
  z-index: 2;
}

.pb-here {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink, #23301f);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(35, 48, 31, 0.15);
  cursor: pointer;
}


.pb-pop {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 15rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pb-pop-addr { color: var(--ink-2, #555); }
.pb-pop-miles { font-variant-numeric: tabular-nums; }
.pb-pop-prec {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-2, #555);
  border-top: 1px solid var(--line, #e2e6e2);
  padding-top: 0.3rem;
}
.pb-pop-prec-approx { color: var(--ink, #23301f); }
.pb-pop-link {
  font-weight: 600;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .map-panel *,
  .maplibregl-map * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
