/*
* Responsive Search Page
* Chock full of old fashioned, wholesome, grain-free code. 
* Sugar-free, gluten-free, and vegan. Good for all diets!
*/

#af-search-top {
	background: #104e8b;
	height: 290px;
}

section#af-search-freetext {
	position: relative;
	color: #FFF;
	top: -142px;
}

#af-search-container {
	box-shadow: 0 0 0 6px rgba(0,0,0,0.3);
}

/* Fixes columns to be equal heights // Solution found here: http://www.bootply.com/lyqtWesQhC */
.equal {  
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex:1 1 auto;
}

/** Fonts **/

.af-search-sm-head {
	font-size: .8em;
	text-transform: uppercase;
	font-weight: 600;
}

/** Freetext **/

#af-search-freetext-input {
	background: none;
	border-bottom: 2px solid #666;
	border-top: none;
	border-right: none;
	border-left: 1px solid #666;
	color: #FFF;
}

#af-search-freetext .input-group-addon {
	background-color: transparent;
	border-bottom: 2px solid #666;
	border-top: none;
	border-right: none;
	border-left: none;
	padding: 0 12px;
}

#af-search-freetext h4 {
	font-weight: 100;
}

/** Car Matches **/

.af-search-breadcrumb {
	padding: 0 2px;
	vertical-align: middle;
}

.af-search-match {
	border: 1px solid #D1D1D1;
	box-shadow: 0px 0px 1px rgba(209, 209, 209, .25), -1px 0px 1px rgba(209, 209, 209, .25), 1px 0px 1px rgba(209, 209, 209, .25);
	margin-bottom: 20px;
}

.af-search-heading {
	background: #C03245;
}
.af-search-heading div {	
	color: #FFF;	
	padding: 7px 7px 6px 11px;	
}

.af-search-title  {
	background: #222222;
	color: #FFF;
	padding-left: 11px;
	padding-bottom: 7px;
}

	/*.af-search-title h4 {
		padding-top: 30px;
	}*/
	
	span.af-search-title-trim {
		font-weight: 300;	
		display: inline-block;
		width: 90%;
	}
	
	.af-search-title img {
		padding: 0 10px 0 0;
	}
	
	.af-search-title .col-xs-8 {
		padding: 15px 0 15px 15px;
	}
	
.af-search-image {
  height:auto !important;
	position: absolute;
	z-index: 2;
	top: 7px;
	left: 7px;
}

/*.af-search-image img {
	position: relative;
	top: 50%;
	transform: translateY(-65%);
	padding: 0 10px 0 0;
}*/

<!-- if pricebooks/stock image, add top padding -->
img  {
	position: relative;	
	margin: 20px;
	top: 50px;
	height: 200px;
}
	
.af-search-image-bar {
	height: 5px;
	background: #C03245;
}

.af-search-pricebooks-img {
	display: block;
	max-width: 100%;
	height: auto;
	padding: 25px 0;
}

.af-search-price-breakdown {
	margin: 0 auto;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 20px;
	position: relative;
	left: 7px;
	color: #5B5B5B;
	border-right: 4px solid #d9d9d9;
}

.af-search-price-breakdown span.af-search-price-final {	
	padding-bottom: 10px;
}

span.af-search-pricelabel {
	font-size: 1.0em;
	text-align: right;
	padding-top: 8px;
	display: inline-block;
}

.af-search-price {
	font-size: 1.4em;	
	font-weight: 600;
	margin-bottom: 8px;
}

/*.af-search-table-finalprice {
	border-top: 1px solid #D5D5D5 !important;
	padding-top: 3px !important;
}*/

.af-search-price-divide {
	width: 80%;
	margin: 0 auto;
	height: 3px;
	border-top: 1px solid #E7E7E7 !important;
	border-bottom: 1px solid #F7F7F7 !important;
}

.af-search-pricelabel-final {
	font-size: 1.0em;
	color: #C03245;
	position: relative;
	top: 10px;
}

