.destination-details {
  display: flex;
  flex-direction: column;

  &__content {
    position: absolute;
    bottom: 0;
    z-index: 2;
    color: $color-white;
    display: flex;
    padding: $margin-normal $margin-enterprise;

    @include breakpoint(sm) {
      padding: $margin-enterprise $margin-double;
    }

    &-name {
      display: flex;
      flex-direction: column-reverse;
    }
  }

  &__back-btn {
    position: absolute;
    z-index: 3;
    top: $margin-normal;
    left: $margin-normal;
  }

  &__more-country-info {
    @include breakpoint(xs) {
      display: none;
    }

    z-index: 3;
    position: absolute;
    right: $margin-double;
    bottom: $margin-enterprise;

    a {
      color: $color-white;
      font-weight: bold;
    }

    .pictogram {
      vertical-align: top;
    }
  }

  &__image {
    position: relative;
    border-radius: $margin-normal $margin-normal 0 0;
    overflow: hidden;

    .tui-hero-image {
      position: relative;
      position: unset;
      height: 184px;

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

        /* stylelint-disable max-nesting-depth */
        @include breakpoint(lg) {
          width: 100%;
          height: auto;
        }
        /* stylelint-enable */
      }

      @include breakpoint(sm) {
        height: 288px;
      }
    }

    .image-fade {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      background: linear-gradient(to bottom, rgba($color-blue-500, 0) 50%, rgba($color-blue-500, 1) 100%);
    }

    .country-flag {
      width: 42px;
      height: 42px;
      border-radius: $margin-half;
      margin-right: $margin-normal;

      @include breakpoint(sm) {
        width: 54px;
        height: 54px;
      }
    }

    h2,
    h3 {
      margin-bottom: 0;
    }

    h3 {
      font-style: italic;
    }
  }

  &__filter {
    border-radius: $margin-normal;
    background-color: $color-blue-300;
    margin: 0 0 $margin-double 0;
    position: relative;
    height: 61px;
    -ms-overflow-style: none;

    @at-root {
      .destination-details & {
        border-radius: 0 0 $margin-normal $margin-normal;
      }
    }

    .btn {
      position: absolute;
      top: $margin-normal;
      right: $margin-normal;
      z-index: 2;
      height: 36px;
      min-height: 36px;
      padding: $margin-half;

      .filter-button-text {
        display: inline-block;
        margin-right: $margin-quarter;
      }
    }

    &:after {
      display: block;
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 195px;
      background: linear-gradient(to right, rgba($color-blue-300, 0) 0%, rgba($color-blue-300, 1) 50%);
      z-index: 1;
      border-radius: 0 $margin-normal $margin-normal 0;
    }

    .filter-tag {
      @include breakpoint(sm) {
        margin-left: $margin-normal;
      }

      &:first-child {
        margin-left: 0;
      }
    }
  }
}
