/* --- Map Core --- */

.swop18-map {
  background: #060a1b;
  position: relative;
  z-index: 7;
  min-height: 100vh;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.swop18-map-side-padd {
  padding-left: 12px;
  padding-right: 12px;
}

.swop18-map-hold {
  display: flex;
  min-height: 100vh;
  align-items: center;
}

.swop18-map-hold-inner {
  padding: 24px 0;
}

.swop18-map-title h2 {
  margin: 20px auto 40px auto;
  color: #fff;
  font-size: 24px;
  line-height: 1.3em;
  text-align: center;
}

.swop18-map-main {
  position: relative;
  z-index: 1;
}

.swop18-map-map {
  width: 100%;
  height: 0;
  padding-bottom: 49.8563%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.swop18-map-map-inner > div {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.swop18-map-map img {
  display: block;
  width: 100%;
  height: 100%;
}

.swop18-map-disclaimer {
  padding: 24px 0;
  font-size: 13px;
  line-height: 1.4em;
  color: #6e6f82;
}

.swop18 .swop18-map-disclaimer a {
  color: inherit;
}

.swop18 .swop18-map-disclaimer a:hover {
  color: #9e9fb2;
}

@media all and (min-width: 768px) {
  .swop18-map {
    height: 300vh;
    padding: 0;
  }

  .swop18-map-side-padd {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .swop18-map-hold {
    display: block;
    width: 100%;
    height: 100vh;
    position: relative;
  }

  .swop18-map-title {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(6, 10, 27, 0.7);
    overflow: hidden;
  }

  html.js .swop18-map-title {
    display: block;
  }

  .swop18-map-title-inner {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .swop18-map-title h2 {
    font-size: 36px;
    line-height: 1.3em;
    max-width: 900px;
  }

  .swop18-map-map {
    display: table;
    width: 100%;
    /* 100vh - 120px (map controls) - 72px (map legend) - 2x 24px padding */
    height: calc(100vh - 242px);
    max-height: 694px;
    max-width: 1392px;
    margin: 0 auto;
    padding-bottom: 0;
  }
  
  .swop18-map-map-aligncenter {
    display: table-cell;
    vertical-align: middle;
  }
  
  .swop18-map-map-inner {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
  }

  .swop18-map-disclaimer {
    padding: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24%;
    z-index: 2;
  }

  .swop18 .swop18-map-sharelinks {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
  }

  .swop18 .swop18-map-sharelinks a {
    width: 36px;
    height: 36px;
    font-size: 36px;
    line-height: 36px;
  }
}

@media all and (min-width: 768px) and (min-height: 480px) {
  .swop18-map-hold-inner {
    padding: 48px 0;
  }

  .swop18-map-map {
    /* 100vh - 120px (map controls) - 72px (map legend) - 2x 48px padding */
    height: calc(100vh - 288px);
  }
}

@media all and (min-width: 768px) and (min-height: 768px) {
  .swop18-map-hold-inner {
    padding: 96px 0;
  }

  .swop18-map-map {
    /* 100vh - 120px (map controls) - 72px (map legend) - 2x 96px padding */
    height: calc(100vh - 384px);
  }
}

/* --- Map Controls --- */

.swop18-map-controls {
  display: none;
  max-width: 712px;
  margin: 0 auto;
  height: 90px;
  color: #303240;
  font-size: 16px;
  line-height: 17px;
  overflow: hidden;
}

html.js .swop18-map-controls {
  display: block;
}

.swop18-map-years {
  margin-bottom: 14px;
  overflow: hidden;
}

.swop18-map-years > * {
  float: left;
  width: 16.6666%;
  text-align: center;
  transition: color 0.3s, font-size 0.3s;
}

.swop18-map-years .swop18-map-year-active {
  color: #6a6d7d;
  font-size: 17px;
}

.swop18-map-slider-wrap {
  padding: 0 8%;
  border-radius: 4px;
  background: #6a6d7d;
}

.swop18-map-slider.ui-slider {
  height: 10px;
  border: 0;
  border-radius: 3px;
  background: none;
}

.swop18-map-year-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #24253b;
  position: absolute;
  top: 0;
  z-index: 1;
}

.swop18-map-year-dot-1 {
  left: 0;
}

.swop18-map-year-dot-2 {
  left: 20%;
  margin-left: -5px;
}

.swop18-map-year-dot-3 {
  left: 40%;
  margin-left: -5px;
}

.swop18-map-year-dot-4 {
  left: 60%;
  margin-left: -5px;
}

.swop18-map-year-dot-5 {
  left: 80%;
  margin-left: -5px;
}

.swop18-map-year-dot-6 {
  right: 0;
}

@keyframes swop18-map-slider-handle-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}

.swop18-map-slider.ui-slider .ui-slider-handle {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 14px;
  top: -9px;
  outline: none;
  cursor: ew-resize;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);

  animation-name: swop18-map-slider-handle-pulse;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
  transition: left 0.3s;
}

.swop18-map-slider.ui-slider .ui-slider-handle:hover {
  transform: scale(1);
  animation-name: none;
}


@media all and (min-width: 768px) {
  .swop18-map-controls {
    font-size: 23px;
    line-height: 36px;
    height: 120px;
  }

  .swop18-map-years {
    font-size: inherit;
  }

  .swop18-map-years .swop18-map-year-active {
    font-size: 36px;
  }
}

/* --- Legend --- */

.swop18-map-legend {
  width: 260px;
  margin: 24px auto 0 auto;
}

.swop18-map-legend-bar {
  height: 20px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: 0 0 no-repeat;
  background-image: linear-gradient(90deg, #005B9A 0, #1B75BC 16.62%, #00A79D 40.55%, #FBB040 85.73%, #FBB040 100%);
}

.swop18-map-legend-labels {
  padding-top: 10px;
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
}

.swop18-map-legend-labels span {
  display: block;
  float: left;
  width: 50%;
}

.swop18-map-legend-labels span:last-child {
  text-align: right;
}