.af-search-price-final {
	color: #C03245;
	font-weight: 700;
	font-size: 2em;
	position: relative;
	top: 10px;
}

.af-search-internet-price {
	color: #C03245;
	font-weight: 600;
	padding-bottom: 20px;
	padding-left: 25px;
	border-top: 1px solid #D4D4D4;
}

	.af-search-internet-price .af-search-pricelabel-final {
		top: 5px;
		right: 10px;
	}

.af-search-incentives, .af-search-incentives-mobile {
	color: #FFF;
	background: #C03245;
	font-weight: 700;
	font-size: .85em;
	padding: 4px 10px 4px 215px;
	text-transform: uppercase;	
}

.af-search-specs-container {
	background: #F6F6F6;
	width: 375px;
}

span.af-search-color-icon {
	background: url('/images/af-search-color.png');
	width: 24px;
	height: 24px;
	display: inline-block;
	position: relative;
	top: 4px;
	margin-right: 12px;
}

span.af-search-mpg-icon {
	background: url('/images/af-search-mpg.png');
	width: 24px;
	height: 24px;
	display: inline-block;
	position: relative;
	top: 5px;
	margin-right: 12px;
}

span.af-search-engine-icon {
	background: url('/images/af-search-engine.png');
	width: 24px;
	height: 24px;
	display: inline-block;
	position: relative;
	top: 5px;
	margin-right: 12px;
}

.af-search-specs {
	padding: 0 0 18px 15px;
	color: #1F1F1F;
}		

.af-search-specs-color {
	padding-top: 18px;
}

.af-search-match-extras {
	padding: 10px 15px;
	border-top: 1px solid #DEDEDE;
}

.af-search-match-extras-item img {
	padding: 5px 15px 5px 0;
}
	

	
/** Disclaimer **/

section#af-search-disclaimer {
	position: relative;
	top: 25px;
}

section#af-search-disclaimer p {
	font-size: 13px;
	font-weight: 300;
}

#af-incentives {
	background: url('/images/homepage/incentives-background.png');
	display: block;        
}
	
.af-incentives-container {
	background-color: #fff;
	padding: 0 10px;
}

.af-incentives-top-text#af-pure-lease-top-text {
	font-size: 14px;
	font-style: italic;
	padding-left: 30px;
	padding-right: 30px;
}

#af-incentives-bodystyle-bg-extended {
	background-color: #fff;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
	height: 70px;
	position: absolute;
	width: 100%;
}

#af-rin-bodystyle-group {
	border-bottom: 1px solid #ddd;
	height: 70px;
	position: relative;
	text-align: center;
	z-index: 1000;
}

/*  #af-rin-bodystyle-group .af-btn {
	margin: 0 10px 10px 0;
	width: 185px;
}
*/
.af-rin-bodystyle {
	background-color: #eee;
	color: #222;
	float: left;
	font-weight: 700;
	height: 100%;
	line-height: 68px;
	transition: padding .2s, line-height .2s;
	overflow: hidden;
}

.af-rin-bodystyle:first-of-type {
	border-left: 1px solid #ddd;
}

.af-rin-bodystyle:last-of-type {
	border-right: 1px solid #ddd;
}

.af-rin-bodystyle:active,
.af-rin-bodystyle:focus {
	text-decoration: none;
}

.af-rin-bodystyle.af-brand-text {
	background-color: #fff;
	border-left: 1px solid #fff;
	border-right: 1px solid #fff;
	box-shadow: -2px 0 0 -1px #d5d5d5 inset, 2px 0 0 -1px #d5d5d5 inset;
	line-height: 1.2em;
	padding-bottom: 13px;
	padding-top: 13px;
}

.af-rin-bodystyle .af-svg-circle-twothirds-of-a-triangle-arrow-icon {
	display: none;
	height: 24px;
	transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	width: 24px;
}

.af-rin-bodystyle.af-brand-text .af-svg-circle-twothirds-of-a-triangle-arrow-icon {
	display: inline;
	margin-top: 3px;
}

