.radio-listener-map { scroll-margin-top: 96px; padding-block: 72px; border-top: 1px solid #382726; }

.listener-map__summary {
  margin: 34px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.listener-map__summary article {
  min-height: 120px;
  padding: 22px;
  display: grid;
  align-content: center;
  border: 1px solid #432b2d;
  border-radius: 12px;
  background: linear-gradient(145deg, #171014, #0b0c0f);
}

.listener-map__summary span,
.listener-map__summary small { color: #9b8d8c; font-size: .7rem; }
.listener-map__summary span { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.listener-map__summary strong { margin: 7px 0 3px; color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .9; }

.listener-map {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at center, #3a191d, #100d11 72%);
  border: 1px solid #713a32;
  border-radius: 18px;
  box-shadow: inset 0 0 80px #0008, 0 28px 80px #0008;
}

.listener-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 49.8%, #ff6a4420 50%, transparent 50.2%);
  pointer-events: none;
}

.listener-map__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image: linear-gradient(#ff856b14 1px, transparent 1px), linear-gradient(90deg, #ff856b14 1px, transparent 1px);
  background-size: 44px 44px;
}

.listener-map svg {
  display: block;
  width: 100%;
  height: auto;
  fill: #67332f;
  stroke: #d57b63;
  stroke-width: 1.35;
  filter: drop-shadow(0 0 12px #ff4b2935);
}

.listener-map__empty {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(90%, 560px);
  padding: 14px 18px;
  transform: translateX(-50%);
  border: 1px solid #6a3b36;
  border-radius: 10px;
  background: #0c0c0ee8;
  color: #d8c5c1;
  text-align: center;
  backdrop-filter: blur(8px);
}

.listener-map__empty[hidden] { display: none; }
.listener-map__empty b,
.listener-map__empty span { display: block; }
.listener-map__empty b { color: #fff; }
.listener-map__empty span { margin-top: 4px; font-size: .75rem; }

.listener-map__meta {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#map-details { margin: 0; color: #dcc9c5; line-height: 1.6; }

.listener-map__legend {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  list-style: none;
  color: #b9aaa7;
  font-size: .72rem;
  white-space: nowrap;
}

.listener-map__legend li { display: flex; align-items: center; gap: 6px; }
.listener-map__legend i { width: 10px; height: 10px; display: block; border-radius: 50%; background: #ff825e; }
.listener-map__legend i[data-band="medium"] { width: 14px; height: 14px; background: #ff532f; }
.listener-map__legend i[data-band="high"] { width: 18px; height: 18px; background: #ff301f; box-shadow: 0 0 12px #ff301f; }

#region-list {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

#region-list button,
.map-pin {
  min-height: 44px;
  border: 1px solid #ff9a7c;
  background: #2d1718;
  color: #ffddce;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#region-list button { padding: 7px 13px; border-radius: 999px; font-size: .78rem; }
#region-list button:hover { transform: translateY(-2px); border-color: #fff0e7; }

.map-pin {
  position: absolute;
  width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ff825e;
  color: #300b02;
  box-shadow: 0 0 0 7px #ff6b4630, 0 0 20px #ff3b27;
}

.map-pin[data-band="medium"] { width: 32px; min-height: 32px; background: #ff532f; }
.map-pin[data-band="high"] { width: 40px; min-height: 40px; background: #ff301f; box-shadow: 0 0 0 9px #ff3b2635, 0 0 30px #ff271d; }
.map-pin:hover { transform: translate(-50%, calc(-50% - 2px)); border-color: #fff0e7; }
.map-pin[aria-pressed="true"],
#region-list button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px #fff0df, 0 0 28px #ff3b27; }
.map-pin:focus-visible,
#region-list button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.listener-map__privacy {
  margin: 18px 0 0;
  color: #807474;
  font-size: .7rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .radio-listener-map { padding-block: 56px; }
  .listener-map__summary { grid-template-columns: 1fr; }
  .listener-map__summary article { min-height: 92px; }
  .listener-map { border-radius: 12px; }
  .listener-map__empty { bottom: 10px; padding: 10px 12px; }
  .listener-map__meta { align-items: flex-start; flex-direction: column; }
  .listener-map__legend { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #region-list button,
  .map-pin { transition: none; }
}
