/* Networks page — Africa map */
.africa_map {
  display: block;
  width: 100%;
}

#africa_map {
  overflow: auto;
  max-height: min(55vh, 420px);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
}

@media (min-width: 768px) {
  #africa_map {
    max-height: min(65vh, 520px);
  }
}

@media (min-width: 1024px) {
  #africa_map {
    max-height: min(70vh, 640px);
  }
}

.africa_map ::-webkit-scrollbar {
  display: none;
}

#map {
  transform: scale(1);
  transform-origin: top left;
  transition: all 0.5s ease !important;
  width: 100%;
  height: auto;
  display: block;
}

/* No data — grey */
#states a path {
  transition: fill 0.5s ease;
  fill: #9ca3af;
}

/* Has data — green */
.active_path {
  transition: fill 0.5s ease;
  fill: #32a547 !important;
  cursor: pointer;
}

@media (hover: hover) {
  #states a:hover path {
    fill: #6b7280;
    cursor: pointer;
  }

  #states a:hover path.active_path {
    fill: #278a3a !important;
  }
}

#states a text {
  font-size: 9px;
  pointer-events: none;
}

#states a line {
  stroke: #555;
  stroke-width: 1px;
  pointer-events: none;
}

.utm-network-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #32a547;
  background: #32a547;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.utm-network-map-btn:hover {
  opacity: 0.9;
}
