/* Small Desktop */

  @media (max-width: 1200px) {
    #slideshow_container {
      width: 698px;
    }
    .property-image-slideshow {
      width: 618px;
    }
  }

/* Exlude phones and tablets */

  @media (min-width: 991px) and (max-width: 1199px) {
    .sidebar-wrapper .menu .navbar-collapse {
      max-height: inherit;
    }
    #map, .map-container, #video iframe, #virtual_tour iframe {
      width: 600px;
      height: 430px;
      border: 0;
    }
  }

/* Exlude phones */
  @media (min-width: 768px) {
    #main_menu li {
      padding: 60px 10px 20px 10px;
    }
    #main_menu li a {
      padding: 0;
    }
    .loder-results-container {
      padding: 0 31px;
    }
  }

/* Tablets */

  @media (min-width: 768px) and (max-width: 991px) {
    #slideshow_container, .property-image-slideshow {
      width: 468px;
    }
    #main_menu ul, #header #logo {
      float: left;
    }
    #map, .map-container, #video iframe, #virtual_tour iframe {
      height: 350px;
    }
    #overview .name {
      width: 65%;
    }
  }
/* Tablets & Mobile*/

  @media (max-width: 991px) {

    .tab-pane iframe {
      min-height: 250px;
    }

    .code-search-form {
      margin-bottom: 1rem;
    }
    .navbar-brand {
      width: auto;
      height: auto;
      margin-left: 5rem;
    }
    .navbar-brand img {
      width: auto;
      height: auto;
      max-width: 95%;
      max-height: 200px;
      display: block;
    }

    .properties-header .sort-by-container {
      width: 100%;
    }

    .properties-header .sort-by .custom-select {
      min-height: unset;
    }

    .property-actions-mobile {
      margin-bottom: 1rem;
    }

    .property-actions-mobile .toggle-map,
    .property-actions-mobile .toggle-filters {
      border-radius: 0;
    }

    #content .mg_filter-bar {
      background-color: unset;
      border: 0;
    }

    #main_menu {
      background-color: #252525;
      z-index: 1;
      position: relative;
    }

    #content {
      border: 0;
    }
  }

/* Phones */

  @media (max-width: 767px) {
    #slideshow_container, .property-image-slideshow {
      width: 368px;
    }
    #main_menu li a {
      font-size: 15px;
    }

    #main_menu .navbar-header {
      width: 100%;
      display: grid;
      grid-template-columns: 50px 1fr 50px;
      justify-content: center;
      align-items: center;
      margin: 0;
      white-space: normal;
      word-break: break-word;
      min-height: 70px;
    }

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

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

    #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-toggle {
      position: relative;
      width: 100%;
      height: 50px;
      padding: 0;
      margin: 0;
    }

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

    #slideshow_container {
      height: 300px;
    }
    .property-image-slideshow {
      height: 240px;
    }
    #main_content, #property_search {
      text-align: center;
    }
    .navbar-nav {
      margin-top: 0;
    }
    .navbar-toggle {
      border: 0;
      position: absolute;
      left: 0;
      padding: 1.5rem;
      margin: 0;
    }
    .navbar-default .navbar-toggle .icon-bar {
      height: 3px;
    }
    #main_menu ul {
      float: none;
      text-transform: none;
    }
    #main_menu .dropdown-menu, #main_menu .dropdown:hover .dropdown-menu {
      display: block;
      float: none;
      position: relative;
      background: none;
      border-radius: 0;
      border: 0;
      box-shadow: none;
      top: 0;
      padding: 0;
      margin: 0;
    }
    #main_menu .dropdown-menu li {
      background: none!important;
      color: var(--white-color);
    }
    #main_menu .dropdown-menu li {
      padding-left: 10px;
    }
    #footer {
      display: none;
    }
    #main {
      padding-bottom: 20px;
    }
    .sidebar-wrapper {
      margin-bottom: 20px;
    }
    .property-listing .photo {
      float: none;
    }
    .property-listing .description {
      margin-left: 0;
      text-align: center;
      margin-top: 15px;
    }
    .sort-by {
      float: none;
      margin: 10px 0;
      display: block;
    }
    .sort-by span {
      float: none;
      margin-right: 0;
    }
    .sort-by form {
      width: auto;
      float: none;
      margin: 5px 0;
    }
    #mg_properties .pagination, .header-pagination {
      text-align: center;
      width: 100%;
      float: none;
      display: inline-block;
    }
    .menu ul {
      float: none;
    }
    #content .property-listing .property-photo, #content .property-listing .property-description .property-price h4 {
      float: none;
    }
    #content .property-listing .property-photo a {
      width: 100%;
    }
    #content .property-listing .property-description {
      margin: 0;
    }
    #content .property-listing .view-details {
      margin: 10px 0 0 0;
    }
    .code-search-form {
      position: relative;
    }
    .code-search-form #menu_search_code, #content .property-listing .property-description .property-price {
      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 3px 3px 0;
      font-weight: bold;
      border: 0;
      color: #222;
    }
    #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;
    }
    #description, #summary, #amenities, #files, #contact_form_wrapper, #financing-options {
      text-align: left;
    }
    #content .property-listing .property-photo {
      width: 100%;
    }
    #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 7px;
      display: block;
    }
    .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;
    }
    #mg_property_show .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 */
      .mg_filter-bar {
        padding: 0;
      }

      .filter h4 {
        text-align: left;
      }

      .filter-link {
        padding: .7rem;
        font-size: 17px;
      }
      #content .mg_filter-bar .filters-container a {
        color: #000;
      }
      .btn-contact {
        display: block;
        width: 300px;
        margin: 0 auto;
      }

      .input-button {
        width: 100%!important;
      }
  }

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

  @media (max-width: 576px) {
    #summary {
      margin-bottom: 50px;
    }
    footer#body_footer {
      padding: 3rem 0 5rem 0;
    }
    .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: .66rem;
    }

  }
