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

@media only screen and (min-width: 1500px) {
	#nav > li > a, #nav .sub-menu a {
		font-size: 17px;
	}

	#nav > li {
		padding: 0 1%;
	}


}

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

	.header-logo-left {
		position: absolute;
		left: -15px;
		bottom: 0;
	}
	.header-logo-right {
		position: absolute;
		right: 0;
		top: 10px;
	}
	.header-logo-left img {
		width: 100%;
		max-width: 240px;
	}
	.header-logo-right img {
		width: 100%;
		max-width: 200px;
	}

	.cta-container,
	.welcome-container,
	.blog-container {
		margin: 0;
	}


	.test-info-txt {
		padding: 38px 20px 0;
	}
	.test-name {
		padding-top: 15px;
	}

	.test-quote {
		margin: 45px auto 0;
	}

}

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

	.header-logo-left {
		position: absolute;
		left: -60px;
		bottom: 0;
	}
	.header-logo-right {
		position: absolute;
		right: -34px;
		bottom: 0;
	}
	#nav > li {
		display: inline-block;
		position: relative;
		padding: 0 1%;
	}

	.communities-slider a {
		max-width: 300px;
	}

	.cta-btn-holder a span {
		font: 300 20px 'Roboto', sans-serif;
	}

	.test-quote {
		margin: 35px auto 0;
	}

	.blog-item-title {
		padding: 0 20px 24px 0;
	}

	/*.cta-btn-holder {
		width: 32.22%;
		margin: 0 10px;
		height: 130px;
	}
	.cta-btn-holder.fmdh a span:after {
		left: -50px;
	}*/

	.test-info-txt {
		padding: 20px 10px 0;
	}
	.test-info-txt p {
		color: #ffffff;
		min-height: 110px;
		font: 300 13px/22px 'Roboto', sans-serif;
	}

	.qs-title h2 span.big {
		font: bold 80px/74px 'Lato', sans-serif;
	}
	.qs-title span {
		font: 100 30px/40px 'Lato', sans-serif;
	}

}

