/**
 * Fast search
 */
#quick-search {
	background: url('../img/fastsearch.gif') no-repeat;
	height: 58px;
	float: left;
	font-size: 16px;
	padding: 0;
	width: 621px;
	margin: 0 0px 0 0;
	text-align: left;
}	
	#quick-search form {
		padding: 16px 16px 0 53px;
		margin: 0;
	}
	#quick-search .right-side {
		height: 58px;
		width: 10px;
		float: right;
		background: url('../img/fastsearch_right.gif') no-repeat top right;
	}
	#quick-search h2,
	#quick-search p {
		font-size: 16px;
		font-weight: normal;
		margin: 0;
		display: inline;
	}
	#quick-search input,
	#quick-search button {
		vertical-align: middle;
	}
	
	#quick-search input {
		padding: 4px 4px 2px 4px; 
		margin:0;
		border: 1px solid #949494;
		width: 310px;
		height: 19px;
		font: 12px Tahoma, sans-serif;
	}
		/* when input box contains sample query */
		#quick-search input.sample-query {
			color: gray;
		}
	
	#quick-search button.primary {
		background-image: url('../img/form/submit-button-red-100px.gif');
		width: 100px;
	}

	/* IE does not honor spaces between elements - so we use margins instead */
	#quick-search h2,
	#quick-search input {
		margin-right: 0.5em;
	}

	#quick-search .suggest {
		position: absolute;
		background: white;
		width: 340px; /* as wide as input box */
		border: 1px solid #949494;
		border-collapse: collapse;
	}
		#quick-search .suggest th {
			text-align: left;
			font-weight: normal;
			padding-left: 4px;
			font-size: 12px;
		}
		#quick-search .suggest td {
			text-align: right;
			color: #c00;
			padding-right: 4px;
			font-size: 10px;
		}
		#quick-search .suggest tr.selected th,
		#quick-search .suggest tr.selected td {
			background-color: #c00;
			color: white;
		}




/**
 * More exact search
 */
#exact-search .box-content {
	padding: 0 0 8px 0;
}

	#exact-search form {
		margin: 0;
	}

	/* block containing label and it's associated control */
	#exact-search p {
		padding-top: 3px;
		clear: both;
		margin: 0;
		line-height: 22px;
	}
	
	/**
	 * The height of each row is 25px
	 */
	
	/* label in front of input control */
	#exact-search p .first-child {
		display: block;
		width: 65px;
		padding-right: 3px;
		float: left;
		text-align: right;
		font-size: 11px;
	}

	/* block of input controls */
	#exact-search p .last-child {
		display: block;
		width: 135px;
		float: left;
	}
		#exact-search p .last-child select {
			height: 23px;
			padding: 1px;
			border: 1px solid #949494; /* medium gray */
			width: 133px;
		}
		
		#exact-search p .last-child .multi-select {
			display: block;
			width: 135px;
			max-height: 15em;
			overflow: auto;
		}
		
		#exact-search p .last-child input.type-text,
		#exact-search p .last-child input.type-rangetext {
			height: 15px;
			padding: 4px 1px;
			border: 1px solid #949494; /* medium gray */
		}
			#exact-search p .last-child input.type-text {
				width: 130px;
			}
			#exact-search p .last-child input.type-rangetext {
				width: 59px;
			}
	
		#exact-search p .last-child .dash {
			padding: 0 2px
		}

		#exact-search p .last-child label {
			font-size: 11px;
		}

		#exact-search p .last-child .checkbox-line {
			display: block;
			line-height: 20px;
		}

	#exact-search .leasing-fields {
		border-top: 1px solid #ccc; /* small separator line */
		padding-top: 6px;
		margin: 4px 0 12px 0;
		clear: both;
		float: left;
		background-color: #f3f3f3; /* This is needed for IE to adjust opacity */
	}
	#exact-search .group-btn {
		display: block;
		text-align: center;
		font-weight: bold;
		clear: both;
		color: #000;
		padding: 8px 0;
	}
		#exact-search .group-btn  img {
			vertical-align: middle;
		}

	#exact-search .extra-fields {
		border-top: 1px solid #ccc; /* small separator line */
		padding-top: 6px;
		margin-top: 12px;
		clear: both;
		float: left;
		background-color: #f3f3f3; /* This is needed for IE to adjust opacity */
	}
		#exact-search .extra-fields p .first-child {
			font-weight: normal;
			color: #252525; /* almost black */
		}
	
	#exact-search p.contains-button {
		text-align: center;
	}
		#exact-search button.primary {
			background-image: url('../img/form/submit-button-red-172px.gif');
			width: 172px;
		}


