/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
@media only screen and (max-width: 1540px) {
  .welcome_photo::before {
    left: -30px;
  }
}

@media only screen and (max-width: 1440px) {
  .welcome_photo {
    margin-left: 25px;
  }
}

@media only screen and (max-width: 1366px) {
  .fixed_navigation {
    width: 78%;
  }
  #nav li,
  #nav li a {
    padding: 0 5px;
  }
  .hp_reviews {
    padding-left: 3.625%;
  }
}

@media only screen and (max-width: 1280px) {
  .header_logo {
    max-width: 240px;
  }
  #nav li a {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .hp_blog_bg {
    width: 98%;
  }
  .hp_blog {
    padding: 0 40px;
  }
  .blog_title {
    font-size: 18px;
  }
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {
  .header_logo {
    max-width: 180px;
  }
  .fixed_navigation {
    width: 73%;
  }
  #nav li a,
  #fixed_nav li a {
    padding: 0;
    font-size: 11px;
  }
  #hp_slideshow_wrap {
    padding: 15px;
  }
  .qs_title h2 {
    font-size: 18px;
  }
  .qs_field input,
  .qs_field select {
    padding: 0 5px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .bottom_cta_title span {
    font-size: 32px;
  }

  .welcome_right {
    padding-bottom: 60px;
  }

  .hp_reviews {
    padding-left: 1.625%;
  }
  .reviews_left {
    padding: 40px 40px 40px 80px;
  }

  .blog_text_wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
  .blog_title {
    font-size: 16px;
  }

  .footernav li a {
    font-size: 11px;
  }

  .newsletter_form div.wpcf7-response-output {
    font-size: 8px;
  }
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {
  #header_wrap {
    position: relative;
    z-index: 1;
    margin-top: 52px;
    padding: 20px 0;
    background-color: #dfdfdf;
  }
  .mobile_logo {
    font-size: 0;
  }
  .mobile_logo img {
      max-width: 90%;
      /* filter: brightness(0) invert(1); */
  }
  #hp_slideshow_wrap {
    padding: 0;
  }
  .hp_slideshow::after {
    display: none;
  }
  #hp_top_cta_wrap {
    padding: 30px 0;
    position: relative;
    bottom: auto;
    background-color: #dfdfdf;
  }
  .hp_top_cta li a {
    max-width: 360px;
    margin: 20px auto;
  }

  #hp_qs_wrap::before {
    display: none;
  }
  .hp_qs > div {
    display: block;
  }
  .qs_title {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  .qs_form {
    width: 100%;
    text-align: center;
  }
  .qs_form > form {
    width: 100%;
    max-width: 360px;
    display: block;
    margin: 0 auto;
  }
  .qs_field {
    margin: 0 0 5px 0;
  }
  .qs_long {
    width: 100%;
  }
  .qs_short,
  .qs_medium,
  .qs_submit,
  .qs_advanced {
    width: calc(50% - 5px);
    display: inline-block;
    vertical-align: top;
  }
  .qs_margin,
  .qs_advanced {
    margin-left: 10px;
  }
  .qs_submit {
    margin: 0;
  }
  .qs_advanced a i {
    line-height: 43px;
  }

  .welcome_photo canvas {
    height: auto;
  }

  #hp_bottom_cta_wrap {
    padding: 40px 0;
  }
  .hp_bottom_cta li {
    width: 100%;
    max-width: 446px;
    display: block;
    margin: 20px auto;
  }

  #hp_welcome_wrap {
    padding-bottom: 50px;
    text-align: center;
  }
  .welcome_left,
  .welcome_right {
    width: 100%;
  }
  .welcome_photo {
    margin: 0 auto;
  }
  .welcome_photo::before {
    display: none;
  }
  .welcome_right {
    padding: 50px 15px;
  }

  #hp_reviews_wrap {
    padding: 50px 0;
    text-align: center;
  }
  .hp_reviews {
    padding: 0 15px;
  }
  .reviews_left {
    width: 100%;
    margin: 0 auto 50px;
    padding: 40px 15px;
  }
  .reviews_left::before {
    display: none;
  }
  .reviews_right {
    width: 100%;
    position: relative;
    text-align: center;
  }
  .reviews_buttons_wrap {
    display: block;
  }
  .reviews_arrows {
    margin: 30px auto 0;
  }

  #hp_featlist_wrap {
    padding: 0 0 50px;
  }
  #featlist_slider {
    margin: 0 auto;
  }
  .featlist_item a {
    max-width: 525px;
    margin: 0 auto;
  }

  #hp_blog_wrap {
    padding: 50px 0 30px;
  }
  .hp_blog_bg::after {
    display: none;
  }
  .hp_blog {
    padding: 0 15px;
  }
  .blog_top_wrap {
    display: block;
    text-align: center;
  }
  .blog_item {
    margin-bottom: 50px;
  }
  .blog_title {
    width: 100%;
    margin-bottom: 30px;
    line-height: 1.1;
  }
  .blog_text_wrap {
    max-width: 555px;
    margin: 0 auto;
    text-align: center;
  }

  #hp_contact_form_wrap {
    padding: 50px 0;
  }

  .footer_top_wrap,
  .footer_signup_wrap,
  .footer_signup {
    text-align: center;
  }
  .footer_navigation {
    margin: 30px 0;
  }

  /* The following are used on inner pages. Please edit carefully. */

  .inner {
    width: 100%;
  }
  #content-sidebar,
  #content-full {
    width: 100%;
  }
  .outer {
    width: 100%;
    min-width: 100%;
  }
  #content-sidebar #content {
    width: 100%;
  }

  /* COMMUNITIES MODULE */
  #ip-communities a.fc {
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
  }

  /* BLOG MODULE */
  #content .archive-list > article {
    width: 100%;
  }

  #content
    .archive-list
    .article-long
    .archive-has-thumbnail
    .archive-subtitle {
    margin: 0.75em 0;
    font-size: 24px;
  }

  #content .archive-list .article-long p {
    font-size: 17px;
  }

  #content .archive-list .article-long .archive-thumbnail,
  #content .archive-list .article-long .archive-has-thumbnail {
    width: 100%;
    margin-left: 0;
  }

  /* AGENTS TEMPLATE */
  #agents-results .agents-img img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
  }

  /* CONTACT PAGE */
  .page-id-29 #content .entry .row {
    text-align: center;
  }
  .page-id-29 #content .entry iframe {
    margin-top: 20px;
  }

  #ihf-main-container #ihf-refine-map-search-form .checkbox {
    margin-left: 0;
  }

  #aios-testimonials .aios-testimonials {
    margin: 0 auto !important;
  }

  .page-id-0 #inner-page-wrapper, .page-id-0.ip-container #main-wrapper {
    z-index: initial;
  }
}