#af-rin-vehicle-boxes {
	margin-top: 15px;
}

/*
.af-rin-hidden{
	display: none !important;
}
*/

.af-rin-model-box{
	background-repeat: no-repeat;
/*      background-position: center; */
	background-position: 50% 40px;
/*      background-color: black;*/
	background-color: #fff;
/*      background-size: cover;*/
	background-size: 230px;
	box-shadow: 0px 4px 5px 1px #aaa;
	cursor: pointer;
	display: block;
			margin: 0 auto 32px auto;
	overflow-y: hidden;
	position: relative;
}

/*
.af-rin-model-box.af-rin-collapsed {
	height: 233px !important;
	transition: height 0.5s;
	-webkit-transition: height 0.5s;
}
*/

.af-rin-model-box.af-rin-collapsed {
	height: 260px !important;
	transition: height 0.5s;
	-webkit-transition: height 0.5s;
}

.af-rin-model-box.af-rin-expanded {
/*	transition: max-height 0.5s;
	-webkit-transition: max-height 0.5s;*/
	transition: height .5s;
	-webkit-transition: height .5s;
}

.af-rin-model-box.af-rin-no-incentives .af-rin-arrow-left,
.af-rin-model-box.af-rin-no-incentives .af-rin-arrow-right,
.af-rin-model-box.af-rin-no-incentives .af-inc-offers-gradient,
.af-rin-model-box.af-rin-no-incentives .af-rin-expand 
.af-rin-model-box.af-rin-one-incentive .af-rin-arrow-left,
.af-rin-model-box.af-rin-one-incentive .af-rin-arrow-right {

	display: none;
}

.af-inc-model-gradient {

	bottom: 0;
/*      height: 235px;*/
/*      height: 112px;*/
	position: absolute;
/*      top: 0;*/
	width: 100%;
}

.af-rin-model-box div.af-rin-incentive-container{
	color: #000;
	display: block;
/*      height: 150px;*/
/*      height: 100px;*/
/*      margin-top: 120px;*/
/*      padding: 0 15%;*/
	padding-bottom: 10px;
	position: relative;
	text-align: center;
/*      top: 83px;*/
}

.af-rin-model-box .af-rin-incentive-container.af-rin-collapsed {
/*
	height: 100px !important;
	max-height: 100px;
	transition: height 1s;
	-webkit-transition: height 1s;
*/
}

.af-rin-model-box .af-rin-incentive-container.af-rin-expanded {
/*      height: 100%;*/
/*      max-height: 500px !important;
	transition: max-height 1s;
	-webkit-transition: max-height 1s;
*/
}

.af-rin-model-box h3{
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	left: 0;
	margin: 0;
	padding: 15px;
	position: absolute;
	text-align: left;
	top: 0;
}

.af-rin-offer-count {
	color: #999;
	font-weight: 400;
	position: absolute;
	right: 20px;
}

.af-rin-content {
	display: block;
	margin-bottom: 30px;
	margin-top: 150px;
	position: relative;
}

.af-rin-arrow-left{
/*
	cursor: pointer;
	position: absolute;
	top: 100px;
	left: 5%;
	*/
	background-clip: content-box;
	display: inline-block;
	position: absolute;
	top: 100px;
	width: 40px;
	z-index: 1000;
}

.af-rin-arrow-left .af-svg-arrow-icon {
	transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
}

.af-rin-arrow-left .af-svg-arrow-icon,
.af-rin-arrow-right .af-svg-arrow-icon {
	fill: #777;
	height: 40px;
	width: 40px;
}

.af-rin-arrow-left:hover .af-svg-arrow-icon,
.af-rin-arrow-right:hover .af-svg-arrow-icon {
	cursor: pointer;
	fill: #555;
}

.af-rin-arrow-right{
/*
	cursor: pointer;
	position: absolute;
	top: 100px;
	right: 5%;
	*/
	background-clip: content-box;
	background-color: transparent;
	display: inline-block;
	position: absolute;
	right: 0;
	top: 100px;
	transition: background-color .2s;
	-webkit-transition: background-color .2s;
	width: 40px;
	z-index: 1000;
}


