* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.svg-map, .map-wrapper {
  position: relative;
}
.svg-map {
  border: 1px solid #ccc;
  overflow: hidden;
}
.map-wrapper {
  transition: transform 0.4s ease;
  padding-bottom: 73.5%;
}
.map-wrapper svg {
  display: block;
  width: 100%;
  height: auto !important;
  position: absolute;
  left: 0;
  top: 0;
}


.map-state {
  stroke-width: 1px;
  transition: all 0.1s ease-out;
}
.map-state--has-hover-content {
  cursor: pointer;
}
.map-state--has-hover-content:hover {
  opacity: 0.8;
}
.map-state.group-hovered:not(.is-focused) {
  fill: #369 !important;
  cursor: pointer;
}
.svg-map.is-zoomed .map-state:not(.is-focused) {
  fill: #eee !important;
  pointer-events: none;
}
/* flash clickable states upon map hover */
@keyframes flash-map-state {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.map-wrapper:hover .map-state--has-hover-content {
  animation: flash-map-state 0.2s ease;
}

.map-point {
  width: 20px;
  height: 30px;
  border: none;
  background: transparent url('../images/pin.svg') no-repeat 50% 50%;
  background-image: url('../images/pin.svg'), url('../images/pin-active.svg');
  background-size: 20px 30px;
  position: absolute;
  margin-left: -10px;
  margin-top: -30px;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
  cursor: pointer;
}
.map-point.is-active {
  background-image: url('../images/pin-active.svg');
}
.map-point::before {
  content: '';
  display: block;
  width: 10px;
  height: 3px;
  position: absolute;
  left: 50%;
  margin-left: -5px;
  top: 100%;
  border-radius: 100%;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  z-index: 2;
}
.map-point.is-shown {
  opacity: 1;
  visibility: visible;
}

.map-back {
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px 20px;
  text-align: left;
  background: rgba(255,255,255,0.7);
  border: none;
  border-bottom: 1px solid #ddd;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
}
.svg-map.is-zoomed .map-back {
  opacity: 1;
  visibility: visible;
}

.map-detail-pane {
  width: 30%;
  position: absolute;
  left: 0;
  top: 43px;
  bottom: 0;
  padding: 20px;
  overflow-y: auto;
  background: #fff;
  background: rgba(255,255,255,0.8);
  border-right: 1px solid #ddd;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
}
.map-detail-pane.is-shown {
  opacity: 1;
  visibility: visible;
}

.map-debug-tooltip {
  position: fixed;
  z-index: 1001;
  background: #333;
  border: 1px solid #555;
  color: #fff;
  padding: 5px;
  pointer-events: none;
  transform: translate(2px, -100%);
}

.map-key {
  margin: 24px 0 48px;
}
.map-key__title {
  font-weight: 700;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.map-key__item + .map-key__item {
  margin-top: 12px;
}
.map-key__swatch,
.map-key__label {
  display: inline-block;
  vertical-align: middle;
}
.map-key__swatch {
  width: 20px;
  height: 20px;
}

.map-popup {
  max-width: 200px;
  background: #fff;
  padding: 20px;
  border: 1px solid #eee;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: -1;
}
.map-popup--is-active {
  visibility: visible;
  z-index: 2;
  transition: transform 0.15s ease-in-out;
}
