/* Scanlons branch map 1.0.0 */
.sbm {
  --sbm-height: 440px;
  --sbm-scanlons: #2dc0d0;
  --sbm-limitless: #6a3fb0;
  --sbm-ink: #1f2a2e;
  --sbm-soft: #5b6b70;
  --sbm-accent: #2dc0d0;
  position: relative;
  width: 100%;
  margin: 0;
  font-family: inherit;
  line-height: 1.4;
}
/* Edge-to-edge inside a content-width column (replaces "fullscreen" maps) */
.sbm--fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.sbm__canvas {
  width: 100%;
  height: var(--sbm-height);
  background: #eef1f0;
  z-index: 0;
}
.sbm .leaflet-container {
  font: inherit;
}
.sbm .leaflet-control-attribution {
  font-size: 10px;
}

/* Region buttons (Limerick / Dublin) */
.sbm__views {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.sbm__views[hidden] {
  display: none;
}
.sbm__view {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--sbm-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sbm__view:hover {
  background: #eef1f0;
}
.sbm__view[aria-pressed='true'] {
  background: var(--sbm-accent);
  color: #fff;
}
.sbm__view:focus-visible {
  outline: 2px solid var(--sbm-ink);
  outline-offset: 2px;
}

/* Pins: a white label with a brand dot, pointing at the branch */
.sbm-pin {
  background: none !important;
  border: 0 !important;
}
.sbm-pin__body {
  position: absolute;
  left: 0;
  bottom: 9px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  background: #fff;
  color: var(--sbm-ink);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.sbm-pin__body::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 3px 0;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.12);
}
.sbm-pin__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: var(--sbm-scanlons);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.sbm-pin__label {
  position: relative;
  z-index: 1;
}
.sbm-pin--limitless .sbm-pin__dot {
  background: var(--sbm-limitless);
}
.leaflet-marker-icon.sbm-pin:hover .sbm-pin__body,
.leaflet-marker-icon.sbm-pin:focus .sbm-pin__body {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
}

/* Popup */
.sbm .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.sbm .leaflet-popup-content {
  margin: 14px 16px;
}
.sbm-popup p {
  margin: 0;
  padding: 0;
}
.sbm-popup__brand {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbm-soft);
}
.sbm-popup__name {
  margin-top: 3px !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--sbm-ink);
}
.sbm-popup__address {
  margin-top: 6px !important;
  font-size: 13px;
  color: var(--sbm-soft);
}
.sbm-popup__phone {
  margin-top: 8px !important;
  font-size: 13px;
  font-weight: 600;
}
.sbm-popup__links {
  margin-top: 8px !important;
  font-size: 13px;
  font-weight: 600;
}
.sbm-popup a {
  color: var(--sbm-accent);
  text-decoration: none;
}
.sbm-popup a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sbm__canvas {
    height: min(var(--sbm-height), 380px);
  }
  .sbm__views {
    top: 10px;
    right: 10px;
  }
  .sbm__view {
    padding: 7px 12px;
  }
  .sbm-pin__body {
    gap: 5px;
    font-size: 11px;
    padding: 4px 8px 4px 5px;
    bottom: 8px;
  }
  .sbm-pin__dot {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }
  .sbm-pin__body::after {
    width: 9px;
    height: 9px;
    bottom: -4px;
  }
}