.af-rin-incentive{
	display: block;
	height: 100%;
	overflow: hidden;
	padding-top: 15px;
	padding-left: 10px;
	padding-right: 10px;
	position: relative;
	width: 100%;
	border: 1px;
}

.af-rin-finance-subtext,
.af-rin-rebate-subtext{
	display: block;
	font-weight: 700;
	font-size: 1em;
	text-transform: uppercase;
}

.af-rin-content h4 {
	font-size: 1em;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
}

.af-rin-content h5 {
	font-size: 1.8em;
	font-weight: 600;
	margin-top: 3px;
}

.af-rin-content p {
	/*font-size: .9em;*/
	font-size: 14px;
	line-height: 1.6em;
	margin: 0px 0px 10px;
}

.af-rin-content .af-rin-lease-disclaimer,
.af-rin-content .af-rin-lease-disclaimer p
{
	font-size: 11px;
}

.af-rin-content p.af-rin-ymmt {
	font-weight: 700;
	margin-top: 10px;
}

.af-rin-content ul {
	padding: 0;
}

.af-rin-content li {
	list-style-type: none;
	font-weight: 400;
}

.af-rin-content .af-rin-rf-finance h4 {
	position: relative;
	top: -7px;
}

.af-rin-content h5 {
	display: inline;
	line-height: 0.3;
}

.af-rin-content h5 span {
	font-size: 0.7em;
}

.af-rin-content .af-rin-rf-or {
	text-align: center;
	text-transform: uppercase;
	margin: 25px 0;
}

.af-rin-content .af-rin-rf-or span {
	border-radius: 20px;
	background-color: #eee;
	color: #666;
	font-weight: 700;
	padding: 10px;
}

.af-rin-finance-rates{
	display: block;
	margin: 10px 0 10px 0;
}

.af-rin-rebate-amount{
	font-size: 1.8em;
	font-weight: 600;
	display: block;
}

.af-rin-trims{
	font-weight: 700;
}

.af-rin-expiration{
	color: #999;
	font-size: .9em;
	font-style: italic;
}

.af-rin-model-box .af-inc-offers-gradient {
/*      background-color: rgba(0, 0, 0, 0.8);*/
	background: url('/images/details/details-gradient.png') top repeat-x;
	bottom: 0;
/*      height: 35px;*/
/*      height: 20px;*/
	height: 70px;
/*      height: 112px;*/
	position: absolute;
	pointer-events: none;
	width: 100%;
}

.af-rin-expanded .af-inc-offers-gradient {
	height: 0;
}

.af-rin-expand {
	bottom: 10px;
	cursor: pointer;
	font-weight: 400;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 100;
}

.af-rin-expand .af-rin-expand-text {
	pointer-events: auto;
}

.af-rin-expand .af-svg-plus-icon,
.af-rin-expand .af-svg-minus-icon {
	height: 20px;
	pointer-events: auto;
	vertical-align: bottom;
	width: 20px;
}

.af-rin-expand .af-svg-minus-icon {
	display: none;
}

.af-rin-scion-model {
	text-transform: none;
}

.af-rin-no-incentives-text {
	border-radius: 20px;
	background-color: #eee;
	color: #666;
	font-weight: 700;
	margin: 0 auto;
	padding: 10px;
	position: relative;
	text-transform: uppercase;
	top: 10px;
	width: 180px;
}

#af-rin-no-incentives-found {
	background-color: #fff;
	border: 1px solid #E5E1E6;
	border-radius: 5px;
	padding: 10px 20px;
	text-align: center;
}

#af-rin-no-incentives-found p {
	margin: 0;
}

/** Media Specific **/

@media (max-width: 444px) {
	.af-search-price-breakdown .table {
		margin: 13px 0 0 0;
		width: 155px;		
	}	
	.col-xs-5, .col-xs-7 {
		width: 50%;
	}
	.af-search-internet-price .af-search-pricelabel-final {
		right: 0;
	}	
}

