.section-shell#service-footprint {
  background:
    radial-gradient(circle at top right, rgba(45, 113, 245, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-shell#service-footprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 0, rgba(15, 118, 110, 0.045) 1px, transparent 1px, transparent 100%),
    linear-gradient(rgba(15, 118, 110, 0.045) 0, rgba(15, 118, 110, 0.045) 1px, transparent 1px, transparent 100%);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}

.section-shell#service-footprint > .shell {
  position: relative;
  z-index: 1;
}

.services-map {
  display: grid;
  gap: 1rem;
}

.services-map__toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.services-map__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.services-map__stat {
  display: grid;
  align-content: space-between;
  min-height: 12.5rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.94), rgba(244, 246, 248, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.services-map__stat--coverage {
  background:
    radial-gradient(circle at top left, rgba(45, 113, 245, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(250, 250, 250, 0.96), rgba(244, 246, 248, 0.98));
}

.services-map__stat--groups {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(249, 250, 251, 0.96), rgba(243, 245, 247, 0.98));
}

.services-map__stat--visible {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #2568b7 0%, #4b8ff2 100%);
  border-color: rgba(37, 104, 183, 0.24);
  box-shadow: 0 16px 34px rgba(45, 113, 245, 0.16);
}

.services-map__stat--states {
  background:
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.96), rgba(242, 244, 246, 0.98));
}

.services-map__stat-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--color-ink-800);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.services-map__stat--visible .services-map__stat-kicker {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.services-map__stat strong {
  display: block;
  margin-top: 2.25rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 2.05rem + 1.15vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--color-ink-950);
}

.services-map__stat--visible strong {
  color: var(--color-white);
}

.services-map__stat > span:last-child {
  color: var(--color-ink-700);
  font-size: 1.02rem;
  line-height: 1.25;
  max-width: 14ch;
}

.services-map__stat--visible > span:last-child {
  color: rgba(255, 255, 255, 0.9);
}

.services-map__controls {
  display: grid;
  gap: 0.8rem;
}

.services-map__controls-label {
  margin: 0;
  color: var(--color-ink-700);
  font-size: var(--step--1);
  font-weight: 600;
}

.services-map__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
  max-width: 100%;
  align-items: center;
}

.services-map__filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.52rem 0.82rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  color: var(--color-ink-950);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.services-map__filter-chip:hover,
.services-map__filter-chip:focus-visible {
  border-color: rgba(45, 113, 245, 0.24);
  box-shadow: 0 14px 28px rgba(45, 113, 245, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.services-map__filter-chip.is-active {
  border-color: rgba(15, 76, 129, 0.18);
  background: linear-gradient(180deg, #0f4c81, #2d71f5);
  color: var(--color-white);
  box-shadow: 0 14px 32px rgba(45, 113, 245, 0.24);
}

.services-map__filter-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.52rem 0.9rem;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-ink-800);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.services-map__filter-more:hover,
.services-map__filter-more:focus-visible {
  border-color: rgba(45, 113, 245, 0.24);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
  outline: none;
}

.services-map__layout {
  display: block;
}

.services-map__canvas-wrap,
.services-map__panel {
  height: clamp(33rem, 70vh, 45rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.services-map__canvas {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(45, 113, 245, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff, #eef4fb);
}

.services-map__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.services-map__panel-heading {
  padding: 1.2rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.services-map__panel-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--color-signal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-map__panel-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-ink-950);
}

.services-map__list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.services-map__list-item {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.services-map__list-item:hover,
.services-map__list-item:focus-visible,
.services-map__list-item.is-active {
  border-color: rgba(45, 113, 245, 0.35);
  box-shadow: 0 14px 28px rgba(45, 113, 245, 0.12);
  transform: translateY(-1px);
}

.services-map__list-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--color-ink-950);
}

.services-map__list-item span {
  display: block;
  color: var(--color-ink-700);
  font-size: var(--step--1);
  line-height: 1.5;
}

.services-map__group {
  margin-top: 0.55rem;
  color: var(--color-accent);
  font-weight: 600;
}

.services-map__empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink-700);
  background: var(--color-paper-soft);
}

.services-map__marker {
  position: relative;
  display: block;
  width: 38px;
  height: 48px;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.34));
  transform-origin: 50% 100%;
  transition: transform 180ms ease, filter 180ms ease;
}

.services-map__marker-pin {
  position: absolute;
  top: 1px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--gradient-brand);
  border: 3px solid rgba(255, 255, 255, 0.98);
  z-index: 1;
  overflow: hidden;
  transform: rotate(-45deg);
}

.services-map__marker-core {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  transform: rotate(45deg);
}

.services-map__marker.is-active {
  transform: scale(1.1);
  filter: drop-shadow(0 10px 18px rgba(45, 113, 245, 0.42));
}

.services-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-slate-500);
}

.services-map .leaflet-marker-icon {
  background: transparent;
  border: 0;
}

@media (max-width: 980px) {
  .services-map__layout {
    display: block;
  }

  .services-map__controls {
    gap: 0.6rem;
  }

  .services-map__filter {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .services-map__canvas-wrap,
  .services-map__canvas {
    height: 26rem;
  }
}