@media only screen and (max-width: 1024px) {
	.qs-wrapper .col-md-3 {		
		padding-left: 0;
	}
	.header-logo-left {
		position: absolute;
		left: -35px;
		bottom: 0;
	}
	.header-logo-left img {
		width: 100%;
		max-width: 220px;
	}
	.header-logo-right {
		position: absolute;
		right: -25px;
		bottom: 0;
	}

	/*.cta-btn-holder {
		width: 31.99%;
		margin: 0 10px;
		height: 130px;
	}*/

}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 

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

	.row.resources-logo-wapper img {
		margin: 26px auto;
	}
	.aios-mobile-header-wrapper {
		z-index: 1002;
	}

	.amh-header-buttons {
		position: relative;
		background: #14487b;
		color: #ffffff;
	}

	.amh-navigation .amh-menu li:hover > a, .amh-navigation .amh-menu li.open > a {
		background: #14487b;
	}
	.amh-navigation .amh-menu li ul a {
		color: #FFFFFF;
		background: #518ac2;
	}


	.fixed-header,
	.header-middle {
		display: none;
	}
	.header-wrapper {
		position: relative;
		background: #eeeeee;
		padding-bottom: 15px;
	}

	.header-contents-holder {
		text-align: center;
	}

	.header-logo-left {
		position: relative;
		display: block;
		left: 0;
		bottom: 0;
		margin: 15px 0;
	}
	.header-logo-right {
		position: relative;
		display: block;
		right: 0;
		bottom: 0;
		margin: 15px 0;
	}

	#hpSlider {
		height: 100%;
		min-height: 600px;
	}

	.qs-wrapper {
		position: relative;
		top: 0;
		z-index: 9;
		padding: 20px 0;
		background: #9e9e9e;
	}
	.qs-title {
		text-align: center;
	}
	.qs-title h3 span {
		position: relative;
		top: -20px;
		padding-left: 138px;
	}
	.qs-fields {
		padding: 0;
	}
	.qs-group.select-group {
		position: relative;
		display: block;
		width: 100%;
		margin-right: 0;
	}
	.qs-group.select-group.left {
		width: 49%;
		float: left;
	}
	.qs-group.select-group.right {
		width: 49%;
		float: right;
	}
	.qs-group.select-group.btn {
		margin-left: 0;
		height: auto;
    	display: inline-block;
	}
	.qs-group.buttons {
		position: relative;
		display: block;
		width: 100%;
		margin: 0 auto 8px;
	}

	.fc-wrapper,
	.estate-club-wrapper {
		opacity: 1;
	}

	.communities-slider a {
		max-width: 240px;
	}


	.cta-wrapper {
		margin-top: 0px;
	}
	.cta-btn-holder {
		width: 100%;
		display: block;
		margin: 0 auto;
		height: 130px;
		max-width: 380px;
	}
	.cta-container .cta-btn-holder:first-child {
		margin-left: auto;
	}
	.cta-container .cta-btn-holder:last-child {
		margin-right: auto;
	}
	.cta-container .cta-btn-holder:first-child {
	    padding-left: 15px;
	}
	.cta-container .cta-btn-holder:last-child {
	    padding-right: 15px;
	}
	.agent-wrap {
		position: relative;
		display: block;
		width: 100%;
		max-width: 700px;
		margin: 0 auto;
	}

	.welcome-info-wrap {
		position: relative;
		display: block;
		vertical-align: top;
		width: 100%;
	}

	.test-title {
	    top: -6px;
	}

	.testimonials-slider {
		position: relative;
		display: block;
		text-align: center;
		padding: 0 0 0;
		font-size: 0;
		width: 100%;
		margin: 0 auto;
	}
	.test-holder {
		position: relative;
		display: block;
		width: 100%;
		height: 430px;
		/*max-width: 360px;*/
		margin: 0 auto;
	}
	.test-quote {
		margin: 90px auto 0;
	}
	.test-info-txt {
		padding: 38px 20px 0;
	}
	.test-info-txt p {
		color: #ffffff;
		min-height: 110px;
		font: 300 15px/22px 'Roboto', sans-serif;
	}
	.test-title-wrap {
		position: relative;
		display: block;
		vertical-align: top;
		width: 100%;
		height: 230px !important;
		padding-top: 0;
	}

	.blog-item-title,
	.blog-info-txt,
	.blog-read-more {
		text-align: center;
	}

	.git-form {
		display: block;
		width: 100%;
		margin-left: 0;
	}

	.git-form .wpcf7-form-control-wrap {
	    display: block;
	}

	.footer-git-title {
		width: 100%;
		display: block;
		margin: 0 auto 15px;
	}
	.footer-git-title h2 span.thin,
	.footer-git-title h2 span.bold {
		text-align: center;
	}
	.git-fields.short {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
	}
	.git-fields.long {
		width: 100%;
		margin-right: 0;
	}
	.footer-copyright {
		text-align: center;
	}
	.footer-mls {
		text-align: center;
	}

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

	.sidebar .qs-title h3 span {
		position: relative;
		top: -45px;
		padding-left: 105px;
	}
	/*#cycloneslider-hp-slideshow-1{
		display: none;
	}*/
	.cycloneslider-hp-slideshow-resposive-2{display: block !important;}
	/*.hp-slider{
		top: 215px;
	}*/
	#hpSlider{
		min-height: 600px;
	}
	.fc-wrapper{
		margin-top: 50px;
	}

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

	.le-logo img.img-responsive {
		margin: 0 auto;
	}
} 

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

	.popup-content {
		width: 100%;		
		max-width: 320px;
		height: 600px;
	}
	.popup-inner {
		width: 100%;
	}
	.popup-estate-logo {
		padding-top: 0;
	}
	.popup-fields.short, .popup-fields.long, .popup-fields.button {
    width: 100%;
	}

	#hpSlider {
		height: 100%;
		min-height: 449px;
	}

	.qs-title, .qs-wrapper {
		text-align: center;
	}

	.qs-title {
	    position: relative;
	    display: inline-block;
	    padding-left: 0px;
	    margin-left: -40px;
	}

	.test-title h3 {
		position: relative;
		top: 0;
		padding-left: 0;
		color: #666666;
		letter-spacing: 3px;
		text-transform: uppercase;
		font: 100 40px 'Roboto', sans-serif;
		text-align: center;
	}

	.communities-slider a {
		max-width: 100%;
	}
	.comm-img-reflection,
	.communities-slider a.left .comm-img:after,
	.communities-slider a.right .comm-img:before {
		display: none;
	}
	.communities-slider a.left .comm-img-holder {
		-webkit-backface-visibility: hidden;
		transform: perspective( 0 ) rotateY( 0deg ) translate3d(0,0,0);
		top: 0;
		left: 0;
		-webkit-box-shadow: 0 0 0 0 rgba(0,0,0,0);
		-moz-box-shadow: 0 0 0 0 rgba(0,0,0,0);
		box-shadow: 0 0 0 0 rgba(0,0,0,0);
	}
	.communities-slider a.right .comm-img-holder {
		-webkit-backface-visibility: hidden;
		transform: perspective( 0 ) rotateY( 0deg ) translate3d(0,0,0);
		top: 0;
		right: 0;
		-webkit-box-shadow: 0 0 0 0 rgba(0,0,0,0);
		-moz-box-shadow: 0 0 0 0 rgba(0,0,0,0);
		box-shadow: 0 0 0 0 rgba(0,0,0,0);
	}

	#ihf-main-container #ihf-detail-features-tab .mt-10 {
		padding: 0 15px;
	}

	.popup-wrapper {
	    overflow: auto;
	}

}




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

	#hpSlider{
		min-height: 590px;
	}
}



@media only screen and (max-width: 467px) {
	#hpSlider{
		min-height: 449px;
	}
}

 

/*iPhone 6 in portrait & landscape*/


@media only screen and (min-device-width : 375px) and (max-device-width : 667px) {

	.popup-content{

		    max-width: 270px;

    height: 495px;


	}

	.popup-logo{

    padding-top: 12px;
	}

	.popup-content{

    top: 48px;

	}


.popup-logo .sub-title{

    padding-top: 9px;
}


}

/*iPhone 6 Plus in portrait & landscape*/


@media only screen and (min-device-width : 414px) and (max-device-width : 736px) { 


	.popup-content{

		    max-width: 270px;

    height: 516px;


	}

	.popup-logo{

    padding-top: 12px;
	}


}