.map {
  position: relative;
  margin: 0 calc(var(--page-margin) * -0.5);

  svg {
    width: 100%;
  }

  @media (width > 600px) {
    margin: 0;
  }
}

.datacenter {
  position: absolute;
  animation-name: appear;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
  animation-duration: 1s;
  opacity: 0;

  .pin {
    width: calc(12px * 0.8);
    height: calc(12px * 0.8);
    border-radius: 50% 50% 50% 0;
    background: var(--azure-color);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: calc(-14px * 0.8) 0 0 calc(-6px * 0.8);
    z-index: -1;
    cursor: pointer;

    &:after {
      content: '';
      width: calc(4px * 0.8);
      height: calc(4px * 0.8);
      margin: calc(4px * 0.8) 0 0 calc(4px * 0.8);
      background: white;
      position: absolute;
      border-radius: 50%;
    }

    @media (width > 600px) {
      width: 12px;
      height: 12px;
      margin: -14px 0 0 -6px;

      &:after {
        content: '';
        width: 4px;
        height: 4px;
        margin: 4px 0 0 4px;
      }
    }
  }

  &.activePoint {
    animation: jump 2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
    opacity: 1;

    .pin {
      background: var(--accent-color);
    }
  }
}

.viewer {
  position: absolute;
  pointer-events: none;

  .pin {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    margin-left: -7px;
    margin-top: -7px;
  }

  .ripple {
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: ripple;
    animation-timing-function: ease-out;
    background: red;
    border-radius: 50%;
    display: inline-block;
    width: 50px;
    height: 50px;
    opacity: 0;
    position: absolute;
    left: -25px;
    top: -25px;
    transform-origin: center center;
    z-index: 0;
  }
}

.list {
  overflow: hidden;
}

.listInner {
  width: 900000px;
  display: flex;
  align-items: center;
}

.itemWrapper {
  padding: 20px 15px 60px;
  width: 350px;
}

.item {
  padding: rfs(25px);
  border-radius: 5px;
  background: white;
  box-shadow: 0 1.2px 1.1px rgba(0, 0, 0, 0.014),
    0 3.3px 3.1px rgba(0, 0, 0, 0.02), 0 7.8px 7.5px rgba(0, 0, 0, 0.026),
    0 26px 25px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.activeItem {
  top: -20px;
  transform: scale(1.1);
  box-shadow: 0 1.2px 1.2px rgba(0, 0, 0, 0.022),
    0 2.8px 2.9px rgba(0, 0, 0, 0.032), 0 5.3px 5.5px rgba(0, 0, 0, 0.04),
    0 9.4px 9.8px rgba(0, 0, 0, 0.048), 0 17.5px 18.4px rgba(0, 0, 0, 0.058),
    0 42px 44px rgba(0, 0, 0, 0.08);
}

.nearestItem {
  position: relative;

  &:before {
    content: '';
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: ripple;
    animation-timing-function: ease-out;
    background: red;
    border-radius: 50%;
    display: inline-block;
    width: 40px;
    height: 40px;
    opacity: 0;
    position: absolute;
    right: 20px;
    top: 20px;
    transform-origin: center center;
    z-index: 0;
  }
}

.code {
  font-size: rfs(30px);
  margin-bottom: 5px;
}

.city {
  color: var(--extra-light-body-color);
}

.infos {
  display: flex;
  margin-top: rfs(30px);
}

.info {
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--border-color);

  &:last-child {
    border: 0;
  }
}

.infoTitle {
  color: var(--azure-color);
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  from {
    opacity: 0.3;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}

@-webkit-keyframes jump {
  10%,
  90% {
    transform: translate3d(0, -1px, 0);
  }
  20%,
  80% {
    transform: translate3d(0, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(0, -4px, 0);
  }
  40%,
  60% {
    transform: translate3d(0, 0, 0);
  }
}
