/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1400px) {

  /* navigation */
  #nav>li {
    margin-left: 1.10%;
  }

  #nav a {
    font-size: 12px;
  }

  header.hdr-main.scrolled #nav>li>.sub-menu {
    padding-top: 43px;
  }

  /* featured communities */
  .hp-fc .fc-content {
    top: 50%;
  }

  .hp-fc .fc-list-item {
    height: 35px;
    font-size: 15px;
  }

  .hp-fc .fc-title h2 {
    font-size: 35px;
  }

  .hp-fc .fc-title span {
    font-size: 13px;
    margin-bottom: 6px;
  }

  /* hp welcome */
  .hp-wc .wc-bg {
    width: calc((100vw - 1070px) / 2);
  }

  .hp-wc .wc-title {
    margin: 0 -30px 0 0;
    padding: 0 0 0 27px;
  }

  .hp-wc .wc-map-holder {
    margin: 30px -74px 0 -65px;
  }

  .hp-wc .wc-text {
    max-width: 475px;
  }

  .hp-wc .wc-text p {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 23px;
  }

  .hp-wc .wc-text strong {
    font-size: 25px;
  }
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {

  /* navigation */
  #nav a {
    font-size: 10px;
  }

  #nav>li {
    margin-left: 5px;
  }

  header.hdr-main.scrolled #nav>li>.sub-menu {
    padding-top: 34px;
  }

  /* main header */
  header.hdr-main .hdr-left {
    width: 165px;
  }

  header.hdr-main .hdr-logo img {
    max-height: 35px;
  }

  header.hdr-main .hdr-right {
    width: calc(100% - 165px);
  }

  header.hdr-main .cntct-item {
    margin-left: 39px;
  }

  header.hdr-main .cntct-item::before {
    right: -19px;
  }

  /* hp cta */
  .hp-cta .cta-item .cta-content {
    width: 235px;
  }

  /* hp testimonials */
  .hp-testi .testi-shell {
    -ms-grid-columns: 100px minmax(0, 1fr) 100px;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    grid-template-rows: auto 78px;
  }

  .hp-testi .testi-inner {
    padding: 70px 30px 95px;
  }

  .hp-testi .testi-slider-wrap {
    gap: 60px;
  }

  /* hp featured communities */
  .hp-fc .fc-title {
    margin-bottom: 15px;
  }

  .hp-fc .fc-title h2 {
    font-size: 29px;
    letter-spacing: 3px;
  }

  .hp-fc .fc-title span {
    font-size: 12px;
    margin-bottom: 3px;
  }

  /* hp social media */
  .hp-sm .fc-title h2 {
    font-size: 47px;
  }

  .hp-testi .testi-title h2 {
    font-size: 47px;
  }

  .hp-fc .fc-list-item {
    height: 30px;
    font-size: 13px;
  }

  /* hp welcome */
  .hp-wc .wc-bg {
    width: calc((100vw - 890px) / 2);
  }

  .hp-wc .wc-left-bg {
    left: calc((940px - 100vw) / 2);
  }

  .hp-wc .wc-title h1 {
    font-size: 47px;
  }

  .hp-wc .wc-right {
    padding: 15px 0 0 50px;
  }

  .hp-wc .wc-text {
    max-width: 420px;
  }

  .hp-wc .wc-text strong {
    font-size: 22px;
  }

  .hp-wc .wc-text p {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 20px;
  }
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {

  /* 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%;
  }

  /* Global */
  .mob-hide {
    display: none !important;
  }

  /* main header */
  header.hdr-main {
    position: relative;
    margin-top: 52px;
    padding: 30px 0;
    text-align: center;
    background-color: var(--color-primary);
  }

  header.hdr-main .hdr-left {
    width: 100%;
  }

  header.hdr-main .hdr-logo {
    max-width: unset;
  }

  header.hdr-main .hdr-logo a {
    justify-content: center;
  }

  header.hdr-main .hdr-logo img {
    max-height: 59px;
  }

  /* hp quick search */
  .hp-qs {
    position: relative;
    bottom: unset;
    background-color: var(--color-primary);
    padding: 30px 0;
  }

  .hp-qs .qs-inner {
    display: block;
  }

  .hp-qs .qs-col-right,
  .hp-qs .qs-col-left {
    width: 100%;
  }

  .hp-qs .qs-icon {
    text-align: center;
  }

  .hp-qs .qs-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .hp-qs .qs-form form::after {
    content: '';
    display: table;
    clear: both;
  }

  .hp-qs .qs-field {
    margin: 0 0 8px;
  }

  .hp-qs .qs-lg,
  .hp-qs .qs-md {
    width: 100%;
  }

  .hp-qs .qs-sm {
    width: calc(50% - 4px);
  }

  .hp-qs .qs-right {
    float: right;
  }

  .hp-qs .qs-btn {
    display: block;
    margin-top: 20px;
    width: 100%;
  }

  /* hp cta */
  .hp-cta .cta-inner {
    margin: 0;
  }

  .hp-cta .cta-item {
    width: 100%;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 360px;
    display: block;
  }

  .hp-cta .cta-item:last-child {
    margin-bottom: 0;
  }

  /* hp featured communities */
  .hp-fc .fc-content {
    position: relative;
    top: unset;
    left: unset;
    -webkit-transform: unset;
    transform: unset;
    max-width: unset;
  }

  .hp-fc .fc-title {
    text-align: center;
    margin-bottom: 50px;
  }

  .hp-fc .fc-title h2 {
    font-size: 45px;
    letter-spacing: 4.4px;
  }

  .hp-fc .fc-title span {
    font-size: 18px;
    margin-bottom: 9px;
  }

  .hp-fc .fc-list {
    margin: 0 auto;
  }

  .hp-fc .fc-list-item {
    text-align: center;
    height: 40px;
    font-size: 18px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .hp-fc .fc-list-item:hover::after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left;
    transform-origin: left;
  }

  /* hp welcome */
  .hp-wc .wc-row {
    display: block;
  }

  .hp-wc .wc-row::before {
    display: table;
    content: " ";
  }

  .hp-wc .wc-left {
    text-align: center;
  }

  .hp-wc .wc-title {
    margin: 0 auto;
    text-align: center;
    padding: 0;
  }

  .hp-wc .wc-title span {
    text-align: center;
  }

  .hp-wc .wc-title::after {
    height: 80px;
  }

  .hp-wc .wc-left-bg {
    left: 0;
    right: 0;
    width: 101vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .hp-wc .wc-map-holder {
    margin: 0 auto;
    max-width: 500px;
  }

  .hp-wc .wc-right {
    padding: 50px;
    text-align: center;
  }

  .hp-wc .wc-text {
    margin: 0 auto;
  }

  .hp-wc .wc-btn {
    margin: 40px auto 0;
  }

  /* hp social media */
  .hp-sm {
    padding: 90px 15px 80px;
  }

  .hp-sm-inner {
    max-width: 600px;
  }

  .hp-sm .sm-header {
    display: block;
    text-align: center;
  }

  .hp-sm .fc-title {
    text-align: center;
    margin-bottom: 25px;
  }

  .hp-sm .sm-btn {
    margin: 0 auto;
    max-width: 200px;
    min-width: 0;
    width: 200px;
    padding: 0;
    height: 55px;
  }

  .hp-sm .sm-item {
    width: calc((100% - 16px) / 2);
  }

  /* hp testimonials */
  .hp-testi .sb-testi {
    padding: 0;
  }

  .hp-testi .testi-shell {
    -ms-grid-columns: 15px minmax(0, 1fr) 15px;
    grid-template-columns: 15px minmax(0, 1fr) 15px;
    grid-template-rows: auto 78px;
  }

  .hp-testi .testi-side-left {
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1 / span 2;
  }

  .hp-testi .testi-side-right {
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1 / span 2;
  }

  .hp-testi .testi-side-bottom {
    display: block;
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;
    height: 78px;
  }

  .hp-testi .testi-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 15px 85px;
  }

  .hp-testi .testi-quote {
    font-size: 140px;
  }

  .hp-testi .testi-text,
  .hp-testi .testi-name {
    font-size: 16px;
  }

  .hp-testi .testi-arrow-desk,
  .hp-testi .testi-arrow-desk.slick-arrow {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  .hp-testi .testi-arrow-mob {
    display: block;
  }

  .hp-testi .testi-slider-wrap {
    gap: 0;
  }

  .hp-testi .testi-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 15px;
    margin-top: 0;
  }

  .hp-testi .testi-btn {
    margin: 0;
    width: 180px;
    max-width: 180px;
    min-width: 180px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
  }

  .hp-wc .wc-bg {
    width: 100%;
    position: relative;
    max-height: 200px;
    overflow: hidden;
  }

  /* custom ip title */
  .custom-ip-title span {
    padding: 0 45px;
  }
}

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

  /* hp contact form */
  .hp-cntct-form .cntct-form-wrap {
    margin: 53px auto 0;
  }

  .hp-cntct-form .cntct-field-sm {
    width: 100%;
  }

  .hp-cntct-form .bg-parallax canvas {
    min-height: 180px;
  }

  /* main footer */
  footer.ftr-main .cntct-item {
    display: block;
    margin: 0 auto 20px;
  }

  footer.ftr-main .cntct-item::before {
    display: none;
  }

  /* custom ip title */
  #content .entry-title,
  #content .archive-title {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .custom-ip-title span {
    padding: 0 25px;
  }

  #ui-datepicker-div {
    max-width: 224px;
    font-size: 15px;
    left: unset !important;
    right: 8%;
  }

  footer.ftr-main .ftr-logo img {
    max-height: 60px;
  }
}

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

  header.hdr-main .hdr-logo img {
    max-height: 35px;
  }

  /* hp featured communities */
  .hp-fc .fc-title h2 {
    font-size: 37px;
    letter-spacing: 2px;
  }

  /* hp social media */
  .hp-sm {
    padding: 70px 15px 60px;
  }

  .hp-sm-inner {
    max-width: 100%;
  }

  .hp-sm .fc-title h2 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .hp-sm .sm-item {
    width: 100%;
  }

  /* hp testimonials */
  .hp-testi .testi-inner {
    padding: 50px 15px 75px;
  }

  .hp-testi .testi-slider-wrap {
    gap: 0;
  }

  .hp-testi .testi-arrow {
    font-size: 34px;
  }

  .hp-testi .testi-quote {
    font-size: 110px;
    margin-bottom: 20px;
  }

  .hp-testi .testi-title {
    margin-bottom: 20px;
  }

  .hp-testi .testi-title h2 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  /* hp welcome */
  .hp-wc .wc-title::after {
    height: 45px;
  }

  .hp-wc .wc-title h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .hp-wc .wc-title span {
    font-size: 29px;
  }

  .hp-wc .wc-right {
    padding: 30px 15px;
  }

  .hp-wc .agent-detail.active {
    transform: translateY(0) scale(1.8);
  }

  .hp-wc .agent-detail-2 {
    left: 450px;
  }

  .hp-wc .agent-detail-3 {
    right: 60px;
  }

  /* custom ip title */
  .custom-ip-title span::before,
  .custom-ip-title span::after {
    display: none;
  }

  .custom-ip-title span {
    padding: 0;
  }

  .ip-nhc div.wpcf7-response-output {
    bottom: -31px;
    font-size: 13px;
    padding: 0;
  }

  .ip-nhc span.wpcf7-not-valid-tip {
    font-size: 12px;
  }

  footer.ftr-main .ftr-logo img {
    max-height: 40px;
  }
}

@media print {

  .aios-mobile-header-wrapper,
  .main-header,
  .yoast-breadcrumbs,
  .main-footer,
  .sidebar,
  .textwidget,
  .footer,
  .menu-main-navigation-container,
  .header-main,
  #fixed-header,
  .navigation,
  .footer_wrap,
  #page-bg,
  #footer,
  .addtoany_content,
  #breadcrumbs,
  .entry-title,
  .hdr-main scrolled,
  .hdr-nav-holder,
  .ftr-main,
  .entry-content a,
  .ip-banner {
    display: none !important;
  }

  /*    h .main-header
    {
        display: none !important;
    }*/
  #content {
    width: 100% !important;
  }

  #content-sidebar #content {
    width: 100% !important;
    margin-top: 0px !important;
  }

  #main-wrapper {
    margin-top: -40px !important;
  }

  #inner-page-wrapper {
    padding-top: 0px !important;
  }

  .ihf-address {
    font-size: 20px !important;
  }

}