/*------------------------------------------------------------
LISTING
====================================*/

/* Variables Custom */
$image-bg-pattern-color: $secondary !default;
$image-bg-pattern: str-replace(url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 60 60' style='enable-background:new 0 0 60 60;' xml:space='preserve'%3E%3Cpath fill='#{$image-bg-pattern-color}' d='M5,43.6l2.8-2.8l1.4,1.4L6.4,45H5V43.6z M5,6.4l2.8,2.8l1.4-1.4L6.4,5H5V6.4L5,6.4z M43.6,45l-2.8-2.8l1.4-1.4l2.8,2.8V45H43.6z M45,6.4l-2.8,2.8l-1.4-1.4L43.6,5H45V6.4z M25,23.6l2.8-2.8l1.4,1.4L26.4,25l2.8,2.8 l-1.4,1.4L25,26.4l-2.8,2.8l-1.4-1.4l2.8-2.8l-2.8-2.8l1.4-1.4L25,23.6L25,23.6z'/%3E%3C/svg%3E%0A"), "#", "%23") !default;
/***************************************/

.listing-container {
  margin-bottom: 3rem;
  .h1 {
    margin-bottom: 2rem;
  }
  .pagination-wrapper {
    margin-top: 2rem;
  }
}

// Header
.listing-header-img-wrapper {
  position: relative;
  margin-bottom: 4.5rem;
  text-align: right;
  &:before {
    content: '';
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: calc(100% - 1.5rem);
    height: 100%;
    background: {
      image: $image-bg-pattern;
      size: 6rem
    }
  }
}
.listing-header-img {
  position: relative;
}

.listing-search-wrapper {
  .listing-show {
    display: none;
  }
}
.listing-search-container {
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  border-top: 0.1rem solid $gray-200;
  border-bottom: 0.1rem solid $gray-200;
  .listing-search-title {
    display: none;
    font-size: 1.6rem;
  }
}


/* RESPONSIVE */
/***************************************/
@include media-breakpoint-down(xs) {
  // Header
  .listing-header-img {
    width: calc(100% - 1.5rem);
  }
}
@include media-breakpoint-down(sm) {
  // Header
  .listing-header-container {
    text-align: center;
  }
}
@include media-breakpoint-up(md) {
  .listing-container {
    margin-bottom: 7rem;
    .show-hide-footer-link {
      text-align: left;
    }
  }

  // Header
  .listing-header-container {
    align-items: center;
    margin-bottom: 3rem;
  }
  .listing-header-img-wrapper {
    margin-bottom: 3rem;
    &:before {
      top: 3rem;
      right: 3rem;
      width: calc(100% - 3rem);
    }
  }

  .listing-search-wrapper {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    .listing-show {
      display: flex;
    }
  }
  .listing-search-container {
    padding: 0;
    .listing-search-title {
      display: block;
      margin: 0;
    }
    .col-md-3 {
      display: flex;
      align-items: center;
      border-right: 0.1rem solid $gray-200;
    }
  }
}
