/* Template of Two Columns List */

.two-col-list-item {
  position: relative;
  color: $text_white;
  overflow: hidden;

  div {
    overflow: hidden;
  }
  img {
    transition: ease-in-out 2s;
    transform: scale(1);
    display: block;
  }
  img:hover {
    transition: ease-in-out 2s;
    transform: scale(1.05);
    width: 100%;
  }

  .text-center {
    position: absolute;
    top: 15px;
    right: 40px;

    span {
      background: $bg-transparent;
      border: 1px solid #fff;
      border-radius: 0;
      box-shadow: 0px 0px 1px #000;

      a {
        padding: 10px 15px;
        color: $text_white;
        text-shadow: $text-shadow
      }
    }
  }

  .captions-list {
    position: absolute;
    margin-left: 5px;
    width: 94%;
    bottom: 25px;
    background: $bg-transparent;

    .title {
      width: 60%;
      float: left;
      padding-left: 15px;
      padding-top: 10px;
      margin-bottom: 10px;

      h2 {
        color: $text_white !important;
        text-shadow: $text-shadow;
        font-size: 1em;
      }
    }

    .price {
      width: 40%;
      float: right;
      text-align: right;
      font-size: 2em;
      text-shadow: $text-shadow;
      padding-right: 15px;
      padding-top: 10px;
      margin-bottom: 10px;
    }

    .meta-list {
      float: left;
      width: 70%;
      padding-left: 15px;
      line-height: 1.5;

      div {
        font-size: 1em;
        text-shadow: $text-shadow;
      }
    }

    .more {
      position: absolute;
      bottom: 15px;
      right: 15px;

      button {
        color: $text_white;
        background: transparent;
        border: 1px solid $text_white;
        border-radius: 0;
        padding: 10px 15px;
      }
    }

  }

  @include breakpoint(mobileonly) {
    .text-center {
      top: 5px;
      right: 20px;
    }
    span.info-text.text-capitalize {
      font-size: 0.8em;
      padding: 0;
    }

    .captions-list {
      bottom: 45px;
      width: 92%;
      font-size: 1em;

      .title {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
        padding-left: 10px;
        h2 {
          font-size: 1em!important;
          margin-bottom: 0;
          padding-left: 0;
        }
      }

      .price {
        float: none;
        font-size: 1em;
        width: 100%;
        text-align: left;
        padding-left: 10px;
      }

      .meta-list {
        padding-left: 10px;
        .ortsangaben {
          margin-bottom: 10px;
          font-size: 80%;
        }

        .hardfacts {
          display: none;
        }
      }

      .more {
        button {
          padding: 5px;
          font-size: 80%;
        }
      }
    }
  }
  @include breakpoint(phablet) {
    width: 100% !important;

    .captions-list {
      bottom: 20px;
      width: 95.5%;

      .hardfacts {
        display: inline-block;
      }
    }
  }
  @include breakpoint(tablet) {

  }

  @include breakpoint(laptop) {
    width: 50% !important;

    img {
      height: 440px !important;
      width: 100%;
      max-width: 100%;
    }

    .title {
      h2 {
        font-size: 1.5em;
      }
    }

    .captions-list {
      min-height: 160px;
      bottom: 25px;
      width: 94%;

    }

    .meta-list {
      .hardfacts:not(:nth-child(-n+3)) {
        display: none;
      }
    }
  }

  @include breakpoint(desktop) {
    img {
      height: 450px !important;
    }

    .meta-list {
      .hardfacts:nth-child(-n+4) {
        display: inline-block;
      }
      .hardfacts:not(:nth-child(-n+4)) {
        display: none;
      }
    }

  }
}

#widget-immobilien {
  .two-col-list-item {
    width: 100%!important;
    padding: 0;

    img {
      width: 100%;
      height: auto!important;
    }

    .captions-list {
      width: 87%;
      min-height: 10px;
      .title {
        margin-bottom: 3px;

        h2 {
          font-size: .8em;
          text-transform: inherit;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          line-height: 1;
          margin-bottom: 0;

          :hover {
            text-overflow: inherit;
          }
        }
      }

      .price {
        font-size: 1em;
        margin-bottom: 5px;
        line-height: 1;
      }
      .meta-list {
        font-size: .8em;
      }

      .ortsangaben {
        display: none;
      }
      .hardfacts {
        display: inline-block;
        width: calc(100% / 3);
        line-height: 1.2;

        .hardfacts-value, .hardfacts-label {
          width: 100%;
          white-space: nowrap;
        }
      }

      .more {
        display: none;
      }
    }
  }
}