
/* Exlude phones and tablets */
  @media (min-width: 991px) {
    .sort-by form {
      float: left;
    }
    #property_main .listing, #contact_form_wrapper {
      width: 64.6666%;
      float: left;
      padding-right: 30px;
    }
    #property_sidebar {
      width: 33.33333333333333%;
      float: right;
      display: inline;
    }
    #home_header .thumbnails {
      padding-right: 0px;
    }
    .property-listing .photo {
      width: 300px;
      margin-right: 25px;
    }
  }

/* Medium devices */

  @media (min-width: 992px) and (max-width: 1199px) {
    .featured-properties-slideshow {
      width: 595px;
    }
    .property-image-slideshow {
      width: 575px;
    }
  }

/* Tablets */

  @media (min-width: 768px) and (max-width: 991px) {

    .featured-properties-slideshow {
      width: 445px;
    }
    .property-image-slideshow {
      width: 690px;
    }
    #home_header .image-viewport img {
      width: auto;
      margin-top: -18px;
    }
    .property-listing .photo {
      width: 200px;
    }
  }

/* Phones */

  @media (max-width: 767px) {
    .navbar-brand {
      width: auto;
      height: auto;
      padding: 1rem 0 1rem 5rem;
    }
    .navbar-brand img {
      width: auto;
      height: auto;
      max-width: 95%;
      max-height: 200px;
      display: block;
    }
    .content {
      margin: 0 -15px;
    }
    #footer .user-content img {
      max-width: 100%;
      height: auto;
    }
    #footer .user-content, .user-content {
      text-align: center;
    }
    .top-head {
      display: none;
    }
    #main_menu {
      margin: -15px;
    }
    #main_menu .navbar-brand, #main_menu .navbar-brand:hover {
      color: #fff;
      margin-top: 2px;
    }
    #main_menu ul li a, #main_menu ul li a, #main_menu ul li.active a, #main_menu .dropdown-menu li a {
      width: 100%;
      display: block;
      border-radius: 0;
      margin: 0;
      border-bottom: 0;
      background: none;
      color: #fff;
      font-size: 14px;
      line-height: 32px;
    }
    #main_menu .dropdown-menu li a, #main_menu .dropdown-menu li.active a, #main_menu ul li.active .dropdown-menu li a {
      font-size: 13px;
      padding: 2px;
      text-align: center;
      background: rgba(0,0,0,.1)!important;
      border-bottom: 1px solid rgba(255,255,255,.1)!important;
    }
    #main_menu .dropdown-menu li a:hover {
      background: none;
    }
    .navbar-toggle {
      position: absolute;
      left: 0;
      padding: 1.5rem;
      margin: 0;
    }
    .navbar-toggle .icon-bar {
      background: #fff;
      height: 3px;
    }
    #main_menu ul {
      float: none;
    }
    #main_menu .dropdown-menu {
      display: block;
      float: none;
      position: relative;
      background: none;
      border-radius: 0;
      border: 0;
      box-shadow: none;
    }
    .image-viewport img {
      width: 100%;
    }
    .featured-properties-slideshow, .property-image-slideshow {
      width: 340px;
      margin-bottom: 10px;
    }
    .mg-attribution {
      float: none;
      text-align: center;
      display: block;
    }
    .property-listing {
      text-align: center;
    }
    .property-listing .description {
      margin-left: 0;
      margin-top: 10px;
    }
    .property-listing .photo {
      float: none;
    }
    .property-status-badge {
      margin: 0px auto;
    }
    .pagination {
      text-align: center;
    }
    .share {
      text-align: center;
      margin-bottom: 20px;
    }
    #parent, #sidebar {
      margin: 10px 0;
      padding: 0;
    }
    .print-property, .socialite {
      float: none;
      display: inline-block;
    }
    .header-pagination {
      display: block;
      float: none;
      margin: 7px 0;
    }
    #overview {
      margin: -65px -15px 20px -25px;
    }
    #video li {
      height: 220px;
    }
    #gallery .galleria-container, .property-image-slideshow {
      height: 300px!important;
    }
    .code-search-form .input-button {
      top: 10px;
      right: 0px;
    }
    .code-search-form {
      padding-bottom: 1rem;
    }
    #main_menu > ul li a, #main_menu ul li.active a {
      background: transparent!important;
    }
    #content .mg_filter-bar {
      padding: 0;
    }
    .panel {
      background: none;
    }
    .panel-group {
      margin-bottom: 0;
    }
    .panel-group .panel-heading {
      padding: 0;
    }
    .panel-group .panel-title a {
      padding: 15px 0 15px;
      display: block;
    }
    #sidebar .panel .panel-title {
      text-align: center;
      padding: 0;
      margin: 0;
    }
    .panel-group .panel-title a.collapsed .caret {
      margin-left: 5px;
      vertical-align: middle;
      border-left: 4px solid;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
      border-right: 4px solid transparent;
    }
    .panel-group .panel-heading+.panel-collapse .panel-body {
      border-top: 1px solid rgba(0,0,0,.05);
      padding: 20px 20px 0px;
    }
    .panel-title a {
      text-decoration: none;
    }
    .mg_property-details .property-status-badge.sold, .mg_property-details .property-status-badge.rented, .mg_property-details .property-status-badge.reserved {
      float: none;
    }
    #property_main #contact_form {
      float: none;
    }



      /* Filters Mobile */

      .has-filters .filters-container {
        display: flex;
      }
      .filters-container {
        position: fixed;
        z-index: 100;
        width: 100%;
        height: 100% !important;
        left: 0;
        top: 0;
        display: none;
        flex-direction: column;
        background: #fff;
        overflow: auto;
      }
      .filters-container .separator {
        display: flex;
        background: #fff;
        border-bottom: 1px solid #dbe4ea;
        padding: 0;
      }
      .filters-container .separator h3 {
        flex: 1;
        padding: 2rem;
        margin-bottom: 0;
        font-size: 18px;
        width: 100%;
        text-align: center;
      }
      .filters-container .separator .close-filters {
        padding: 2rem;
        color: gray;
        position: absolute;
        right: 0;
        font-weight: bold;
      }
      .filters-container .close-filters:hover, .filters-container .close-filters:focus, .filters-container .close-filters:active {
        text-decoration: none;
      }
      .filters-container .filter-mobile-content {
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 2rem;
        flex: 1;
      }
      .filters-container .filter-mobile-footer {
        background: #fff;
        border-top: 1px solid #dbe4ea;
        padding: 1rem 2rem;
      }
      .filter .panel-heading {
        border-bottom: 1px solid #f2f5f8;
      }

      .no-filters.toggle-filters {
        display: none!important;
      }
      .mg_filter-bar {
        padding: 0;
      }
      .filter-mobile-content {
        text-align: left;
      }
      .filter-link {
        padding: .7rem;
        font-size: 17px;
      }
      .sort-by {
        margin-bottom: 1rem;
      }
      .btn-contact {
        display: block;
        width: 300px;
        margin: 0 auto;
      }

  }

  @media (min-width: 767px) {
    .btn-contact {
      display: none;
    }

    .loder-results-container {
      padding: 0 30px;
    }
  }

  @media (max-width: 576px) {
    #footer {
      margin: 20px auto 70px auto;
    }
    .btn-contact {
    position: fixed;
    bottom: 10px;
    z-index: 999;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    }

  }
