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

 
@media only screen and (min-width: 1601px) { 
	.hp-blog {
		background-size: 100% auto;
	}
}


@media only screen and (min-width: 992px) { 

	.blog-right .blog-date {
		opacity: 0 !important;
	}

}

@media only screen and (max-width: 1330px) { 
	.fixed-smi {
		left: 10px;
	}
}

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

	.hdrnav > li {
		padding: 0 20px;
	}
	.hdrnav.aios-split-nav > li:first-child {
	    padding-left: 20px;
	}
	.hdrnav.aios-split-nav > li:last-child {
		padding-right: 20px;
	}

	.hdrnav .sub-menu {
		width: 140px;
		margin-left: -70px;
	}
	.fixed-smi {
	    left: 5px;
	}

	.hdrnav .sub-menu a {
		font-size: 11px;
	}

	.hp-slide .hp-scroll {
		bottom: 20px;
	}

	.hp-cta .default,
	.hp-cta .hover .hover-top {
		font-size: 20px;
	}

	.hp-cta .hover .hover-top {
		padding: 9% 20%;
	}

	.side-cta .default {
		font-size: 18px;
	}

	.blog-right .blog-date {
		padding: 30px 5px;
	}

		.blog-right .blog-date span.blog-day {
			font-size: 70px;		    
		    line-height: 60px;
		}

	/*** be the first to know popup***/

	#first-popup .pop-form .form-col input[type="submit"] {
		font-size: 16px;
	}

	.hp-fp .fp-wrap .fp-details span.fp-price {
		font-size: 30px;
	}
	.hp-fp .fp-wrap .fp-details span {
		font-size: 20px;
		line-height: 27px;
	}
	.side-qs,
	.side-qs .qs-inner {
		padding: 15px;
	}
		.side-qs .bootstrap-select.btn-group .dropdown-menu {
			min-width: 100%;
		}
			.side-qs .bootstrap-select.btn-group .dropdown-menu li {
				font-size: 12px;
			}
	
	#first-popup .pop-form .form-col input[type="submit"], #wadr-register-login-form .pop-form .form-col input[type="submit"] {
		font-size: 18px;
	}

	ul.list li .prop-det .prop-title,
	ul.list li .prop-det p.list-price {
		font-size: 18px;
	}
} 

