

/* featured apartments */

.section-featured {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  align-items: flex-start;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
}

.section-featured {
  display: grid;
  margin: 0 auto 20px;
  grid-template-columns: repeat(auto-fill, minmax(31%, 290px));
  grid-template-rows: auto 1fr;
  grid-auto-rows: 1fr;
  grid-gap: 40px;
  justify-items: stretch;
}

.featured-page .section-featured {
  grid-template-columns: 1fr 1fr 1fr;
}

  .featured-apartment {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-out;
      -webkit-transition: all 0.3s ease-out;
  }

  .featured-apartment h2  {
    margin-top: 0 !important;
    margin-bottom: 15px;
    color: #999;
    font-size: 16px;
    font-family: 'Rubik', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 2.0;
    text-transform: uppercase;
  }

    .featured-apartment h2:before {
      display: inline-block;
      margin-right: 10px;
      content: '';
      width: 30px;
      height: 30px;
      background: url('/wp-content/uploads/2018/07/icon-location.svg') center top no-repeat;
      background-size: 28px 28px;
      vertical-align: top;
    }

    .apartment-image {
      display: block;
      width: 100%;
      height: 230px;
      background-position: center top;
      background-repeat: no-repeat;
      background-size: cover;
    }

    .featured-price {
      padding: 15px 20px;
      height: 90px;
      color: #fff;
      font-family: 'Roboto', Helvetica, Arial, sans-serif;
      background-color: #4B4A57;

      transition: all 0.3s ease-out;
        -webkit-transition: all 0.3s ease-out;
    }

      .featured-price h3 {
        margin: 0;
        color: #fff;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.3;
      }

      .featured-price p,
      .featured-bedrooms {
        display: -webkit-flex;
        display: -ms-flex;
        display: flex;
        flex-direction: row;
        align-content: center;
        align-items: center;
      }

      .featured-price p {
        margin: 0;
        color: #fff;
        font-size: 14px;
        text-align: right;
      }

      .featured-price p span {
        width: 50%;
        color: #A5A5AB;
        text-align: left;
        transition: all 0.3s ease-out;
        -webkit-transition: all 0.3s ease-out;
      }

      .featured-apartment.active .featured-price p .starting-at,
      .featured-apartment.active .featured-price p .starting-at,
      .featured-price p .starting-at {
        color: #fff;
        font-size: 20px;
        text-align: right;
      }

      .featured-description {
        color: #222;
        background-color: #fff;
        border-radius: 0 0 3px 3px;
        transition: all 0.3s ease-out;
          -webkit-transition: all 0.3s ease-out;
      }

      .featured-bedrooms {
        padding: 15px 20px;
      }

      .featured-bedrooms p {
        margin-top: 0;
        width: 50%;
        color: #8f8f8f;
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
      }

      .bedrooms-available,
      .featured-apartment .btn-featured {
        display: -webkit-flex;
        display: -ms-flex;
        display: flex;
        justify-content: flex-end;
      }

        .bedrooms-available span {
          display: -webkit-flex;
          display: -ms-flex;
          display: flex;
          -ms-align-items: center;
          align-items: center;
          align-content: center;
          justify-content: center;
          margin-left: 5px;
          width: 26px;
          height: 26px;
          color: #F24E4E;
          background-color: #EFF6F8;
          border-radius: 26px;
        }

      .apartment-description {
        margin-top: 0;
        padding: 10px 20px 20px;
        height: 100px;
        font-size: 14px;
        font-family: 'Roboto', Helvetica, Arial, sans-serif;
        line-height: 1.4;
        transition: all 0.3s ease-out;
        -webkit-transition: all 0.3s ease-out;
      }

      .featured-apartment .btn-featured {
        padding: 0;
        width: 100%;
        justify-content: flex-end;
        border: none;
      }

      .featured-apartment .btn-featured span {
        display: -webkit-flex;
        display: -ms-flex;
        display: flex;
        margin: 0 20px 20px 0;
        width: 40px;
        height: 40px;
        background: #EFF6F8 url('/wp-content/uploads/2018/07/arrow-red.svg') center center no-repeat;
        background-size: 21px 21px;
        border-radius: 100px;

        transition: all 0.3s ease-out;
          -webkit-transition: all 0.3s ease-out;
      }

      .featured-apartment.active,
      .featured-apartment.active {
        background-color: #F24E4E;
        background-image: url('/wp-content/uploads/2018/07/arrow-right.svg');
      }

      .featured-apartment.active .featured-description,
      .featured-apartment.active .featured-description {
        box-shadow: 0 2px 2px rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.2);
      }

      .featured-apartment.active .featured-price,
      .featured-apartment.active .featured-price  {
        background-color: #F24E4E;
      }

      .featured-apartment.active .featured-price p span,
      .featured-apartment.active .featured-price p span {
        color: #F8A7A7;
      }

