.kmc-branches-map {
  position: relative;
  width: 100%;
  background: #eaf3fb;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.kmc-branches-map svg { width: 100%; height: 100%; display: block; cursor: grab; }
.kmc-branches-map svg:active { cursor: grabbing; }

.kmc-branches-map .state { fill: #f4f1ea; stroke: none; }
.kmc-branches-map .state-border { fill: none; stroke: #b9b2a3; stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.kmc-branches-map .nation-outline { fill: none; stroke: #8a8272; stroke-width: 1px; vector-effect: non-scaling-stroke; }

.kmc-branches-map .country-mexico { fill: #f4f1ea; stroke: #8a8272; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.kmc-branches-map .inset-land { fill: #f4f1ea; stroke: #8a8272; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.kmc-branches-map .inset-panel { fill: #dfe9f2; stroke: #b7c3cf; stroke-width: 1px; stroke-dasharray: 3,2; vector-effect: non-scaling-stroke; }
.kmc-branches-map .inset-label { fill: #667; font-size: 11px; font-weight: 600; }

.kmc-branches-map .marker circle { fill: #d9432e; stroke: #ffffff; stroke-width: 1.5px; cursor: pointer; }
.kmc-branches-map .marker:hover circle { fill: #b7351f; }

.kmc-branches-map .kmc-coords {
  position: absolute; bottom: 10px; left: 10px; z-index: 5;
  background: rgba(255,255,255,0.9); padding: 6px 10px; border-radius: 6px;
  font-size: 12px; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 320px;
}

.kmc-branches-map .kmc-popup {
  /* Absolute (relative to .kmc-branches-map, its positioned ancestor)
     rather than fixed (relative to the browser viewport) — fixed
     positioning is what caused the popup to stay put on screen instead
     of scrolling along with the map when the page itself was scrolled. */
  position: absolute; z-index: 10; display: none;
  background: #fff; border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35); font-size: 13px;
  transform: translate(-50%, -115%);
  pointer-events: none;
}
.kmc-branches-map .kmc-popup-title { font-weight: 600; margin-bottom: 2px; }
.kmc-branches-map .kmc-popup-title a {
  color: inherit; text-decoration: none;
  pointer-events: auto; /* the popup itself ignores clicks; the link shouldn't */
}
.kmc-branches-map .kmc-popup-title a:hover { text-decoration: underline; }
.kmc-branches-map .kmc-popup-body { color: #444; }