@media only screen and (max-width: 768px) {
  #ihf-main-container .checkbox label:not(.ihf-area-inclusion-label),
  #ihf-main-container .radio label {
    display: flex !important;
    align-items: center;
    padding-left: 0 !important;
  }
}

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */
@media only screen and (max-width: 767px) {
  .custom_site_title h2,
  .custom_site_title h1 {
    font-size: 55px;
  }

  .ip-banner .container {
    width: 100%;
  }
  .services-item span {
    display: block;
    margin: 0 auto 10px;
  }
  .services-item-title {
    width: 100%;
    text-align: center;
  }
  .ihf-advanced-property-search #ihf-house-condo-search-fields + .row,
  .ihf-advanced-property-search #ihf-advsearch-features,
  .ihf-advanced-property-search #ihf-house-condo-search-fields + .row + .row {
      margin-left: 0;
      margin-right: 0;
      padding: 0 15px;
  }

  #ihf-main-container .ihf-advanced-property-search .row[data-ihf-geographic-field="true"],
  #ihf-main-container .ihf-advanced-property-search .row[data-ihf-geographic-field="false"]{
    padding: 0 0;
  }
  #ihf-main-container #ihf-refine-map-search-form .checkbox{
    margin-left: 0;
  }
  .post-page-testimonials #aios-testimonials.aios-testimonials-page h1{
    font-size: 39px;
  }
  #inner-page-wrapper .ai-testimonials-pagination ul li {
      padding: 0 18px;
  }

  .btn-link.ihf-advanced-search-launch {
    white-space: normal;
  }
  #ihf-main-container .btn-lg#ihf-main-search-form-submit {
    font-size: 16px;
  }
  #ihf-main-container .checkbox, #ihf-main-container .radio {
    margin-left: 20px;
  }
  .ihf-grid-result-attribution > p {
    font-size: 10px !important;
  }
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {

  .custom_site_title h2,
  .custom_site_title h1 {
    font-size: 45px;
  }
  #content .entry-title,
  #content .archive-title {
    font-size: 40px;
  }

  .featlist_buttons_wrap .slick-arrow.featlist_prev {
    left: 5px;
  }
  .featlist_buttons_wrap .slick-arrow.featlist_next {
    right: 5px;
  }
  .featlist_more_button {
    width: 175px;
  }
  .featlist_more_button a {
    font-size: 10px;
    letter-spacing: 0;
  }

  .footernav {
    column-count: 1;
  }

  .ihf-grid-result-address-container {
    padding-right: 0 !important;
  }

  .ihf-grid-result-address-container a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
  }
  .aios-cu-inner .aios-cu-left .aios-cu-main .aios-cu-smi a {
    margin: 0 10px;
  }
}
