/* Exclude phones and tablets */

  @media (min-width: 992px) {
    .sort-by form {
      display: inline-block;
    }
    .vertical-center {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      -webkit-transform: translateY(-50%);
      -ms-transform:translateY(-50%);
    }
    .affix {
      width: 360px;
      position: fixed!important;
      padding-top: 20px;
    }
    .affix-top {
      position: absolute;
    }
    .affix-bottom {
      width: 360px;
      position: absolute;
      top: auto;
    }
    .thumbnail {
      min-height: 313px;
    }
    .property-info > div h4, .property-info > div ul, .property-info > div > div {
      float: left;
    }
    .property-info .summary-title {
      width: 25%;
    }
    .property-info > div ul, .property-info > div > div {
      width: 75%;
    }
    #main_menu .collapse {
      padding: 0;
    }
    .agents .media-body {
      padding-left: 10px;
    }
  }

/* Medium devices */

  @media (min-width: 992px) and (max-width: 1199px) {
    .affix, .affix-bottom {
      width: 293px;
    }
    #video {
      width: 625px;
    }
    #property .property-4 {
      display: none;
    }
    .thumbnail .caption h3 .listing-type-price {
      font-size: 16px;
    }
  }

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

    .map-container {
      padding-bottom: 20px;
    }
    #main_menu .navbar-nav>.active>a, #main_menu .navbar-nav>.active>a:hover, #main_menu .navbar-nav>.active>a:focus, #main_menu .nav>li>a:hover, .nav>li>a:focus, #main_menu ul li a {
      border-bottom: 0;
    }
    .navbar-nav > li > a {
      padding: 15px;
    }
    .container {
      width: 90%;
      min-width: 750px;
    }
    .thumbnail .title-image {
      height: 150px;
    }
    .thumbnail .title-image img {
      margin-top: -90px;
    }
    .thumbnail .title-image a img {
      margin-top: 80px;
    }
    .thumbnail {
      min-height: 238px;
    }
    .thumbnail .caption h3 .listing-type-price {
      font-size: 15px;
    }
    .thumbnail .price, .property-listing .price, .property-status-badge {
      font-size: 1.3em;
    }
    .property-listing .btn {
      display: none;
    }
    .property-listing .name {
      font-size: 1.1em;
    }
    .property-4 {
      display: none;
    }
    .welcome .col-sm-10 {
      width: 100%;
      margin: 0;
    }
    .welcome .user-content {
      font-size: 1.5em;
      padding: 30px;
    }
    .agents .col-sm-4 {
      width: 50%;
      margin-bottom: 20px;
    }
    .hero-search .container {
      padding: 0;
    }

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

/* Tablets and phones */

  @media (max-width: 991px) {

    #video iframe, #virtual_tour iframe {
      height: 300px;
    }
    #property .contact {
      margin-top: 15px;
    }
    .affix-elements {
      width: 100%!important;
      position: relative;
    }
    .hero-search form {
      width: 100%;
      margin: 0;
    }
    .map-container .location {
      margin: 0 15px 0 0;
    }
    #contact_form .eb {
      width: 100%;
    }
    .aside, .box, #contact_form_wrapper {
      padding: 20px;
    }
    .filters-container .drop-custom-content {
      height: auto;
      overflow: auto;
    }
    .sort-by-container {
      padding-bottom: 25px;
    }
  }

