.area-spot-map-card {
  margin: 32px 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 32, 64, 0.08);
}

.area-spot-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 22px;
}

.area-spot-map-heading .eyebrow {
  margin-bottom: 4px;
}

.area-spot-map-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.area-spot-map-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.area-spot-map-count strong {
  margin: 0 4px;
  color: var(--blue);
  font-size: 1.75rem;
}

.area-spot-map {
  min-height: 560px;
  margin: 0 12px 12px;
  border-radius: 4px;
  background: #dff2fb;
}

.area-spot-map-status {
  display: grid;
  min-height: 560px;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.area-spot-marker {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 3px 5px rgba(8, 32, 64, 0.2));
}

.area-spot-marker-pin {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(0, 65, 185, 0.18);
  transform: rotate(-45deg);
}

.area-spot-marker-pin::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.area-spot-marker-label {
  margin-left: -5px;
  padding: 7px 10px 7px 12px;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.area-spot-marker:hover .area-spot-marker-label,
.area-spot-marker:focus-visible .area-spot-marker-label {
  color: var(--blue);
}

.area-spot-marker:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(0, 107, 255, 0.35);
  outline-offset: 3px;
}

.area-spot-map-card .maplibregl-ctrl-attrib {
  max-width: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #4d5f73;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.area-spot-map-card .maplibregl-ctrl-attrib a {
  color: inherit;
}

.area-spot-map-card .maplibregl-ctrl-attrib-button {
  display: none;
}

.area-spot-map-card .maplibregl-ctrl-bottom-right .maplibregl-ctrl {
  margin: 0 8px 6px 0;
}

.area-spot-popup .maplibregl-popup-content {
  min-width: 270px;
  padding: 20px 22px 16px;
  border: 1px solid rgba(12, 55, 115, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(8, 32, 64, 0.2);
  font-family: inherit;
}

.area-spot-popup .maplibregl-popup-close-button {
  top: 7px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 26px;
  line-height: 28px;
}

.area-spot-popup .maplibregl-popup-close-button:hover,
.area-spot-popup .maplibregl-popup-close-button:focus-visible {
  background: #eef5ff;
}

.area-spot-popup-title {
  margin: 0 30px 12px 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.area-spot-popup-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
  font-weight: 700;
}

.area-spot-popup-meta-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
}

.area-spot-popup-meta-row:first-child {
  padding-left: 0;
  padding-right: 11px;
}

.area-spot-popup-meta-row + .area-spot-popup-meta-row {
  padding-right: 0;
  border-left: 1px solid #dce5f1;
}

.area-spot-popup-meta-row dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.area-spot-popup-meta-row dd {
  align-self: center;
  padding: 7px 12px;
  border-radius: 12px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.area-spot-popup-value--green {
  background: #eaf7ef;
  color: #18864b;
}

.area-spot-popup-value--yellow {
  background: #fff6dd;
  color: #a76f00;
}

.area-spot-popup-value--red {
  background: #fff0ef;
  color: #d33b32;
}

.area-spot-popup-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.area-spot-popup-link:hover,
.area-spot-popup-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .area-spot-map-card {
    margin: 24px 0 32px;
  }

  .area-spot-map-heading {
    align-items: start;
    padding: 20px 18px 18px;
  }

  .area-spot-map-count {
    font-size: 0.8rem;
  }

  .area-spot-map-count strong {
    font-size: 1.35rem;
  }

  .area-spot-map,
  .area-spot-map-status {
    min-height: 480px;
  }

  .area-spot-map {
    margin: 0 6px 6px;
  }

  .area-spot-marker-label {
    padding: 6px 8px 6px 10px;
    font-size: 11px;
  }

  .area-spot-marker-pin {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .area-spot-popup .maplibregl-popup-content {
    min-width: 240px;
    padding: 18px 18px 14px;
  }
}
