/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/


/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {
	#navi > li > a {
		padding: 53px 9px;
		font-size: 12px !important;
	}
	.header-wrapper.fixed #navi > li > a {
		padding: 34px 9px;
	}

	.testi-title h2::before {
		max-width: 265px;
	}
	.testi-title h2::after {
		max-width: 265px;
	}

	.fp-title h2,
	.fc-title h2,
	.agent-title h2 {
		font-size: 14px;
	}

	a.fp-btn,
	a.fc-btn,
	a.agent-btn {
		font-size: 11px;
	}
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {

  .single-aios_agent .agent-holder .agent-description{
    width: 100%;
  }

	/* 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%;
	}

	.slideshow-tagline {
		pointer-events: none;
	}

	.header-wrapper {
	    position: relative;
	    height: auto;
	    padding: 72px 0 20px;
	}

		.header-logo {
			text-align: center;
			padding: 0;
		}

		.header-navs {
			display: none;
		}

	.testi-title h2::before {
		display: none;
	}
	.testi-title h2::after {
		display: none;
	}

	.bottom-section {
	    padding: 50px 0 30px;
	}

	.fp-title,
	.fc-title,
	.agent-title {
		text-align: center;
	}

	.fp-holder,
	.fc-holder,
	.agent-holder {
		margin-bottom: 50px;
	}

	.ip-banner {
		height: 200px;
	}

	.page-id-26 .agent-holder,
	.page-id-26 .agent-holder:first-of-type {
		width: 100%;
		float: none;
	}

	.page-id-38 #content .agent-bio-wrapper .alignleft {
		float: none;
		margin: 15px auto;
	}

	.ip-qs-wrapper {
		padding: 40px 0;
	}

		.ip-qs-wrapper form {
			padding: 0;
		}

			.qs-label {
				text-align: center;
			}

			.qs-large {
				width: 100%;
				padding: 0;
			}

			.qs-med,
			.qs-small {
				width: 50%;
			}

				.qs-beds,
				.qs-min {
					padding-left: 0;
				}
				.qs-baths,
				.qs-max {
					padding-right: 0;
				}

			.qs-search {
			    width: 50%;
			    padding-left: 0;
			    padding-right: 7px;
			    margin-top: 15px;
			}

				.qs-search input {
					background-position: center center;
				}

			.qs-advanced {
				width: 50%;
				padding-left: 7px;
				margin-top: 15px;
			}
}

/* Agents page fix */
@media only screen and (max-width: 768px) {
	.page-id-38 .agent-holder .attachment-agent-image {
		width: 144px;
		max-width: 100%;
	}

	.page-id-38 .agent-holder .agent-all-contact {
	    width: 100%;
	}

	.page-id-38 #content .alignleft {
	    float: none;
	    margin: 15px auto;
	}

	.single-aios_agent .agent-holder .attachment-agent-image {
	    width: 144px;
	    max-width: 100%;
	}

	.single-aios_agent .agent-holder .agent-contacts {
	    width: 100%;
	}
}


/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */
@media only screen and (max-width: 767px) {
	.slideshow-tagline h1 {
		font-size: 30px;
	    letter-spacing: 3.5px;
	}

	.testi-wrapper {
		padding: 40px 0;
	}

	.testi-item {
		padding: 0;
	}

	.bottom-section {
	    padding: 40px 0 20px;
	}

	.footer-wrapper {
		padding: 30px 0;
	}

	.page-id-411 #content ul,
	.page-id-413 #content ul,
	.page-id-417 #content ul,
	.page-id-445 #content ul {
	    margin-left: 30px;
	}
	
	.slideshow-tagline {
		bottom: 20%;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {
	.slideshow-wrapper::before {
		background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 35%);
	}

	.slideshow-tagline h1 {
		font-size: 18px;
	}

	.ip-banner {
	    height: 150px;
	}

	#ihf-main-container .pagination {
	    min-width: 160px;
	}

    #ihf-main-container .ihf-listing-detail .pagination {
        min-width: 140px;
    }
}

@media only screen and (max-width: 330px) {
	#ihf-main-container .btn-group > .btn-group {
	    float: right!important;
	}

    #ihf-main-container .ihf-listing-detail .pagination {
        min-width: 134px;
    }
}

@media print{
	.header-wrapper, .entry-title, p#breadcrumbs ,footer, .sidebar, .amh-fixed-header-nav, .ip-banner{
		display:none;
	}
	#content-sidebar #content{
		width:100% !important;
	}
}
