
/* Exlude phones and tablets */
  @media (min-width: 991px) {
    .sidebar-wrapper .menu .navbar-collapse {
      max-height: inherit;
    }
    .sort-by form {
      float: right;
    }
  }

/* Medium devices */

  @media (min-width: 992px) and (max-width: 1199px) {
    .property-listing .photo {
      width: 250px;
    }
    #header .logo {
      max-width: 77%;
    }
  }

/* Tablets */

  @media (min-width: 768px) and (max-width: 991px) {
    .property-listing .photo {
      width: 250px;
      padding-right: 15px;
    }
    #header .logo {
      max-width: 70%;
    }
  }
/* Tablets & Mobile*/

  @media (max-width: 991px) {

  }

/* Phones */

  @media (max-width: 767px) {
    #mg_property_show #prices {
      text-align: left;
      margin-bottom: 10px;
    }
    .property-listing .photo {
      padding-right: 0;
      width: 100%;
    }
    #footer {
      display: none;
    }
    #main {
      padding-bottom: 20px;
    }
    .sidebar-wrapper {
      margin-bottom: 20px;
    }
    .sidebar-wrapper .menu a:link,
    .sidebar-wrapper .menu a:visited, .sidebar-wrapper h3 {
      border-bottom: none;
    }
    .property-listing .photo {
      float: none;
    }
    .property-listing .description {
      margin-left: 0;
      text-align: center;
      margin-top: 15px;
    }
    .sort-by {
      float: none;
    }
    .sort-by form {
      width: auto;
      float: none;
    }
    .pagination {
      text-align: center;
      width: 100%;
    }
    .header-pagination {
      float: none;
    }
    .header-pagination .pagination {
      margin-bottom: 15px;
    }
    .menu ul {
      float: none;
    }
    .sidebar-wrapper .menu .dropdown-menu {
      display: block;
      float: none;
      position: relative;
      background: none;
      border-radius: 0;
      border: 0;
      box-shadow: none;
      left: 0;
      margin-top: 0!important;
    }
    #header {
      display: none;
    }
    .sidebar-wrapper .menu {
      margin-left: -15px;
      margin-right: -15px;
    }
    .sidebar-wrapper .menu .icon-bar {
      background: #fff;
      height: 3px;
    }

    .navbar-brand {
      width: auto;
      height: auto;
      max-width: 80%;
      position: relative;
      margin-left: 5rem;
    }
    .navbar-brand img {
      width: auto;
      height: auto;
      max-width: 95%;
      max-height: 200px;
      display: block;
    }
    .code-search-form {
      position: relative;
    }
    .code-search-form #menu_search_code {
      width: 100%;
      float: none;
    }
    .code-search-form .input-button {
      position: absolute;
      top: 0;
      right: 0;
      height: 34px;
      width: 50px;
      min-width: 0;
      border-radius: 0 5px 5px 0;
      font-weight: bold;
    }
    #gallery .galleria-container, #mg_property_show #map, #mg_property_show .map-container, #mg_property_show #video iframe, #virtual_tour iframe {
      height: 250px!important;
    }
    .print-property {
      display: none;
    }
    .property-status-badge {
      margin-bottom: 15px;
    }
    .sidebar-wrapper .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 7px;
      display: block;
      text-align: center;
    }
    .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: 5px 20px 0px 20px;
    }
    .panel-title a {
      text-decoration: none;
    }
    .map-empty-container {
      height: 200px;
    }
    .map-empty-container .map-text {
      margin-top: 50px;
    }
    .carousel-inner .item .card .picture {
      height: 248px;
    }
    .carousel-inner .item .card .info .price {
      position: relative;
      top: 0;
      right: 0;
    }
    .carousel-inner .item .card .info .property-status-badge {
      display: inline-block;
    }

/* Filters Mobile */

      .has-filters {
        position: fixed!important;
      }
      .has-filters .filters-container {
        display: flex;
      }
      .filters-container {
        position: fixed;
        z-index: 10;
        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: 0;
        font-size: 18px;
        color: #000;
        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: auto;
        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;
      }
      .filter.panel {
        border: 0;
        margin: 0;
      }
      .sidebar-wrapper a:hover, .sidebar-wrapper a:active, .sidebar-wrapper .filter-fields a, .sidebar-wrapper .filter-fields span {
        color: #000;
      }
      .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) {
    #body_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;
    }

  }
