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

/* Reset VW */
@media only screen and (min-width: 1601px) {
	.expanded-menu-inner .exp-menu-inner-basis {
		padding: 30px 9.2%;
	}

		.expanded-menu-inner .close-btn {
			width: 47px;
			height: 47px;
		}

	.expanded-nav-contact-menu .social-media-icons a {
		margin: 12px;
		width: 55px;
		height: 55px;
	}

	.community-entry a .community-name {
		font-size: 34px;
		padding: 45px 25px;
	}
}

/* Scroll expanded nav overflow when it reaches 1366x768 below */
@media only screen and (max-height: 768px) {
 	/*.expanded-menu-inner .exp-menu-inner-basis {
 		overflow-y: scroll;
 	}*/
}

@media only screen and (min-width: 1601px) {
	.fp-overlay-wrap .fp-details span {
	    font-size: 35px;
	}
}

@media only screen and (max-width: 1366px) {
	.expanded-menu-inner {
		overflow-y: scroll;
	}

	/*.welcome-inner-wrap {
		align-items: unset;
	}*/

	.welcome-right .agent-photo {
		width: 100%;
		height: auto;
	}

	.fp-overlay-wrap .fp-details span {
	    font-size: 1.8vw;
	}

	.fp-overlay-wrap .fp-details strong {
        font-size: 47px;
    }

    .community-entry a .community-name {
    	font-size: 2vw;
    }
}
 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
	.welcome-left .section-header {
	    font-size: 40px;
	    line-height: 50px;
	}

	.welcome-inner-wrap {
		align-items: unset;
		padding-bottom: 85px;
	}

		.welcome-right .agent-photo {
			margin-top: 0;
		}

		.welcome-right .textwidget {
		    display: flex;
		    align-items: flex-end;
		    height: 100%;
		}

		.welcome-right .agent-name {
			font-size: 20px;
		}



	.fp-item .fp-overlay-wrap {
		padding: 25px 24px;
	}

		.fp-overlay-wrap .fp-details {
			padding: 0 14px;
			padding-top: 10px;
		}

		.fp-overlay-wrap .fp-details span {
		    font-size: 19px;
		}

		.fp-overlay-wrap .fp-details strong {
		    font-size: 37px;
		}

		.fp-overlay-wrap .fpd-hover a {
		    font-size: 15px;
		    padding: 14px 10px;
		}

	.qs-inner-wrap {
		background-size: 110%;
	}

	.community-list-wrap {
		padding: 0 62px;
	}
}

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

	.section-header {
		font-size: 40px;
		line-height: 50px;
	}

	header.header {
	    position: relative;
	    margin-top: 52px;
	    background: #fff;
	}

		.header-container {
			flex-direction: column;
		}

		.header-right {
			display: none;
		}

	#hero .hero-cyclone-wrap {
	    position: absolute;
	}

	.welcome-left {
		padding-left: 50px;
	}

	.welcome-left .section-header {
	    margin-left: -42px;
	    padding: 37px 42px;
	}

	.mtt-content .line-accent {
		display: none;
	}

	.mtt-header-wrapper .section-header {
		margin: 0 15px;
	}

	.fp-header-wrap {
		text-align: center;
	}

	.featured-propeties-wrapper {
		max-width: 532px;
		margin: 0 auto;
	}

	.fp-list {
		margin: 0;
	}

	.fp-entry-group .fp-item {
	    width: 100%;
	    padding: 3.5px;
	}

		.fp-overlay-wrap .fp-details span {
		    font-size: 3.8vw;
		}

		.fp-overlay-wrap .fp-details strong {
		    font-size: 5vw;
		}

	#quick-search-section .line-accent {
	    right: 40px;
	}

		.qs-inner-wrap {
			width: 100%;
		    background-size: cover;
		    background-position: center;
		}

		.qs-inner-wrap:before, .qs-inner-wrap:after {
			display: none;
		}

	#featured-communities-section .section-header {
	    font-size: 35px;
	    line-height: 45px;
	}

		.community-list-wrap {
			padding: 0 52px;
		}

	.fv-header-wrap,
	.footer-contact-header-wrap {
	    text-align: center;
	}

	.footer-contact-header-wrap h3 {
    	margin-left: 0;
   	}

   		.form-row {
   			margin-top: 0px;
   		}

   		.form-row.fr-columned {
   			flex-direction: column;
   		}

   			.form-row.fr-columned label {
   			    width: 100%;
   			    margin-left: 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%;
	}

	.page-id-19 .aios-about-img {
		margin-right: auto;
		margin-left: auto;
		padding-right: 0;
	}
	.page-id-19 .aios-about-content-inner {
		width: 100%;
		margin: 0 auto;
	}
	.page-id-19 .aios-about-content p {
		text-align: justify;
	}

	#content .aios-about-info ul {
	    margin: 0;
	}
	.welcome-left p {
	    text-align: center;
	    letter-spacing: 0.050em;
	    font-size: 16px;
	}
	.section-header > span {
	    line-height: 1.3;
	}
	.footer-widgets .footer-address, .footer-widgets .footer-contact {
	    letter-spacing: 0.080em;
	    line-height: 1.4;
	}
	.footernav{
		line-height: 1.7;
	}
	.aios-about-content{
		font-size: 15px;
	}
	.aios-about-content p{
	    text-align: center;
	}
	#ihf-advanced-search-regions a.ihf-advanced-search-launch{
		padding: 0;
	    white-space: normal;
	    text-align: left;
	}
	.aios-contact-wrap .aios-contact-main>div>span:first-child{
		margin: 0 0 0;
		    line-height: 1;
	}
	.aios-contact-wrap .aios-contact-main>div{
		margin: 0 0 30px;
	}

	#content .aios-contact-wrap .aios-contact-main>div.contact-address p{
		margin: 0 0 0;
	}
} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
	#hero .scroll-wrapper .scroll-down {
		width: 25px;
		height: 17px;
	}
	.welcome-inner-wrap {
		flex-direction: column-reverse;
		padding-bottom: 0;
	}

		.welcome-right {
			width: 100%;
			padding-top: 20px;
		}

			.welcome-right:before {
				left: -20px;
			}

			.welcome-right .agent-photo {
				max-width: 493px;
				margin: 0 auto;
			}

		.welcome-left {
			padding: 70px 0 20px;
		    width: 100%;
		    text-align: center;
		}

			.welcome-left .section-header {
			    margin-left: 0;
			    display: block;
			}

	#meet-the-team-section {
		padding: 50px 0 0;
	}
		.mtt-content .line-accent {
			top: 8px;
			bottom: inherit;
		}
		.mtt-content .line-accent:before {
			height: 433px;
		}

	#featured-properties-section {
		padding: 92px 0 50px;
	}

		.fp-overlay-wrap .fp-details span {
			font-size: 21px;
		}

		.fp-overlay-wrap .fp-details strong {
			font-size: 25px;
		}

		.more-featured-properties {
			margin-top: 50px;
		}

	.qs-header-wrap .section-header {
		margin-left: 0;
		text-align: center;
		display: block;
	}

		.qs-inner-wrap {
		    padding: 20px;
		}

		.qs-form-wrap .qs-group-wrap {
			width: 100%;
			flex-direction: column;
		}

		.qs-form-wrap select, .qs-form-wrap input[type=text] {
		    margin: 0!important;
		    width: 100%;
		}

		.qs-form-wrap .qs-group-wrap.qs-loc {
			margin-bottom: 0;
		}

		.qs-form-wrap .qs-group-wrap.qs-action {
		    width: 100%;
		    justify-content: center;
		    align-items: center;
		    margin-top: 10px;
		    padding-bottom: 10px;
		}

			.qs-form-wrap input[type=submit], .qs-form-wrap button.submit-btn {
				margin: 0 auto;
			}

	.community-entry a .community-name {
	    font-size: 16px;
	    padding: 20px 10px;
	}

	.featured-video-main,
	.featured-thumb-wrapper {
	    padding: 0px 40px;
	}

	#featured-videos-section .fv-accent-bg canvas {
		min-height: 350px;
	}

	#footer-contact-form-section {
		padding: 50px 0;
	}
	.form-row.fc-control {
		margin-top: 50px;
	}
	.footer-contact-inner {
		padding: 0 20px;
	}

    .ip-banner .container{
        width: 100%;
    }
    #quick-search-section .btn-group.bootstrap-select.show-tick.qs-select {
	    width: 100%;
	    margin-left: 0;
	}
	#quick-search-section button.btn.dropdown-toggle.btn-default {
		width: 100%;
		margin-left: 0;
	}
}


