.map-page * {
  box-sizing: border-box;
}

.map-control-panel textarea {
  resize: vertical;
}

.map-control-panel textarea,
.map-control-panel input,
.map-control-panel select,
.map-control-panel .form-control {
  font-size: 16px;
}

.map-input-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.map-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 12px;
}

.map-checkbox-label,
.map-label-mode-label {
  margin-bottom: 0;
  font-weight: 400;
}

.map-label-mode-label input {
  margin-right: 4px;
}

.map-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
}

.map-zoom-label {
  margin-bottom: 0;
  font-weight: 700;
  white-space: nowrap;
}

.map-zoom-range {
  flex: 1 1 160px;
}

.map-status {
  margin: 12px;
  color: #56606b;
  line-height: 1.7;
}

.map-svg-panel > .panel-body {
  padding: 0;
  overflow: hidden;
}

#map {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  min-height: 420px;
  background: #eaf3fb;
}

.map-region {
  fill: #f7f7f2;
  stroke: #7a8490;
  stroke-width: .55;
  vector-effect: non-scaling-stroke;
  transition: fill .18s ease;
}

.map-region.selected {
  stroke: #222;
  stroke-width: 1.2;
}

.map-region:hover {
  filter: brightness(.96);
}

.map-region-label {
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  fill: #111;
}

.map-region-label.selected-label {
  font-size: 13px;
}

.map-help-panel p {
  line-height: 1.7;
}

.map-help-panel p:last-child {
  margin-bottom: 0;
}

.map-page code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f0f2f4;
}

.map-credit {
  color: #66717d;
  font-size: 13px;
}

.status-country {
  display: inline-block;
  padding: 2px 7px;
  margin: 1px 3px;
  border-radius: 999px;
  color: #111;
  border: 1px solid rgba(0, 0, 0, .2);
}

.status-not-found {
  display: inline-block;
  padding: 2px 7px;
  margin: 1px 3px;
  border-radius: 999px;
  background: #eee;
  color: #000;
  border: 1px solid #ccc;
}

@media (max-width: 767px) {
  #map {
    height: 62vh;
    min-height: 340px;
  }
}
