/*
  Author: Adam Hughes
  Date: 5th March 2017
  Note: This is not my best work :(
*/

#project-map-container h1 {
  font-weight: bold;
  font-size: 32px;
  line-height: 1em;
  text-transform: uppercase;
  color: #a8b400;
  margin-bottom: 40px;
  border-left: 4px solid;
  padding-left: 10px;
}

#project-map-container h2 {
  font-weight: bold;
  font-size: 14px;
  line-height: 1em;
  text-transform: uppercase;
  color: #a8b400;
  margin-bottom: 20px;
}

#project-map-container h2::before {
  content: '';
  display: inline-block;
  position: relative;
  top: -3px;
  height: 4px;
  width: 15px;
  background-color: #a8b400;
  margin-right: 10px;
}

.project-map {
  float: left;
}

.map-wrap {
  height: 625px;
  width: 500px;
  margin: 0 auto;
}

.map-wrap svg {
  height: auto;
  width: 100%;
}

.project-map .region:hover,
.project-map .region:hover path,
.project-map .region:hover polygon,
.project-map .region.is-selected,
.project-map .region.is-selected path,
.project-map .region.is-selected polygon {
  cursor: pointer;
  fill: #A8B400;
}

.region-list {
  padding-top: 72px;
}

.region-list__item {
  line-height: 1;
  margin-bottom: 15px;
}

.region-list__title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1em;
  background: transparent url('./images/arrow-right.png') 1px 0 no-repeat;
  padding-left: 25px;
}

.region-list__title:hover {
  color: #A8B400;
  cursor: pointer;
}

.is-opened .region-list__title {
  background: transparent url('./images/arrow-down.png') 0 2px no-repeat;
}

.is-opened .region-list__title,
.is-hovered .region-list__title {
  color: #A8B400;
}

.project-list {
  display: none;
  margin: 0 0 0 40px;
  padding-top: 5px;
}

.project-list__item {
  margin: 5px 0 0 0;
  font-size: 12px;
  font-weight: bold;
}

.project-list__item a {
  color: #89837D;
  text-decoration: none;
}

.project-list__item a:hover {
  color: #A8B400;
}

.project-list__item a::before {
  content: '+';
  display: inline-block;
  padding-right: 10px;
}

@media only screen and (max-width: 767px) {
  #project-map-container {
    padding: 0 0 0 10px;
  }

  #project-map-container h1 {
    font-size: 24px;
  }

  .map-wrap {
    width: 260px;
    height: 323px;
  }

  .region-list {
    padding-top: 20px;
  }
}
