.hg-cellmap {
  margin: 22px 0 30px;
  border: 1px solid #d9e2e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 35, 45, 0.08);
}

.hg-cellmap-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px 16px;
  background: #f7faf9;
  border-bottom: 1px solid #d9e2e5;
}

.hg-cellmap-kicker {
  margin: 0 0 5px;
  color: #60727c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hg-cellmap h3 {
  margin: 0;
  color: #1e2f35;
  font-size: 24px;
  line-height: 1.25;
}

.hg-cellmap-copy {
  margin: 8px 0 0;
  color: #3e5159;
  font-size: 16px;
  line-height: 1.55;
}

.hg-cellmap-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 210px;
}

.hg-cellmap-source-links a,
.hg-cellmap-source-link-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c9d6dc;
  border-radius: 999px;
  color: #25424c;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.hg-cellmap-source-links a:hover,
.hg-cellmap-source-links a:focus {
  border-color: #1866b4;
  color: #1866b4;
}

.hg-cellmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #d9e2e5;
  background: #fff;
}

.hg-cellmap-filter,
.hg-cellmap-layer-toggle {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #cbd7dc;
  border-radius: 999px;
  color: #263c44;
  background: #f8fbfc;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.hg-cellmap-filter:hover,
.hg-cellmap-filter:focus,
.hg-cellmap-layer-toggle:hover,
.hg-cellmap-layer-toggle:focus {
  border-color: #1866b4;
  color: #1866b4;
}

.hg-cellmap-filter.is-active,
.hg-cellmap-layer-toggle.is-active {
  border-color: #1866b4;
  color: #fff;
  background: #1866b4;
}

.hg-cellmap-layer-toggle {
  margin-left: auto;
  border-color: #3f6756;
  color: #254d3c;
  background: #f2f8f5;
}

.hg-cellmap-layer-toggle.is-active {
  border-color: #3f6756;
  background: #3f6756;
}

.hg-cellmap-canvas {
  width: 100%;
  height: 520px;
  background: #e8eee8;
}

.hg-cellmap-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: #60727c;
  font-size: 15px;
  font-weight: 700;
}

.hg-cellmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #d9e2e5;
  background: #fbfcfc;
}

.hg-cellmap-legend-item {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #42565e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.hg-cellmap-swatch {
  display: inline-block;
  width: 24px;
  height: 5px;
  border-radius: 999px;
}

.hg-cellmap-swatch--red {
  background: #c3232f;
}

.hg-cellmap-swatch--orange {
  background: #f27a24;
}

.hg-cellmap-swatch--blue {
  background: #1866b4;
}

.hg-cellmap-place-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px;
  background: #3f6756;
  box-shadow: 0 0 0 1px rgba(63, 103, 86, 0.45);
  transform: rotate(-45deg);
}

.hg-cellmap-place-key::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.hg-cellmap-note {
  padding: 13px 20px 16px;
  border-top: 1px solid #d9e2e5;
  color: #5b6e76;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.hg-cellmap-note p {
  margin: 0;
}

.hg-cellmap .leaflet-container {
  font-family: inherit;
  font-size: 13px;
}

.hg-cellmap .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.hg-cellmap .leaflet-popup-content {
  margin: 12px 14px;
  min-width: 220px;
  color: #30434b;
  font-size: 14px;
  line-height: 1.45;
}

.hg-cellmap-popup-title {
  margin: 0 0 5px;
  color: #1e2f35;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.hg-cellmap-popup-meta {
  margin: 0 0 8px;
  color: #5f737b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.hg-cellmap-popup-copy {
  margin: 0;
  color: #30434b;
  font-size: 14px;
  line-height: 1.45;
}

.hg-cellmap-marker {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hg-cellmap-marker--red {
  background: #c3232f;
}

.hg-cellmap-marker--orange {
  background: #f27a24;
}

.hg-cellmap-marker--blue {
  background: #1866b4;
}

.hg-cellmap-place-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 5px;
  background: #3f6756;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
}

.hg-cellmap-place-marker::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

@media (max-width: 740px) {
  .hg-cellmap-head {
    grid-template-columns: 1fr;
  }

  .hg-cellmap-source-links {
    justify-content: flex-start;
    min-width: 0;
  }

  .hg-cellmap-layer-toggle {
    margin-left: 0;
  }

  .hg-cellmap h3 {
    font-size: 21px;
  }

  .hg-cellmap-copy {
    font-size: 15px;
  }

  .hg-cellmap-canvas {
    height: 410px;
  }
}

@media (max-width: 460px) {
  .hg-cellmap-head,
  .hg-cellmap-toolbar,
  .hg-cellmap-legend,
  .hg-cellmap-note {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hg-cellmap-filter,
  .hg-cellmap-layer-toggle,
  .hg-cellmap-source-links a,
  .hg-cellmap-source-link-text {
    font-size: 13px;
  }
}