/**
 * Saved searches
 */
#saved-searches .box-content {
	padding: 8px 0px;
}
	#saved-searches table {
		border-collapse: collapse;
		width: 100%;
	}

	#saved-searches table th {
		font-weight: normal;
		text-align: left;
	}
	#saved-searches table .hide {
		display: table-row;
	}

	#saved-searches table th,
	#saved-searches table td {
		vertical-align: top;
		padding: 3px;
	}
		#saved-searches table tr.even {
			background: white;
		}
	#saved-searches table td img {
		float: right;
		margin: 3px; 
		vertical-align: middle;
	}

	#saved-searches table td a {
		color: #c00;
	}

	#saved-searches form {
		margin: 0;
	}
	#saved-searches .expander img {
		float:none;
	}


/**
 * Favorites
 */
#favorites .box-content {
	padding: 8px 2px;
}
	#favorites form {
		margin: 0;
	}
	#favorites table th {
		font-weight: normal;
		text-align: left;
	}
	#favorites table th,
	#favorites table td {
		vertical-align: top;
	}
	
	#favorites p {
		text-align: center;
		margin: 0 0 0 0;
	}
		#favorites button.primary {
			background-image: url('../img/form/submit-button-red-172px.gif');
			width: 172px;
		}
	
	#favorites span span span{
		padding-left:32px;
		background: transparent url('../img/hearts.gif') no-repeat 3px center;
	}

#comparison-box .box-content {
	padding: 8px 2px;
}
	#comparison-box table th {
		font-weight: normal;
		text-align: left;
	}
	#comparison-box table th,
	#comparison-box table td {
		vertical-align: top;
	}

/**
 * Advertisements of cars above search results
 */
#search-carads {
	margin: 0;
	padding: 5px 0 0 0;
}
	#search-carads li {
		list-style-type: none;
		display: block;
		float: left;
		width: 202px;
		font-size: 11px;
		padding: 0 5px 0 0;
	}
		#search-carads li img {
			float: left;
			margin: 0 5px 0 0;
		}



/**
 * Search results
 */