@media only screen and (max-width: 1024px) { 
	.welcome-wrap .welcome-photo {
		height: 700px !important;
	}

	.hp-fp .fp-wrap a {
		-webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg);
		transform: translateZ(0px) translateY(0px) rotateX(0deg);
		opacity: 1;
	}
}

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

	#main-wrapper {
		overflow: hidden;
	}

	.aios-mobile-header-wrapper.aios-mobile-header-wrapper-breakpoint-992 {
		z-index: 1011;
	}
	.amh-header-buttons {
		background: #6cbfd7 !important; 
		color: #fff;
	}

	.amh-navigation .amh-menu li:hover > a, .amh-navigation .amh-menu li.open > a {
		background: #222 !important;
	}

	.amh-navigation .amh-menu li ul {
		background: #6cbfd7 !important;
	}

	.amh-navigation .amh-menu li ul a {
		color: #fff !important;
	}

	.hide-mobile,
	.fixed-smi {
		display: none !important;
	}

	.header .hdr-right,
	.header .hdr-right .signup-btn {
		width: 100%;
		padding-left: 0;
		text-align: center;
	}

		.header .hdr-right .signup-btn a {			
			margin: 25px 0 0;
		}

	.header {
		background: #000;
		position: relative;
		padding: 70px 0 20px;
	}

		.header .logo {
			width: 100%;
		}

			.header img {
				display: block;
				margin: 0 auto;
			} 

	.hp-slide .hp-scroll {
		bottom: 30px;
	}

	.hp-slide .static-tagline {
		bottom: 140px;
	}

	.hp-slide .static-tagline p {
		width: 100%;
	}

	.hp-welcome {
		padding-bottom: 0;
	}

		.welcome-wrap .welcome-photo {
			height: auto !important;
		}

	.welcome-wrap .welcome-photo .photo-wrap {
        position: relative;                
        display: inline-block;
     }

		.welcome-wrap .welcome-photo img {
			position: relative;
		}

		 .welcome-wrap .welcome-photo:after {
		 	display: none;
		 }

		 .welcome-wrap .welcome-photo .photo-wrap:after {
            position: absolute;
            content: '';
            left: 15%;
            bottom: 7%;
            width: 70%;
            height: 86%;
            border: 5px solid #fff;
            border-top: 0;
        }

    .hp-fp {
    	padding-top: 75px;
    }

    .hp-fp .fp-wrap a {
    	opacity: 1;
    	-webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg);
        transform: translateZ(0px) translateY(0px) rotateX(0deg);
    }    

    .hp-fp .fp-wrap .row.with-margin {
    	margin-bottom: 0;
    }

    .hp-fp .fp-wrap canvas {
    	margin-bottom: 15px;
    	width: 100%;
    	height: 300px !important;
    }

    .hp-cta .cta-item a {    	
    	max-width: 360px;
    	display: block;
    	margin: 0 auto 20px;
    }

    .hp-blog .blog-mobile {
        height: auto;
       transform: scale(1);
    }

    .hp-blog h2 {
    	margin-bottom: 50px;
    }

    .blog-item {
    	width: 100%;
    	background: #222;
    	max-height: 100%;
    	max-width: 100%;
    }

    	.blog-item .blog-photo canvas {
    		max-width: 500px;
    		margin: 0 auto;
    	}
    		.blog-item .blog-photo canvas.fallback-image {
    			max-width: 140px;
    		}

	    .blog-item.blog-item-clone {
	    	display: none !important;
	    }

	    .blog-item .blog-left {
	    	width: 100%;
	    }

	    .blog-item .blog-right {
	    	width: 100%;
	    	max-width: 250px;
	    	margin: 0;
	    }

	    	.blog-item .blog-right .blog-date {
	    		margin: 0;
	    		padding: 20px 5px;
	    	}

	    .hp-blog .blog-bottom {
	    	display: flex;
	    	flex-direction: column-reverse;
	    }

	    	.blog-item .blog-bottom > div {
	    		width: 100% !important;    		
	    	}

	    		.blog-item .blog-bottom > div.blog-photo {
	    			margin-left: 0;
	    			margin-bottom: 20px;
	    		}

	.blog-right {
		position: relative;
	    left: 0;
	    width: 100%;
	    max-width: 185px;
	    display: block;
	    margin: 0 auto;
	}

		.blog-right .blog-date {
			margin-top: 0;
			margin-bottom: 20px;
			display: block !important;
			opacity: 1;
		}

			.blog-right .blog-date.cycle-slide-active {
				opacity: 1 !important;
			}

		.blog-date.blog-date-clone {
			display: none !important;
		}

    .hp-blog .blog-wrap .blog-arrows {
    	position: relative;
    	top: 0;
    	text-align: center;
    	margin-top: 20px;
    	left: 0;
    }

    footer {
    	padding-top: 100px;
		margin-top: 30px;
		z-index: 1;
    }
	
	/* 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%;
		display: inline-block;
	}

	/*** be the first to know popup***/

	#first-popup h2 {
		font-size: 3.5vw;
	}

	#first-popup .pop-sub {
		font-size: 18px;
		line-height: 24px;
	}

	#first-popup .pop-form .form-col input[type="submit"] {
	    font-size: 2vw;
	    padding: 0 5px;
	}

	#first-popup .pop-form .form-col input[type="submit"], #wadr-register-login-form .pop-form .form-col input[type="submit"] {
		white-space: normal;
	}

	.modulePrefix-holder {
		width: 100%;
	}
		#first-popup .pop-sub, #wadr-register-login-form .pop-sub {
			padding: 0 15px;
			font-size: 15px;
			line-height: 24px;
		}
		#first-popup h2, #wadr-register-login-form h2 {
			font-size: 24px;
		}
		#first-popup .pop-form .form-col, #wadr-register-login-form .pop-form .form-col {
			margin-bottom: 15px;
			width: 100%;
		}
		#first-popup .pop-form .form-col.al-right, #wadr-register-login-form .pop-form .form-col.al-right {
			margin-left: 0;
		}
		#first-popup .pop-form .form-col:last-child, #wadr-register-login-form .pop-form .form-col:last-child {
			margin-bottom: 0;
		}

	.blog-item .blog-left {
		padding: 95px 5% 60px;
	}
	footer:before {
		position: absolute;
		content: '';
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,.5);
		z-index: -1;
	}

	.blog-item .blog-bottom > div { 
		font-size: 0; 
	}

	.blog-item .blog-left p {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 20px;
	}

	.blog-item .blog-bottom > div:not([class])  {
		display: flex !important;
		flex-direction: column;
	}

	.blog-item .blog-left p + p, .blog-item .blog-left p + p:last-of-type {
		display: none !important;
	}

	.blog-item .blog-left p br { 
		display: none; 
	}
	.blog-item .blog-left a {
		margin-bottom: 30px;
	}
	
} 

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

	.welcome-text h1,
	.hp-blog h2 span {
		font-size: 14vw;
		line-height: 1;
	}


	.hp-fp h2 span {
		font-size: 10vw;
		line-height: 1;
	}

	.hp-slide .hp-scroll {
		bottom: 0;
	}

	.hp-slide .cycloneslider-template-video .canvas-holder,
	.cycloneslider-template-video.cycloneslider-width-full .cycloneslider-slide canvas {
		min-height: 270px;
	}

	.hp-slide .cycloneslider-template-video .cycloneslider-slides {
		height: 100%!important;
	}

	.hp-slide .static-tagline {
		font-size: 16px;
		line-height: 20px;
		bottom: 100px;
	}

	/*** be the first to know popup***/


	#first-popup .pop-sub {
		font-size: 14px;
		line-height: 18px;
		padding: 0 15px;
	}

	#first-popup .pop-form .form-col.main-c {
		width: 100%;
		margin-left: 0 !important;
	}

		#first-popup .pop-form .form-col.main-c .small select {
			background-position: 89% 50%;
		}

		#first-popup .pop-form .form-col.main-c.al-right { 
			margin-top: 15px;
		}

	#first-popup .aiosp-close {
		right: 0px;
	}

	#first-popup .pop-form .form-col input[type="submit"] {
		font-size: 20px;
	}

	.footer-form input {
		width: 100%;
	}
	.footer-form input[name="your-name"], .footer-form input[type="email"] {
		width: 48%;
		margin: 0 0 20px;
	}
	.footer-form input[name="your-name"] {
		margin-right: 2%
	}
	.footer-form input[type="email"] {
		margin-left: 2%;
	}
	.my-account-link a {
		display: block !important;
		width: 100%;
		text-align: center;
		margin: 10px auto !important;
		max-width: 360px;
	}
	button#save-to-favorites {
		float: none;
		width: 100%;
		max-width: 360px;
		margin: 0 auto !important;
		display: block;
	}
	#content .listing-details-wrap .photo-slideshow .slick-arrow {
		transform: translateY(-50%);
		margin-top: 0 !important;
	}

}

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

	ul.list li .prop-img-wrap {
		text-align: center;
	}

		ul.list li .prop-img-wrap a {
			display: inline-block;
			position: relative;
		}

	 footer .container {
    	 	position: relative;
    	 	z-index: 9;
    	 }
}

@media only screen and (max-width: 600px) {
	.list-wrapper {
		max-width: 371px;
		margin: 75px auto 30px;
		float: none;
		clear: both;
	}

	.prop-img {
		text-align: center;
	}

	#content .property-description .prop-cta a {
		width: 49%;
		margin-left: 0;
		margin-bottom: 10px;
		font-size: 12px;
	}

	#content .property-description .prop-cta {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	#content .top-sort {
		padding-bottom: 25px;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {	
	#listing-search-ip{
	    width: 100%;
	}

	#first-popup .pop-form .form-col input[type="submit"] {
		font-size: 12px;
	}

	#content .property-description .prop-cta a {
		width: 100%;
	}

	#content .listing-details-wrap .property-description .prop-cta a {
		margin-top: 0;
	}

	div#listing-search-ip form {
	    flex-direction: column;
	}

	div#listing-search-ip .ls-col1, div#listing-search-ip .ls-col2 {
	    width: 100%;
	}
}
 