@media (min-width: 767px) and (max-width: 991px) {

	.af-rin-model-box h3.af-long-model-name {
		width: 250px;
		padding: 7px 15px;
	}

	.af-search-internet-price-nobreakdown {
		width: 50%;
		border-top: 0;
		text-align: left;
		line-height: 20px;
		top: 0;
	}
	
	.af-search-internet-price-nobreakdown span {
		display: block;
	}
	
	.af-search-internet-price-nobreakdown .af-search-pricelabel-final {
		right: 0;
	}
	
}

@media (max-width: 767px) {		
	
	#af-search-top {
		background: #448CCB;
		height: 40px;
		border-top: 5px solid #346A98;
		color: #FFF;
	}
	
	.af-search-top-text {
		position: relative;
		top: 7px;
		left: 20px;
		text-transform: uppercase;
		font-weight: 600;
	}
	
	section {
		padding: 0;	
	}
	
	#af-search-container {
		box-shadow: none;
	}
	
	section#af-search-disclaimer {
		padding: 0 10px 30px 10px;
	}
	 
	.col-xs-5, .col-xs-7 {
		width: 50%;
	}
	
	.af-search-internet-price .af-search-pricelabel-final {
		right: 0;
	}
	
	.af-search-internet-price-nobreakdown {
		width: 50%;
		border-top: 0;
		text-align: left;
		padding-top: 20px;
		line-height: 20px;
		top: 0;
	}

	.af-incentives-container {
		width: 100%;
	}

	.af-rin-model-box h3.af-long-model-name {
		font-size: 14px;
	}


	.af-rin-model-box h3.af-long-model-name-mobile {
		padding: 7px 15px;
		width: 185px;
	}
}

@media (max-width: 991px) {	
	.af-search-price-breakdown .table {
		height: 115px;
	}
	.af-search-specs-int {
		border-right: none;
	}
	.af-search-specs-ext, .af-search-specs-int {
		border-bottom: none;
	}		
	td.text-right {
		width: 70%;
	}
}

@media (min-width: 768px) {	
	section#af-search {
		position: relative;
		top: -40px;
	}

	#af-incentives {
		width: 420px;
	}

	.af-incentives-top-text {
		text-align: center;
	}

	.af-rin-model-box{
        background-repeat: no-repeat;
/*      background-position: center; */
        background-position: 50% 40px;
/*      background-color: black;*/
        background-color: #fff;
/*      background-size: cover;*/
        background-size: 230px;
        box-shadow: 0px 4px 5px 1px #aaa;
        display: block;
        margin: 0 auto 30px auto;
        overflow-y: hidden;
        position: relative;
        width: 355px;
    }
	
	.af-rin-content .af-rin-rf-rebate {
		display: inline-block;
		position: relative;
		right: 10px;
	}

	.af-rin-content .af-rin-rf-finance {
		display: inline-block;
		left: 10px;
		position: relative;
	}

	.af-rin-content .af-rin-rf-or {
		display: inline-block;
		position: relative;
		text-align: center;
		text-transform: uppercase;
		top: -25px;
		margin: 0;
	}

	.af-rin-content .af-rin-rf-rates {
		display: inline;
		left: 97px;
		position: relative;
	}
}

@media (min-width: 992px) {	
	#af-incentives {
		width: 595px;
	}

	.af-rin-model-box{
        width: 520px;
    }
	
	.af-search-price-breakdown .table {
		height: 115px;
	}
	
	.af-search-internet-price {
		height: 149px;
	}
	
	.af-search-price-breakdown .table {
		height: auto;
	}	

	.af-rin-content .af-rin-rf-rebate {
		right: 20px;
	}

	.af-rin-content .af-rin-rf-finance {
		left: 20px;
	}

	.af-rin-content .af-rin-rf-rates {
		left: 107px;
	}
}
