.cop-template {
  position: relative;
}
.cop {
  position: relative;
  overflow: hidden;

  &__map {
    position: relative;
    z-index: 0;
    width: 100%;
    height: calc( 100vh - #{$header-height});

    @include sm {
      height: calc( 100vh - #{$header-height-mobile});
    }

    > div {
      background-color: #c4e0e5 !important;
    }
  }

  .copitem-marker {
    opacity: 1 !important;
    transform: perspective(40px) rotateX(20deg) rotateZ(-45deg);
    transform-origin: 50% 50%;
    border-radius: 50% 50% 50% 0;
    padding: 0 3px 3px 0;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -2.2em 0 0 -1.3em;
    transition-property: opacity, transform;
    transition-duration: 100ms, 300ms;
    transition-timing-function: linear, cubic-bezier(.77,.53,.33,1.37);

    svg {
      transform: rotateZ(45deg);
      position: absolute;
      top: 8px;
      left: 5px;
      width: 17px;
      height: 17px;
      pointer-events: none;

      path {
        fill: $white;
      }
    }

    &.js-marker-show {
      opacity: 1 !important;
    }

    &:hover {
      transform: perspective(40px) rotateX(20deg) rotateZ(-45deg) scale(1.35);
    }
  }

  &__blur-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    backdrop-filter: blur(6px);
    background-color: rgba(30,53,92,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;

    &._show {
      opacity: 1;
      pointer-events: initial;

    }
  }

  &__title-mobile {
    display: none;
    margin: 0 auto;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding: 0 20px;

    h1 {
      font-size: 24px;
      line-height: 31px;
      color: $primary-color;
      letter-spacing: -0.78px;
      font-weight: 600;
      margin: 0 auto;
    }

    @include xs {
      display: block;
    }
  }

  &__initial-modal {
    width: 500px;
    background-color: $primary-color;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    border-radius: 10px;
    transition: opacity 0.2s;
    opacity: 0;
    pointer-events: none;
    padding: 35px 25px;
    text-align: center;
    overflow: auto;
    max-height: 720px;

    @include xs {
      height: 100vh;
      width: 100%;
      border-radius: 0px;
      padding: 35px 35px;
    }

    &._show {
      opacity: 1;
      pointer-events: initial;
    }

    h2 {
      font-size: 34px;
      line-height: 42px;
      color: $white;
      letter-spacing: -1.1px;
      font-weight: 600;
      margin: 12px 0;

      @include xs {
        font-size: 22px;
        line-height: 27px;
        letter-spacing: -0.71px;
      }
    }

    p {
      font-size: 18px;
      line-height: 27px;
      color: rgba($color: $white, $alpha: 0.8);

      @include xs {
        font-size: 16px;
        line-height: 25px;
      }
    }

    .std-button {
      margin-top: 15px;

      &:hover {
        background-color: rgba($color: $secondary-color, $alpha: 0.8);
      }
    }
  }

  &__initial-modal-close {
    position: absolute;
    top: 15px;
    right: 10px;
    border: 0;
    background-color: transparent;
    cursor: pointer;

    @include xs {
      top: 30px;
      right: 5px;
    }
  }

  &__logo-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      max-width: 193px;
    }
  }

  &__divider {
    width: 100%;
    height: 1px;
    background-color: rgba($color: $white, $alpha: 0.2);
  }

  &__initial-theme-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    margin-bottom: 15px;

    @include xs {
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 0px;
    }
  }

  &__initial-theme-item {
    display: flex;
    align-items: center;
    color: $white;
    font-size: 16px;
    line-height: 27px;
    font-weight: 700;
    margin-right: 15px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;

    @include xs {
      width: 100%;
      max-width: 130px;
      margin-bottom: 20px;
      margin-right: 10px;

      &:nth-child(even) {
        margin-right: 0px;
      }
    }

    &:last-child {
      margin-right: 0px;
    }

    & > div {
      width: 26px;
      height: 26px;
      border-radius: 100%;
      margin-right: 10px;
      position: relative;

      svg {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 5px;

        path {
          fill: $white;
        }
      }
    }

    &:hover {
      opacity: 0.6;
    }
  }

  &__initial-explore-button {
    font-size: 18px;
    line-height: 22px;

    svg {
      margin-left: 10px;

      g {
        stroke: $white;
      }
    }
  }

  &__topics-container {
    display: none;
    flex-direction: row;
    position: absolute;
    top: 0;
    left: 45px;
    height: calc(100vh - #{$header-height});
    z-index: 101;
    overflow: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    pointer-events: none;

    &::-webkit-scrollbar {
      display: none;
    }

    &._show-topics {
      display: flex;
    }

    @include xs {
      display: none !important;
    }

    &._scroll {
      pointer-events: all;
    }
  }

  &__topics-wrapper {
    margin: auto;
  }

  &__title {
    max-width: 500px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.2s ease-out;
    max-height: 100px;
    margin-bottom: 20px;

    h1 {
      font-size: 36px;
      line-height: 42px;
      font-weight: 600;
      letter-spacing: -1.17px;
      color: $primary-color;
      margin: 0;
    }

    ._show-topics & {
      opacity: 1;
      pointer-events: initial;
    }

    ._filter-active & {
      opacity: 0;
      pointer-events: none;
      max-height: 0;
      margin-bottom: 0px;
    }

    ._hide-space & {
      display: none;
    }
  }

  &__clear-filter {
    opacity: 0;
    pointer-events: none;
    color: $white;
    background-color: rgba($color: $primary-color, $alpha: 0.4);
    border-radius: 25px;
    padding: 5px 10px;
    height: 25px;
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    transition: all 0.2s ease-out;
    pointer-events: all;

    ._filter-active & {
      opacity: 1;
      pointer-events: initial;
      transition: all 0.1s ease-out 0.5s;
    }

    &:hover {
      background-color: rgba($color: $primary-color, $alpha: 0.6);
    }
  }

  &__topic {
    background-color: $white;
    padding: 13px;
    max-width: 341px;
    height: 110px;
    display: flex;
    align-items: flex-start;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-50px);
    pointer-events: none;
    box-shadow: 4px 4px 24px 0 rgba(0,0,0,0.08);
    pointer-events: all;

    & > * {
      pointer-events: none;
    }

    &:nth-child(2) {
      transition: all 0.1s ease-out 0.1s;

      .cop__topic-image {
        transition: all 0.1s ease-out 0.1s;
      }

      .cop__topic-info {
        transition: opacity 0.1s ease-out;
      }
    }

    &:nth-child(3) {
      transition: all 0.1s ease-out 0.2s;

      .cop__topic-image {
        transition: all 0.1s ease-out 0.2s;
      }

      .cop__topic-info {
        transition: opacity 0.1s ease-out 0.1s;
      }
    }

    &:nth-child(4) {
      transition: all 0.1s ease-out 0.3s;

      .cop__topic-image {
        transition: all 0.1s ease-out 0.3s;
      }

      .cop__topic-info {
        transition: opacity 0.1s ease-out 0.2s;
      }
    }

    &:nth-child(5) {
      margin-bottom: 0;
      transition: all 0.1s ease-out 0.4s;

      .cop__topic-image {
        transition: all 0.1s ease-out 0.4s;
      }

      .cop__topic-info {
        transition: opacity 0.1s ease-out 0.3s;
      }
    }

    ._show-topics & {
      opacity: 1;
      pointer-events: initial;
      transform: translateY(0px);
    }

    ._filter-active & {
      margin-bottom: 0px;
      box-shadow: 0px 0px 0px 0 rgba(0,0,0,0.08);
      padding: 0px;
      height: 90px;
      background-color: transparent;
    }
  }

  &__topic-image {
    margin-right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 100%;
    position: relative;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.08);

    svg {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      padding: 9px;

      path {
        fill: $white;
        transition: all 0.1s;
      }
    }

    ._filter-active & {
      width: 75px;
      height: 75px;
      background-color: $white;
      box-shadow: 4px 4px 24px 0 rgba(0,0,0,0.08);
      transition: all 0.1s !important;

      svg {
        padding: 14px;
      }
    }
  }

  &__topic-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    opacity: 1;

    ._filter-active & {
      opacity: 0;
      pointer-events: none;
    }

    ._hide-space & {
      display: none;
    }

    h4 {
      color: $primary-color;
      margin: 0;
      font-size: 19px;
      line-height: 22px;
      font-weight: 700;
    }

    p {
      color: $primary-color;
      margin: 0;
      font-size: 14px;
      line-height: 20px;
      font-weight: 500;
      overflow: hidden;
      height: 40px;
    }

    a {
      font-size: 14px;
      line-height: 24px;
      font-weight: 700;
      margin: 0;
      color: $primary-color;
      display: flex;
      align-items: center;
      transition: color 0.2s;

      svg {
        margin-left: 7px;
        width: 10px;

        path {
          stroke: $primary-color;
          transition: stroke 0.2s;
        }
      }

      .cop__topic:hover & {
        color: $secondary-color;

        svg {
          path {
            stroke: $secondary-color;
          }
        }
      }
    }
  }

  &__mark-layout {
    position: absolute;
    width: 264px;
    background-color: $secondary-color;
    box-shadow: 0px 0px 30px #00000033;
    transform: translate(-50%,-50%) scale(0.4);
    transition: transform 50ms ease-out, all 200ms ease-out 200ms;
    opacity: 0;
    border-radius: 10px;
    overflow: hidden;

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

    @include xs {
      width: 204px;

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

  &__close-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 24px;
    width: 24px;
    background-color: rgba($color: $primary-color, $alpha: 0.4);
    border-radius: 24px;

    &:before,
    &:after {
      content: '';
      position: absolute;
      display: block;
      top: 11px;
      left: 6px;
      width: 12px;
      height: 2px;
      border-top: 2px solid #D1D1D6;
      transform: rotate(45deg);
    }

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

  &__mark-info {
    padding: 20px;

    span {
      font-size: 13px;
      line-height: 21px;
      font-weight: 400;
      text-transform: uppercase;
      color: $primary-color;
      font-family: var(--font-default);;
    }

    h4 {
      font-size: 20px;
      line-height: 24px;
      font-weight: 700;
      letter-spacing: 0.24px;
      margin: 0 0 10px;
      color: $primary-color;
    }

    p {
      margin: 0;
    }

    a {
      font-size: 16px;
      line-height: 24px;
      font-weight: 700;
      margin: 15px 0 0;
      color: $primary-color;
      display: flex;
      align-items: center;
      position: relative;
      font-family: var(--font-default);;

      span {
        width: 10px;
        height: 10px;
        background-image: url('../img/svg/ArrowDark.svg');
        background-repeat: no-repeat;
        background-size: contain;
        margin-left: 5px;
        pointer-events: none;
      }

      @include xs {
        margin: 15px 0 0;
      }
    }
  }

  &__mark-description {
    font-size: 16px;
    line-height: 21px;
    font-weight: 400;
    color: $primary-color;
    font-family: var(--font-default);;

    @include xs {
      display: none;
    }
  }

  .js-show .cop__mark-layout {
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
  }

  &__video-layout {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: 100%;
    max-width: 690px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;

    @include xs {
      max-width: 100%;
    }

    &._show {
      transform: translateX(0%);
    }

    span {
      font-size: 13px;
      line-height: 21px;
      font-weight: 400;
      text-transform: uppercase;
      text-align: center;
      display: block;
      color: $primary-color;
    }

    h3 {
      margin: 0;
      font-size: 18px;
      line-height: 24px;
      font-weight: 700;
      padding: 15px;
      align-self: flex-start;
      color: $primary-color;
      height: 50px;

      @include xs {
        padding: 15px 15px 15px 65px;
      }
    }

    h2 {
      margin: 0 auto;
      font-size: 34px;
      line-height: 42px;
      font-weight: 700;
      color: $primary-color;
      padding: 0 15px;
      text-align: center;
      max-width: 450px;
    }

    p {
      margin: 0;
      font-size: 18px;
      line-height: 22px;
      font-weight: 500;
      color: $primary-color;
      padding: 0 15px;
      text-align: center;
    }

    a {
      margin: 20px auto 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      outline: 0;
      border: 0;
      text-align: center;
      height: 44px;
      font-size: 16px;
      line-height: 19px;
      font-weight: 700;
      cursor: pointer;
      color: $white;
      padding: 0 40px;
      border-radius: 22px;
      text-decoration: none;
      transition: all .2s ease-in-out;
      background-color: $primary-color;

      &:hover {
        background-color: $secondary-color;
      }
    }
  }

  &__video-content {
    text-align: center;
    overflow: auto;
    width: 100%;
    padding: 0 20px 20px;
  }

  &__close-video-layout {
    position: absolute;
    left: -50px;
    top: 0;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;

    @include xs {
      left: 0px;
    }
  }

  &__video-container {
    width: 100%;
    height: 388px;
    margin-bottom: 60px;

    @include xs {
      margin-bottom: 30px;
      height: calc(100vw * 0.56);
    }
  }

  &__video-divider {
    height: 1px;
    width: 140px;
    background-color: rgba($color: $primary-color, $alpha: 0.2);
    margin: 25px auto;
  }

  &__embed-layout {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: 100%;
    max-width: 1022px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;

    &._show {
      transform: translateX(0%);
    }

    h3 {
      margin: 0;
      font-size: 18px;
      line-height: 24px;
      font-weight: 700;
      padding: 15px;
      align-self: flex-start;
      color: $primary-color;
      height: 50px;

      @include xs {
        padding: 15px 15px 15px 65px;
      }
    }
  }

  &__close-embed-layout {
    position: absolute;
    left: -50px;
    top: 0;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;

    @include xs {
      left: 0px;
    }
  }

  &__embed-container {
    width: 100%;
    height: 100%;
  }

  &__description-layout {
    position: absolute;
    right: 0;
    z-index: 102;
    width: 100%;
    max-width: 337px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc( 100vh - #{$header-height});
    top: 0;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-out;

    @include sm {
      height: calc( 100vh - #{$header-height-mobile});
      top: 0;
      max-width: 70%;
    }

    @include xs {
      max-width: 100%;
      transform: translateY(100%);
      height: 100vh;
      top: 0;
      z-index: 10002;
    }

    h3 {
      display: none;
      margin: 0;
      font-size: 18px;
      line-height: 24px;
      font-weight: 700;
      padding: 15px;
      align-self: flex-start;
      color: $primary-color;
      height: 50px;

      @include xs {
        display: block;
        padding: 15px 15px 15px 65px;
      }
    }

    ._filter-active & {
      opacity: 1;
      pointer-events: initial;
    }

    &._show {
      transform: translateX(0%);

      @include xs {
        transform: translateY(0%);
      }
    }
  }

  &__toggle-description-layout {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: $primary-color;
    padding: 13px;
    border: 0;
    cursor: pointer;

    @include xs {
      left: 0px;
      padding: 0px;
    }

    ._icon_desktop {
      display: block;

      g {
        stroke: $white !important;
      }

      @include xs {
        display: none;
      }
    }

    ._icon_mobile {
      display: none;

      line {
        stroke: $white !important;
      }

      @include xs {
        display: block;
      }
    }

    svg {
      transform: rotate(180deg);
      width: 100%;
      height: 100%;
      transition: all 0.4s ease-out;

      ._show & {
        transform: rotate(0deg);
      }
    }
  }

  &__description-container {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.2s ease-out 0.1s;
    height: 100%;

    @include xs {
      height: calc(100% - 99px);
    }

    &._show {
      opacity: 1;
      pointer-events: initial;
      position: unset;
    }
  }

  &__description-container-scroll {
    overflow: auto;
    height: calc(100% - 46px);
  }

  &__description-image {
    width: 100%;
    height: 215px;
    max-height: 215px;

    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
    }
  }

  &__description-content {
    padding: 25px 30px 30px 30px;

    @include xs {
      padding: 15px 20px 20px 20px;
    }

    h1 {
      margin: 0;
      font-size: 34px;
      line-height: 42px;
      font-weight: 700;
      color: $primary-color;
      margin-bottom: 15px;

      @include xs {
        font-size: 26px;
        line-height: 32px;
      }
    }

    h4 {
      margin: 0;
      font-size: 18px;
      line-height: 25px;
      font-weight: 700;
      color: $primary-color;
      margin-bottom: 15px;

      @include xs {
        font-size: 16px;
        line-height: 24px;
      }
    }

    p {
      margin: 0;
      font-size: 16px;
      line-height: 24px;
      font-weight: 400;
      color: $primary-color;

      @include xs {
        font-size: 14px;
        line-height: 21px;
      }
    }
  }

  &__contact-button {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba($color: $white, $alpha: 0.3);
    width: 100%;
    padding: 10px 30px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: $primary-color;

    @include xs {
      padding: 10px 20px;
    }

    span {
      width: 26px;
      height: 26px;
      background-color: $primary-color;
      margin-left: 15px;
      border-radius: 5px;
      padding: 7px 7px 6px;
      transition: background-color 0.2s;

      svg {
        width: 100%;
        height: 100%;
      }

      path {
        fill: $white;
      }
    }

    &:hover {
      span {
        background-color: $primary-color;
      }
    }
  }

  &__topics-mobile-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 55px;
    background-color: $white;

    &._show-topics {
      display: block;
    }

    @include xs-up {
      display: none;
    }

    @include xs {
      display: block;
    }
  }

  &__topics-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__topic-mobile {
    position: relative;
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;

    & > * {
      pointer-events: none;
    }

    h4 {
      font-size: 12px;
      line-height: 15px;
      font-weight: 400;
      margin: 3px 0 0;
    }

    &:last-child {
      .cop__topic-divider-mobile {
        display: none;
      }
    }
  }

  &__topic-divider-mobile {
    width: 1px;
    height: 70%;
    position: absolute;
    background-color: rgba($color: $primary-color, $alpha: 0.05);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  &__topic-image-mobile {
    width: 29px;
    height: 29px;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  &__topics-mobile-info-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease-out;

    &._show {
      height: 60px;
    }
  }

  &__topics-mobile-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: 0;
    pointer-events: none;

    &._show {
      opacity: 1;
      z-index: 1;
      pointer-events: initial;
      padding: 10px 20px;
    }

    span {
      font-size: 14px;
      line-height: 17px;
      margin: 0;
      font-weight: 400;
      padding-right: 10px;
      width: 100%;
      display: block;
      overflow: hidden;
      max-height: 34px;
      color: $primary-color;
    }

    button {
      border: 0;
      background-color: $primary-color;
      border-radius: 5px;
      width: 26px;
      height: 26px;
      padding: 3px;
    }
  }

  &__clear-filter-mobile {
    opacity: 0;
    pointer-events: none;
    color: $white;
    background-color: rgba($color: $primary-color, $alpha: 0.4);
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    position: absolute;
    top: -35px;
    right: 10px;
    transition: all 0.2s ease-out;

    ._filter-active & {
      opacity: 1;
      pointer-events: initial;
      transition: all 0.1s ease-out 0.5s;
    }

    &:hover {
      background-color: rgba($color: $primary-color, $alpha: 0.6);
    }
  }
}
