@media (min-width: 992px) and (max-width: 1199px) {
  html, body {
    font-size: 16.5px;
  }

  .form-control {
    font-size: .9rem;
  }

  .container {
      max-width: none;
      width: 98%;
  }

  #property .section-head {
    padding: 1rem;
  }

  #property .section-head .price-type,
  #property .section-head .price-type .listing-type-price,
  #property .section-head .price-type .listing-type {
    display: block;
  }

  #property .section-head .price-type {
    margin-bottom: .66rem;
  }
}

@media (max-width: 1199px) {

  #property .section-head .price-type,
  #property .section-head .price-type .listing-type-price,
  #property .section-head .price-type .listing-type {
    display: block;
  }

  #property .section-head .price-type {
    margin-bottom: .66rem;
  }

  .header-search button {
    padding: .66rem;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .agents .col-sm-4 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}


@media (min-width: 576px) and (max-width: 768px) {
  .form-horizontal .form-group > div {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* Exclude phones and Tablets */

@media (min-width: 992px) {

  #hero {
    display: flex;
  }

  #hero .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
  }

  #property .property-description {
    min-height: 680px;
  }
  .col-sm-offset-4 {
      margin-left: 33.333333%;
  }
  .hero-search {
    padding: 2rem !important;
  }
  #main_menu.navbar .nav-item .dropdown-menu {
    padding: 0;
    box-shadow: 0 5px 30px rgba(0,0,0, .3);
    border-radius: 0;
    border: 0;
  }
  #main_menu.navbar .nav-item .dropdown-menu a {
    padding: 1rem 1.33rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: block;
  }

  #gallery .royal-image-slideshow:not(.rsFullscreen) {
    height: 80vh!important;
  }

  #summary, #description, .amenities, #files, #financing-options {
    display: flex;
    padding-right: 1rem;
  }

  .summary-title {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
    padding-right: 1.5rem;
    padding-top: .1rem;
  }

  .map-container .location {
    position: absolute;
    margin: 0 auto;
    right: 0;
    left: 0;
    bottom: 7px;
    width: 50%;
  }

  .welcome .col-md-8 {
    margin-left: -10%;
  }

  .welcome .col-md-8 .bg-white {
    padding-left: 15%;
  }

  .form-group {
    display: flex;
    align-items: center;
  }

}

/* Mobile and Tablets */

@media (max-width: 991px) {

  /* Header */

  #property .no-media {
    height: 250px;
  }

  .form-horizontal .control-label {
    display: block;
    text-align: left;
  }

  .header .container {
    padding: 0;
  }

  .header .navbar-toggler {
    padding-right: 1rem;
  }

  .navbar-brand .user-content {
    white-space: normal;
  }

  .code-search-form {
    padding: 1rem;
  }

  .code-search-form .input-group-btn {
    display: none;
  }

  .code-search-form input {
    border-radius: 4px !important;
  }

  .header .phone-mobile {
    border-top: 1px solid rgba(0,0,0,.05);
    padding: 1rem;
    text-align: center;
  }

  .header .phone-mobile h3 {
    font-size: 1.25rem;
  }

  .header .phone-mobile h3, .header .phone-mobile .social-links {
    margin-bottom: 0;
  }

  .social-links {
    margin-top: .75rem;
    justify-content: center;
  }

  #main_menu {
    min-height: 60px;
  }

  .section-head {
    padding: 1.5rem .33rem 1rem;
  }

  .properties-list .section-head {
    text-align: center;
    padding: 2rem 2rem 15rem;
  }

  .filters-container .filters-title {
    padding: 0;
  }

  .header > .container {
    padding: 0;
    max-width: 100%;
  }

  #main_menu .navbar-header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 60px;
    padding-left: 60px;
    justify-content: center;
    align-items: center;
  }

  #main_menu .navbar-brand {
    width: 100%;
    max-width: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 15px 5px;
    word-break: break-word;
  }

  #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;
  }

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

  #main_menu .navbar-toggler {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    outline: none;
  }

  /* Hero */

  .hero-search h1 {
    font-size: 2.3rem;
  }

  /* Footer */

  .pre-footer .row > div:not(.last-child) {
    margin-bottom: 1rem;
  }

  .body-footer, .body-footer .text-right {
    text-align: center!important;
  }

  /* Filters Mobile */

  #main_menu.navbar .nav-link {
    border-left: 5px solid transparent;
    border-bottom: 0;

  }

  #main_menu.navbar .nav-item.active .nav-link {
    border-left: 5px solid  var(--color-button_background, var(--primary-color));
    border-bottom: 0;
  }

  #content .mg_filter-bar .filters-container h4 {
    font-size: 16px;
  }

  #content .mg_filter-bar h3 {
    width: 100%;
  }

  #content .mg_filter-bar h3 {
    color: #000!important;
  }

  .mg_filter-bar {
    padding: 0;
  }
  .filter-mobile-content {
    text-align: left;
  }
  .filter-link {
    padding: .7rem 0;
    font-size: 17px;
  }
  #content .mg_filter-bar .filters-container a {
    color: #000;
  }

  #main_features ul li {
    flex: 0 0 50%;
    max-width: 50%;
    padding-inline: 1rem;
  }


  #main_features ul li:nth-of-type(odd)  { border-right: 0 }

  #main_features ul li:nth-child(4),
  #main_features ul li:nth-child(8) {
    border-right: 1px solid rgba(92, 92, 93, .3);
  }

  .map-container iframe {
    height: 400px;
  }

  .map-container .container {
    padding: 0;
  }

  .form-group > div, .form-group > label {
    padding: 0;
  }

  #video iframe, #virtual_tour iframe {
    height: 250px;
  }

  #virtual_tour {
    text-align: center;
  }

  .fixed-bottom .btn-primary {
    border-radius: 0;
  }

  .aside {
    padding-inline: 1rem;
    margin-bottom: 1rem;
  }

  .aside .card {
    background-color: unset;
    box-shadow: unset;
  }

  #main_menu .dropdown-menu {
    margin: 0;
    display: block;
    width: 100%;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 10px;
    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: initial;
  }
  #main_menu .dropdown-menu li a:hover {
    color: #fff;
  }

  #main_menu.navbar li a {
    padding: 1rem!important;
    display: block;
    text-align: left;
  }

  .form-inline .input-group {
    width: 100%;
  }

  .btn-contact {
    width: 300px;
  }
}

/* Mobile */

  @media (max-width: 767px) {

    #gallery .royal-image-slideshow:not(.rsFullscreen) {
      height: 200px!important;
    }
    #property .section-head .title {
      font-size: 1.5rem;
      margin-bottom: .5rem;
    }
    .filters-container .drop-custom-content {
      height: 100%;
      overflow: scroll;
      -webkit-overflow-scrolling: touch;
    }
  }

  @media (min-width: 576px) and (max-width: 991.98px) {
    .btn-contact {
      position: relative !important;
      left: 50%;
      transform: translateX(-50%);
      margin: 0 0 3rem 0;
    }
  }

  @media (max-width: 576px) {
    .btn-contact {
      position: fixed;
      bottom: 10px;
      z-index: 999;
      left: 50%;
      transform: translateX(-50%);
    }
    .similar-properties {
      padding-bottom: 2rem;
    }
  }
