.header-map {
  width: 100%;
  position: relative;
  background-color: $background-blue;
  // overflow: hidden;

  &__container-map {
    width: 100%;
    height: 100vh;
    min-height: 650px;

    > div {
      background-color: $background-blue !important;
    }
  }

  &__background {
    background-color: $background-blue;
    position: absolute;
    width: 100%;
    height: 700px;
    bottom: 0;
    left: 0;
    z-index: -2;
    transform: translateY(100%);

    @include sm {
      height: 50%;
    }

    .filter & {
      display: none;
    }
  }

  .popup-tip-anchor {
    height: 0;
    position: absolute;
    width: 200px;
  }

  .popup-bubble-anchor {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
  }

  .project-marker {
    background: url('../img/svg/project-marker.svg') no-repeat center;
    opacity: 0;
    transform: translateY(-200px);
    transition-property: opacity, transform;
    transition-duration: 100ms, 300ms;
    transition-timing-function: linear, cubic-bezier(.77,.53,.33,1.37);

    &.green {
      background: url('../img/svg/project-marker1-green.svg') no-repeat center;
    }

    &.yellow {
      background: url('../img/svg/project-marker1-yellow.svg') no-repeat center;
    }

    &.grey {
      background: url('../img/svg/project-marker1-blue.svg') no-repeat center;
    }

    &.blue {
      background: url('../img/svg/project-marker1-blue.svg') no-repeat center;
    }

    &.orange {
      background: url('../img/svg/project-marker1-orange.svg') no-repeat center;
    }

    &.js-marker-show {
      opacity: 1 !important;
      transform: translateY(0);
    }

    &:hover {
      transform: scale(1.35);
      opacity: 1 !important;
    }
  }

  .project-map-infobox {
    position: absolute;
    width: 264px;
    background: $secondary-color;
    box-shadow: 0px 0px 30px #00000033;
    transform: translate(-50%,-50%) scale(0.4);
    transition: all 200ms ease-out;
    opacity: 0;
    color: $primary-color;

    &--green,
    &--green .project-map-infobox__close,
    &--grey,
    &--grey .project-map-infobox__close {
      background-color: $topic-green;
    }
    &--yellow,
    &--yellow .project-map-infobox__close {
      background-color: $topic-yellow;
    }
    &--blue,
    &--blue .project-map-infobox__close {
      background-color: $topic-blue;
    }
    &--orange,
    &--orange .project-map-infobox__close  {
      background-color: $topic-orange;
    }

    img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
    }

    &__content {
      padding: 20px;
      font-family: var(--font-default);;
    }

    &__country {
      color: $primary-color;
      font-weight: 700;
      font-size: 12px;
      line-height: 14px;
      margin-bottom: 10px;
    }

    &__title {
      font-weight: 700;
      font-size: 18px;
      line-height: 20px;
    }

    &__link {
      text-align: right;

      a {
        font-weight: 700;
        font-size: 14px;

        &:after {
          content: '';
          display: inline-block;
          width: 10px;
          height: 10px;
          margin-left: 3px;
          border-top: 2px solid $primary-color;
          border-right: 2px solid $primary-color;
          transform: rotate(45deg) scale(0.7);
        }
      }
    }

    &__close {
      position: absolute;
      right: -30px;
      top: 0;
      height: 30px;
      width: 30px;
      background-color: $secondary-color;

      &:before,
      &:after {
        content: '';
        position: absolute;
        display: block;
        top: 14px;
        left: 6px;
        width: 16px;
        height: 2px;
        border-top: 2px solid $primary-color;
        transform: rotate(45deg);
      }

      &:after {
        transform: rotate(-45deg);
      }
    }

    p {
      margin: 10px 0;
      font-size: 14px;
      max-height: 69px;
      overflow: hidden;
    }
  }

  .js-show .project-map-infobox {
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
  }
}