/* Phones */

  @media (max-width: 767px) {


    .container>.navbar-header, .container-fluid>.navbar-header, .container>.navbar-collapse, .container-fluid>.navbar-collapse {
      margin: 0;
    }
    .thumbnail, .property-info, .agent-info, #contact_form_wrapper h4, .map-container .location {
      text-align: left;
    }
    .errorExplanation {
      text-align: left;
    }
    #property .no-media {
      background-image: url(../images/no-media-sm.png);
    }

    .navbar-header {
      display: grid;
      grid-template-columns: 50px 1fr;
      padding-right: 50px;
      justify-content: center;
      align-items: center;
    }

    .navbar-header::before {
      display: none;
    }

    #main_menu .navbar-brand img {
      align-self: center;
      width: 100%;
      max-width: 250px;
      max-height: 100px;
      object-position: center top;
      object-fit: contain;
      vertical-align: unset;
      margin: 0 auto;
    }

    #main_menu .navbar-brand p {
      margin: 0;
    }

    #main_menu .navbar-brand {
      color: #fff;
      text-align: center;
      word-break: break-word;
    }

    #main_menu .navbar-brand .user-content,
    #main_menu .navbar-brand .user-content span,
    #main_menu .navbar-brand .user-content p,
    #main_menu .navbar-brand .user-content h1,
    #main_menu .navbar-brand .user-content h2,
    #main_menu .navbar-brand .user-content a {
      font-size: 1.8rem;
      line-height: 1.2;
    }

    #main_menu .navbar-toggle {
      position: relative;
      width: 100%;
      height: 50px;
      padding: 0;
      margin: 0;
    }

    #main_menu .navbar-toggle .icon-bar {
      margin-left: auto;
      margin-right: auto;
    }

    #main_menu .navbar-collapse {
      text-align: center;
    }

    /* General Styles */
    .filter-action .input-button {
      width: 100%;
    }
    .mg_contact-form td {
      display: block;
      width: 100%;
      text-align: left;
    }
    .mg_contact-form label, .mg_contact-form .form-control {
      margin-bottom: 10px;
    }
    .pre-footer .row > div {
      margin-bottom: 20px;
    }
    #main_features ul li {
      width: 50%;
    }

    /* Main Menu */

      #main_menu .navbar-collapse {
        background-color: #292929;
      }
      .top-head {
        display: none;
      }
      .navbar-brand {
        width: auto;
        height: auto;
      }
      .navbar-brand img {
        width: auto;
        height: auto;
        max-width: 95%;
        max-height: 200px;
        display: block;
      }
      .navbar-toggle {
        border: 0;
        margin: 0;
        position: absolute;
        left: 0;
        padding: 1.5rem;
      }
      .navbar-toggle:hover {
        background: none;
      }
      #main_menu {
        border-radius: 0;
      }
      #main_menu .navbar-nav a, #main_menu .nav>li>a:hover {
        border-bottom: 0!important;
        padding: 15px 0 5px;
        color: #fff;
        font-weight: 400;
      }
      #main_menu .dropdown-menu {
        display: block;
        position: relative;
        width: 100%;
        background: none;
        border: 0;
        box-shadow: none;
        margin: 10px 0 20px;
        border-top: 1px solid rgba(0,0,0,.1);
        border-bottom: 1px solid rgba(0,0,0,.1);
      }
      #main_menu .dropdown-menu li a {
        text-align: center;
        font-size: 1em;
        white-space: normal;
      }
      #main_menu .dropdown-menu li a:hover {
        color: #fff;
      }
      .navbar-toggle .icon-bar {
        height: 3px;
      }
      .code-search-form {
        position: relative;
        margin: 15px;
      }
      .code-search-form input.input-button {
        margin-top: 2px;
      }
      .hero-search {
        position: relative;
      }
      .hero-search .custom-select {
        margin-bottom: 10px;
      }
      .hero-search form select.operation, .hero-search form select.listing-type, .hero-search input {
        width: 100%;
        margin-bottom: 5px;
      }
      .hero-search #new_search {
        display: block;
      }
      .hero-search #new_search .btn {
        border-radius: 6px;
      }

    /* Homepage */

      .home #hero {
        position: relative;
      }
      #hero {
        padding: 0;
      }
      #hero #header .container {
        padding: 0;
      }
      #hero .user-content h1 {
        font-size: 36px;
        position: relative;
        margin: 0;
      }
      .hero-search {
        margin-top: -220px;
      }
      .hero-search .custom-select, .hero-search .btn {
        width: 100%;
        border-radius: 0;
        border-top: 0;
      }
      .welcome .user-content {
        padding: 0;
        border: 0;
        font-size: 1.5em;
        margin: 60px 30px;
      }

      #property_search .aside .panel-heading {
        padding: 0;
      }
      #property_search .aside .panel-heading a {
        display: block;
        padding: 15px;
        font-weight: 400;
      }
      #property_search .aside .panel-heading a:hover {
        text-decoration: none;
      }
      #property_search .aside .panel-group {
        margin-bottom: 0;
      }
      .property-listing .btn {
        display: none;
      }
      #mg_property_listings .property-listing .photo-container {
        width: 100%;
        float: none;
        margin: 0 0 15px;
        position: relative;
      }
      #mg_property_listings .property-listing .photo img {
        width: 100%;
        max-height: 400px;
      }
      #mg_property_listings .property-listing .description {
        width: 100%;
        padding: 20px 15px 20px;
        text-align: left;
      }
      .property-listing .price, .property-listing .property-status-badge {
        left: 15px;
      }
      .property-listing .name a {
        font-size: 15px;
        color: #292929;
        line-height: 17px;
      }
      #property_search .aside {
        padding: 0;
      }
      .sort-by, .applied-filters {
        float: none;
        text-align: left;
        overflow: hidden;
      }
      #content .mg_filter-bar {
        padding: 0;
      }
      #mg_property_listings .box {
        padding: 0;
      }

      /* Show page */

      .section-head h1 {
        font-size: 1.5em;
      }
      #property .location {
        margin-top: 15px;
        font-size: 1em;
      }
      #property .no-media {
        height: 270px;
      }
      .galleria-container, #map, .map-container {
        width: 100%!important;
      }
      #prices .property-status-badge {
        text-align: center;
        float: none;
      }
      .agent-container {
        margin-top: 20px;
      }
      .agents .user {
        margin-bottom: 40px;
      }
      .agents .media-left {
        display: block;
      }
      .agents hr {
        display: none;
      }
      #gallery .rsImg {
        margin-left: 0!important;
      }
      .section-head {
        padding-top: 50px;
        padding-bottom: 10px;
      }

      /* Filters Mobile */

      .has-filters {
        overflow: hidden;
        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: 2rem;
      }
      .filters-container .separator h3 {
        flex: 1;
        margin-bottom: 0;
        font-size: 18px;
      }
      .filters-container .separator .close-filters {
        padding: 0 1rem;
        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;
      }
      .filters-container .drop-custom-content {
        height: 100%;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
      }
      .btn-contact {
        display: block;
        width: 300px;
        margin: 0 auto;
      }
  }
  @media (min-width: 767px) {
    .btn-contact {
      display: none;
    }
  }

  @media (min-width: 576px) and (max-width: 767px) {
    .btn-contact {
      position: relative !important;
    }
  }

  @media (max-width: 576px) {
    .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: 0;
    }
  }


.filter.location.panel {
  position: relative;
}