#search-results {
	clear: both;
	padding-top: 0.5em;
}

	#search-results .banner {
		width: 100%;
		text-align: center;
	}
	
	#search-results form {
		padding: 0;
		margin: 0;
	}

	/**
	 * Status bar with text like "Found n results for query Bar"
	 */
	#search-results .status-bar {
		border-top: 1px dashed #c6c6c6;
		border-bottom: 1px dashed #c6c6c6;
		color: #252525; /* almost black */
		line-height: 19px;
		padding: 2px 0;
	}

	#search-results tbody.banner td{
		border-bottom: 1px dashed #c6c6c6;
		padding: 10px 0;
	}

	#search-results .status-bar-2 {
		background-color: #fff3c1;
	}
	
	#search-results .status-bar p,
	#search-results .status-bar h2 {
		margin: 0;
	}

	#search-results .status-bar h2 {
		float: left;
		width: 475px;
		font-size: 14px;
		font-weight: normal;
		padding: 8px 0 8px 6px;
	}
	#search-results  td.if_link a {
		text-decoration: none;
		color: #000;
	}

	#search-results .status-bar p.nav {
		float: right;
		text-align: right;
		font-size: 11px;
		padding: 8px 6px 8px 0;
	}

		#search-results .status-bar p.nav span,
		#search-results .status-bar p.nav a {
			border: 1px solid #c6c6c6;
			background: white;
			font-size: 16px;
			padding: 0 1px;
		}
		#search-results .status-bar p.nav span {
			color: gray;
			margin-left: 0.5em;
		}
		#search-results .status-bar p.nav a:hover {
			text-decoration: none;
			border-color: #c00;
		}

	/**
	 * Toolbar with tools: show/hide images, currency, taxes
	 */
	#search-results .toolbar {
	}
	
		#search-results .toolbar p {
			margin: 0;
			padding: 5px 10px;
		}
		
		#search-results .toolbar .image-tools {
			float: left;
		}
			#search-results .toolbar .image-tools a {
				padding-left: 20px;
				background: url('../img/image.gif') no-repeat left center;
			}
		#search-results .toolbar .save-search {
			margin-left: 110px;
			display: block;
		}
			#search-results .toolbar .save-search a{
				padding-left: 22px;
				background: url('../img/rss_add.gif') no-repeat left center;
			}
			#search-results .toolbar .save-search  span{
				display: none;
			}
			#search-results .toolbar .save-search  span input {
				width: 159px
			}
			#search-results .toolbar .save-search  span .btn{
				background-image: url('../img/form/submit-button-red-77px.gif');
				width: 77px;
				height: 25px;
				margin: 4px 5px 0 0 ;
				border: none;
				color: #fff;
			}



		#search-results .toolbar .price-tools {
			float: right;
			padding-left: 20px;
			background: url('../img/money.gif') no-repeat left center;
		}
			#search-results .toolbar .price-tools select,
			#search-results .toolbar .price-tools input {
				border: none;
				vertical-align: middle;
			}

	/**
	 * Table of search results
	 */
	#search-results table {
		border-collapse: collapse;
		width: 100%;
	}
		/**
		 * Table heading
		 */
		#search-results table thead {
		}
			#search-results table thead tr {
				background: url('../img/search-table-th.gif') repeat-x;
				height: 28px;
				line-height: 28px;
				font-size: 11px;
			}
		
			#search-results table thead th {
				text-align: left;
				padding: 0 5px;
			}
			
			#search-results table thead th a {
				color: #252525;
			}
				/**
				 * On sorted columns arrow points either up or down
				 */
				#search-results table thead th.sort-asc a,
				#search-results table thead th.sort-desc a {
					background-repeat: no-repeat;
					background-position: right center;
					padding-right: 1em;
				}
				#search-results table thead th.sort-asc a {
					background-image: url('../img/sort-asc.gif');
				}
				#search-results table thead th.sort-desc a {
					background-image: url('../img/sort-desc.gif');
				}
			
			/**
			 * Left side of table heading
			 */
			#search-results table thead th.first-child {
				padding: 0;
			}
				#search-results table thead th.first-child span {
					background: url('../img/search-table-left.gif') no-repeat top left;
					padding-left: 10px;
					height: 28px;
					display: block;
				}
				
			/**
			 * Right side of table heading
			 */
			#search-results table thead th.last-child {
				padding: 0;
			}
				#search-results table thead th.last-child span {
					background: url('../img/search-table-right.gif') no-repeat top right;
					padding-right: 10px;
					height: 28px;
					display: block;
				}
			
			/**
			 * Column headings by type
			 */
			#search-results table thead th.image {
				padding: 0;
			}
			#search-results table thead th.image a img {
				margin-top: 6px;
			}
			
			#search-results table thead th.fuel,
			#search-results table thead th.gear {
				text-align: center;
			}
			
			#search-results table thead th.price {
				text-align: right;
			}

		
		/**
		 * Table body
		 */
		#search-results table td.border-left, #search-results table td.border-right {	
			line-height:1px;
			padding: 0;
			width: 1px;
		}
		#search-results table  td.border-top, #search-results table  td.border-bottom {
			height: 2px;	
			line-height:2px;
			padding:0;
		}
		#search-results table tbody.emphasize {
		}
	
		#search-results table tbody.emphasize td {
			font-weight: bold;
		}

		#search-results table tbody.emphasize td.border-top {
			border-top: 2px solid #FFB584;
		}
		#search-results table tbody.emphasize td.border-left {
			border-right: 2px solid #FFB584;
		}
		#search-results table tbody.emphasize td.border-right {
			border-left: 2px solid #FFB584;
		}
		#search-results table tbody.emphasize td.border-bottom {
			border-bottom: 2px solid #FFB584;
		}
		
		#search-results table tbody {
		}
			#search-results table tbody td {
				padding: 5px;
				vertical-align: top;
				font-size: 14px;
			}
			
			#search-results table tbody td.border-bottom {
				border-bottom: 1px dashed #c6c6c6;
			}
			#search-results table tbody.emphasize tr.data td {
				border: none;
			}
			/**
			 * Left and right side of table body
			 */
			#search-results table tbody td.first-child {
				padding-left: 10px;
			}
			#search-results table tbody td.last-child {
				padding-right: 10px;
			}
			
			/**
			 * Table columns by type
			 */
			#search-results table tbody td.image a,
			#search-results table tbody td.image a img {
				display: block;
			}
			
			#search-results table tbody td.make-and-model .description {
				font-size: 12px;
				display: block;
				text-align: left;
				margin-top: 0.5em;
				font-weight: normal;
			}
				#search-results table tbody td.make-and-model .added {
					color: #888;
				}
				#search-results table th.year {
					text-align: right;
				}
			
			#search-results table tbody td.fuel,
			#search-results table tbody td.gear {
				text-align: center;
			}
			
			#search-results table tbody td.aircond {
				text-align: left;
			}
			#search-results table tbody td.year,
			#search-results table tbody td.price {
				text-align: right;
			}

			#search-results table tbody td.bargain-price {
				color:red;
			}
			#search-results table tbody td.export-price {
				color: #000;
				font-size: 11px;
				line-height: 12px;
				height:12px;
				padding: 0 10px;
				text-align: right;
			}
			#search-results table tbody td span {
				font-size: 10px;
				text-align: right;
			}
			
			/**
			 * Tools
			 */
			#search-results table tbody tr.tools td {
				vertical-align: bottom;
				height:40px;
			}
			/*	Giving width directly to td acted weirdly in IE and Opera.
				On both browser ~20px were gone somewhere into other dimension.
				*/
			#search-results table tbody tr.tools span {
				display:block;
				width:190px;
				height: 1px;
			}
			
			#search-results table tbody tr.tools span.notice {
				display:block;
				float: right;
				padding:0 3px;
			}
			#search-results table tbody .tools div {
				border-top: 1px dashed #c6c6c6;
				padding: 8px 0;
				display: none;
			}
				#search-results table tbody .tools a {
					background-repeat: no-repeat;
					background-position: left center;
					display: block;
					font-weight:normal;
					float: right;
					padding-left: 20px;
					height: 16px; /* icon height */
					line-height: 16px;
					font-size: 11px;
				}
				#search-results table tbody .tools a.add-to-comparisons {
					background-image: url('../img/add-to-comparisons.gif');
					padding-right: 1em;
				}
				#search-results table tbody .tools a.add-to-favorites {
					background-image: url('../img/add-to-favorites.gif');
				}


	#search-results .results-per-page {
		font-size: 10px;
		text-align: right;
		padding-top: 0.25em;
		margin: 0;
	}
		#search-results .results-per-page a,
		#search-results .results-per-page span,
		#search-results .results-per-page strong {
			padding-left: 0.5em;
		}

	/* Total of search results is highlighted as normal text between bold text */
	#search-results .summary {
		font-weight: bold;
		padding-right: 0.5em;
		width: 200px;
		float: left;
	}
		#search-results .summary strong {
			font-weight: normal;
		}
	/**
	 * Pager under search results table
	 */
	#search-results .page-nav {
		text-align: center;
		margin: 3em 0 2em 0;
	}
		
		/**
		 * Page numbers are in larger font
		 * and surrounded by border on hover.
		 */
		#search-results .page-nav .pages a,
		#search-results .page-nav .pages span,
		#search-results .page-nav .pages strong {
			font-size: 16px;
			padding: 0.20em 0.25em;
			border: 1px solid white;
		}
		#search-results .page-nav .pages span {
			color: gray;
		}

		#search-results .page-nav .pages .previous-page,
		#search-results .page-nav .pages .next-page {
			border: 1px solid #c6c6c6;
			font-size: 20px;
			padding: 0 0.5em;
		}

		#search-results .page-nav .pages a:hover {
			border-color: #c00;
			text-decoration: none;
		}

	#search-results .footer-notice {
		margin: 5px 0;
		font-size: 11px;
	}