/* featured apartments */


.need-help {
  position: relative;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-direction: column;
  align-content: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: flex-start;
  padding-top: 70px;
  margin-top: 47px;
  height: 536px;
  color: #fff;
  font-size: 18px;
  font-family: 'Rubik', Helvetica, sans-serif;
  font-weight: 400;
  text-align: center;
  background: url('/wp-content/uploads/2018/08/bg-need-help.png') center top no-repeat;
  background-size: cover;
  border-radius: 3px;
  background-color: #F24E4E;
  background-color: rgba(242, 78, 78, 0.9);
}

  .need-help h2,
  .need-help img,
  .need-help p,
  .need-help a,
  .arrow-help {
    position: relative;
    z-index: 2;
  }

  .need-help img {
    width: 93px;
    height: 93px;
  }

  .need-help h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    text-align: center;
  }

  .need-help p {
    line-height: 1.2;
  }
  
  .featured-page .need-help p {
    padding-right: 25px;
    padding-left: 25px;
  }

  .need-help a {
    margin: 20px auto 0;
    padding-top: 11px;
    width: 170px;
    height: 40px;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    border-radius: 100px;
    transition: all 0.3s ease-out;
      -webkit-transition: all 0.3s ease-out;
  }

    .need-help a:link,
    .need-help a:visited {
      color: #F24E4E;
      background-color: #fff;
    }

    .need-help a:hover,
    .need-help a:active {
      background-color: rgba(255,255,255,0.7);
    }

  .arrow-help {
    padding: 25px 0;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: auto;
    -ms-align-items: center;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
  
  /* animations */

  @-webkit-keyframes arrow3 {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
  }

  @-moz-keyframes arrow3 {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
  }

  @-o-keyframes arrow3 {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
  }

  @keyframes arrow3 {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
  }

  @-webkit-keyframes arrow2 {
    0%   { opacity: 0.3; }
    100% { opacity: 0.6; }
  }

  @-moz-keyframes arrow2 {
    0%   { opacity: 0.3; }
    100% { opacity: 0.6; }
  }

  @-o-keyframes arrow2 {
    0%   { opacity: 0.3; }
    100% { opacity: 0.6; }
  }

  @keyframes arrow2 {
    0%   { opacity: 0.3; }
    100% { opacity: 0.6; }
  }

  @-webkit-keyframes arrow1 {
    0%   { opacity: 0.4; }
    100% { opacity: 0.2; }
  }

  @-moz-keyframes arrow1 {
    0%   { opacity: 0.4; }
    100% { opacity: 0.2; }
  }

  @-o-keyframes arrow1 {
    0%   { opacity: 0.4; }
    100% { opacity: 0.2; }
  }

  @keyframes arrow1 {
    0%   { opacity: 0.4; }
    100% { opacity: 0.2; }
  }


    .arrow-help span {
      margin-bottom: 4px;
      width: 27px;
      height: 16px;
      background: url('/wp-content/uploads/2018/08/arrow-down.svg') center center no-repeat;
      background-size: 27px 16px;
      -webkit-background-size: 27px 16px;
    }

    .arrow-help span:nth-of-type(1) { 
      animation:         arrow1 1s infinite; 
      -webkit-animation: arrow1 1s infinite;
      -moz-animation:    arrow1 1s infinite; 
      -o-animation:      arrow1 1s infinite; 
      animation-delay: 0.2s;
    }
    
    .arrow-help span:nth-of-type(2) { 
      animation:         arrow2 1s infinite; 
      -webkit-animation: arrow2 1s infinite;
      -moz-animation:    arrow2 1s infinite; 
      -o-animation:      arrow2 1s infinite; 
      animation-delay: 0.5s; 
    }
    
    .arrow-help span:nth-of-type(3) {
      animation:         arrow3 1s infinite; 
      -webkit-animation: arrow3 1s infinite;
      -moz-animation:    arrow3 1s infinite; 
      -o-animation:      arrow3 1s infinite; 
      animation-delay: 0.8s;
    }


@media (max-width: 959px) {
  
  .section-featured { 
    -ms-align-items: center;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
  
  .section-featured-apartments h2 {
    font-size: 28px !important;
  }
  
  .featured-page .section-featured {
    grid-template-columns: repeat(auto-fill, minmax(31%, 290px));
    grid-gap: 20px 20px;
  }
  
  .featured-price h3 {
    font-size: 18px;
  }

  .section-featured-apartments .featured-apartment h2 { 
    margin-bottom: 10px !important;
    font-size: 17px !important; 
    width: 100%;
    text-align: left;
  }

}