@media only screen and (max-width: 567px) {
	#hero .scroll-wrapper {
		padding: 10px;
	}

	#welcome-section {
	    padding-top: 0;
	    margin-top: 0;
	}

	.section-header {
		padding: 67px 22px;
	}

	.styled-btn {
		min-width: unset!important;
		width: 100%;
		font-size: 25px;
		line-height: 26px;
	}

	.welcome-left .section-header {
	    margin-left: 0;
	    padding: 67px 22px;
	    font-size: 25px;
	    line-height: 31px;
	}

	.team-photo .team-bio-link {
		position: relative;
	}

	.mtt-content {
		padding: 0 20px;
	}

	#featured-properties-section {
		overflow: hidden;
	}

		#featured-properties-section:before {
		    left: 0;
		    top: -49px;
		    width: 252px;
		    height: 418px;
		    background-size: contain;
		}

		.fp-header-wrap .section-header {
		    font-size: 30px;
		    line-height: 40px;
		}

	.more-featured-properties {
		padding: 0 20px;
	}

	#quick-search-section .line-accent,
	#quick-search-section:before {
		display: none;
	}

	/*.qs-header-wrap .section-header {
		margin-left: 0;
		text-align: center;
	}

		.qs-inner-wrap {
		    padding: 0 20px;
		}

		.qs-form-wrap .qs-group-wrap {
			width: 100%;
			flex-direction: column;
		}

		.qs-form-wrap select, .qs-form-wrap input[type=text] {
		    margin: 0!important;
		    width: 100%;
		}

		.qs-form-wrap .qs-group-wrap.qs-loc {
			margin-bottom: 0;
		}

		.qs-form-wrap .qs-group-wrap.qs-action {
		    width: 100%;
		    justify-content: center;
		    align-items: center;
		    margin-top: 10px;
		    padding-bottom: 10px;
		}

			.qs-form-wrap input[type=submit], .qs-form-wrap button.submit-btn {
				margin: 0 auto;
			}*/

		#featured-communities-section {
		    padding: 50px 20px;
		}

			#featured-communities-section .section-header {
			    font-size: 29px;
			    line-height: 30px;
			}

			.community-entry a .community-name {
			    font-size: 22px;
			    padding: 20px;
			}

			#featured-communities-section:after {
				display: none;
			}

	#featured-videos-section {
		padding: 20px 0 45px;
	}

		.featured-video-main, .featured-thumb-wrapper {
		    padding: 0px 20px;
		}

		#featured-videos-section .fv-accent-bg canvas {
		    min-height: 290px;
		}

	.play-btn {
		padding-top: 10px;
	}

		.play-btn .circle-wrap {
			margin-bottom: 15px;
		}

		.featured-thumb-entry .play-btn .circle-wrap {
			transform: scale(0.6);
			transform-origin: top;
		}

	#footer-contact-form-section:before {
	    top: 0;
	    right: 0;
	    width: 100%;
	    height: 318px;
	    background-size: contain;
	}

	.footer-widgets {
		font-size: 19px;
	}

	#content .entry-title, #content .archive-title {
		font-size: 30px;
		line-height: 40px;
	}

	#content .archive-subtitle {
		font-size: 20px;
		line-height: 30px;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	.ip-about-services div {
		text-align: center;
		width: 100%;
	}
	.ip-about-services div:nth-child(odd) {
		text-align: center;
	}
	#content .aios-about-info>ul>li .aios-about-smis>a,
	#content .aios-contact-wrap .aios-contact-main .aios-contact-smis>a {
		margin: 0 2px;
	}
}
 
