/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1450px) {
  .map-left h2 {
    margin-bottom: 20px;
  }

  .map-left {
    padding-top: 30px;
  }
}

@media only screen and (max-width: 1300px) {
  .map-list li {
    margin: 11px 0;
  }
}

@media only screen and (max-width: 1199px) {

  h1,
  h2 {
    font-size: 50px;
  }

  .h-left .logo a {
    width: 95px;
    height: 95px;
  }

  .h-left .logo a img {
    max-width: 85%;
    height: auto;
  }

  .bm-wrap {
    width: 95px;
    height: 95px;
    padding: 0 18px;
  }

  .ss-tagline img {
    max-width: 350px;
    height: auto;
  }

  .ss-tagline .theme-btn {
    margin-top: 32px;
  }

  .theme-btn {
    padding: 21px 53px;
  }

  .fp-left {
    padding-left: 38px;
  }

  .fp-details-slider {
    margin-top: 32px;
    padding-right: 0;
  }

  .fp-details {
    margin-bottom: 36px;
  }

  .fp-price,
  .fp-add,
  .fp-details {
    margin-left: 15px;
  }

  .team-outer::before {
    height: 295px;
  }

  .team-hvr {
    font-size: 10px;
  }

  .team-name {
    font-size: 19px;
  }

  .map-list a {
    font-size: 12px;
  }

  .cta-title::before {
    background-size: 80%;
  }

  .footer-bg {
    height: 50%;
  }

  #ai-modern-about #breadcrumbs {
    max-width: 1075px;
  }
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {
  /* The following are used on inner pages. Please edit carefully. */

  html {
    overflow-y: auto !important;
  }

  .inner {
    width: 100%;
  }

  #content-sidebar,
  #content-full {
    width: 100%;
  }

  .outer {
    width: 100%;
    min-width: 100%;
  }

  #content-sidebar #content {
    width: 100%;
  }

  header.header,
  .fp-inner:before,
  .map-right {
    display: none;
  }

  div#main-wrapper {
    margin-top: 52px;
  }

  .ss-tagline img {
    max-width: 200px;
  }

  .theme-btn {
    font-size: 12px;
    padding: 15px 45px;
  }

  #qs {
    padding: 80px 0;
    text-align: center;
  }

  #qs form {
    flex-direction: column;
    max-width: 400px;
    margin: 27px auto 0;
  }

  .qs-item.qs-lg,
  .qs-item.qs-md,
  .qs-item {
    width: 100%;
    margin-bottom: 5px;
    padding-right: 0;
  }

  .qs-btn {
    padding-left: 0;
    width: 100%;
  }

  .qs-footer {
    text-align: center;
  }

  #feature-properties {
    padding: 150px 0 95px;
  }

  .fp-inner {
    padding: 15px;
    flex-direction: column-reverse;
  }

  .fp-right {
    width: 100%;
    transform: translate(0);
    max-width: 600px;
  }

  .fp-left {
    padding-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }

  .fp-price,
  .fp-add,
  .fp-details {
    margin-left: 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: center;
  }

  .cta {
    width: 100%;
    padding: 1px;
    max-width: 500px;
  }

  #about {
    padding-top: 95px;
    text-align: center;
  }

  #about h2.section-title {
    margin-bottom: 30px;
  }

  .per-num .num {
    font-size: 40px;
  }

  .per-label {
    font-size: 12px;
  }

  #map {
    padding: 50px 0;
  }

  .map-left {
    position: relative;
    padding-left: 0;
    width: 100%;
    padding: 0 15px;
    text-align: center;
  }

  .map-list ul {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
  }

  .ig-link,
  #latest-news {
    text-align: center;
  }

  .ig-gal {
    flex-flow: row wrap;
    max-width: 598px;
  }

  .ig-gal a {
    width: calc(50% - 9px);
    margin: 9px 0;
  }

  #latest-news a {
    margin: 20px 0;
  }

  .copyright {
    line-height: 1.9;
  }

  .footer-bg {
    height: 500px;
  }

  ul.ai-minimalist-contact-details {
    margin-left: 20px !important;
  }

  .listings-hero:not(:has(.listings-slideshow-no-image))::after {
    display: none;
  }

  #ai-modern-about #breadcrumbs {
    padding: 0 15px;
  }

  .category-blog #content .archive-more {
    text-align: center;
    display: block;
  }

}

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */
@media only screen and (max-width: 767px) {
  .ip-banner .container {
    width: 100%;
  }

  .aiosp-wrap .aiosp-container .aios-popup-body {
    max-width: 100%;
    width: 97%;
  }

  .ss-tagline {
    align-items: center;
    padding: 0 15px;
  }

  .cta a:hover .cta-title:before {
    transform: scale(0.7);
  }

  .num-wrap {
    width: 50%;
  }

  .per-num {
    flex-flow: row wrap;
  }

  .num-wrap:not(:last-of-type) {
    border-right: none;
  }
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {
  .ppf-row {
    flex-direction: column;
  }

  .ppf-col {
    width: 100%;
  }

  .ppf-textarea input[type="submit"] {
    position: relative;
    bottom: 0;
    margin-top: 10px;
  }

  .ss-tagline {
    padding: 30px 15px;
    position: relative;
  }

  h1,
  h2 {
    font-size: 40px;
  }

  .fp-right>button,
  .testi-slider-wrap button {
    display: none !important;
  }

  .cta-title {
    font-size: 29px;
  }

  .testi-slider,
  .num-wrap {
    width: 100%;
  }

  .ig-title a {
    font-size: 14px;
  }

  .ig-link a i {
    font-size: 22px;
    height: 50px;
    width: 50px;
    margin-right: 15px;
  }

  .ig-link a {
    font-size: 12px;
  }

  .ig-btn {
    margin-top: 45px;
    flex-direction: column;
  }

  .ig-btn .theme-btn {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .git-row,
  .footer-contact-info {
    flex-direction: column;
  }

  .git-row .input-holder {
    width: 100%;
  }

  .footer-contact-info.contact-info>a:first-of-type {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .footer-contact-info.contact-info>div>a {
    width: 100%;
    margin: auto;
    display: block;
    line-height: 1.5em;
  }

  .footer-bg {
    height: 300px;
  }
}

@media only screen and (max-width: 400px) {

  #agents-results .agents-name {
    font-size: 29px !important;
  }

  #agents-results .agents-name span {
    font-size: 21px !important;
  }

  #agents-results .agents-contact li {
    font-size: 12px !important;
}
}