#miles_filter * {
	vertical-align: middle;
}

#miles {
	text-align: center;
	color: var(--font-color);
}

.range_filter_text {
	display: inline-block;
	margin-left: 10px;
	margin-right: 10px;
	font-size: 20px;
}

#airport-id {
	width: 145px;
}

#search_results,
.search_results {
	background: white;
	padding: 0;
	margin: 0;
	list-style: none;
	border: 1px solid var(--primary);
	max-height: 322px;
	overflow-y: auto;
	border: 2px solid var(--primary);
	border-radius: 3px;
	box-shadow: 0 12px 24px -10px rgba(0,0,0,0.2);

}

#search_results:empty,
.search_results:empty {
	display: none;
}

#search_results li,
.search_results li {
	cursor: pointer;
	padding: 18px 15px;
	background-color: white;
	background-image: url(../img/plane-transparent.svg);
	background-repeat: no-repeat;
	background-position: 22px center;
	background-size: 22px 19px;
	border: 1px solid white;
	border-top-color: var(--dark-blue);
	position: relative;
	padding-left: 61px;
	padding-right: 85px;
}

#search_results li:hover,
.search_results li:hover {
	background-color: var(--lighter-blue);
	background-image: url(../img/plane-light-blue.svg);
	border: 1px solid var(--light-blue);
}

#search_results li:hover + li,
.search_results li:hover + li {
	border-top-color: white;
}

#search_results::-webkit-scrollbar,
.search_results::-webkit-scrollbar {
	width: 8px;              /* width of the entire scrollbar */
	background-color: #E7F5FF;  /* color of the scrollbar */
}

#search_results::-webkit-scrollbar-thumb,
.search_results::-webkit-scrollbar-thumb {
	background: var(--dark-blue);    /* color of the thumb */
	border-radius: 4px;    /* radius of the scrollbar thumb */
}

#search_results::-webkit-scrollbar-track,
.search_results::-webkit-scrollbar-track {
	background: #E7F5FF;  /* color of the track */
}

li .aiport_id {
	font-size: 24px;
	line-height: 1.29;
	font-weight: bold;
	color: var(--dark-blue);
	position: absolute;
	top: 50%;
	right: 23px;
	transform: translate(0, -50%);
}

li:hover .aiport_id {
	color: var(--light-blue);
}

.airport_name {
	margin-bottom: 4px;
}

.airport_city {
	font-size: 14px;
	line-height: 1.29;
}

#more_suggestions {
	font-weight: bold;
}

.search_field_wrapper {
	display: inline-block;
	position: relative;
	margin-right: 10px;
}

.search_field_wrapper.loading:after {
	content: '';
	width: 55px;
	height: 55px;
	background-image: url(../img/loader.svg);
	display: block;
	position: absolute;
	background-size: cover;
	top: -7px;
	right: 5px;
}

#autocomplete,
.autocomplete {
	position: absolute;
	display: none;
	text-align: left;
	left: 0;
	width: 100%;
	bottom: 0;
	transform: translate(0, 100%);
	z-index: 1;
}

#more_suggestions {
	background-image: none;
}

#autocomplete.active,
.autocomplete.active {
	display: block;
}

#search_button {
	position: relative;
}

.loading #search_button {
	color: transparent;
}

.loading #search_button:after {
	content: '';
	position: absolute;
	display: block;
	width: 50px;
	height: 50px;
	background-size: cover;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#miles_filter {
	display: inline-block;
	position: relative;
}

.miles_filter_inside {
	background-color: white;
	position: relative;
	z-index: 2;
}

.home .miles_filter_inside {
	padding: 24px 31px;
	border-radius: 4px;
	box-shadow: 0 12px 24px -10px rgb(36 48 110 / 20%);
	border: 2px solid var(--transparent-light-blue);
}

.clear_button {
	width: 10px;
	height: 10px;
	position: absolute;
	top: 50%;
	right: 11px;
	cursor: pointer;
	transform: translate(0, -50%);
	background-image: url(../img/close-grey.svg);
	display: none;
}

.show_clear_button .clear_button {
	display: block;
}

.back_search,
.search_icon,
.close_search {
	display: none;
}

.suggestion .disclaimer {
	background-color: #808080;
	color: white;
	font-size: 12px;
	line-height: 15px;
	border-radius: 10px;
	display: inline-block;
	position: absolute;
	top: 8px;
	right: 20px;
	padding: 2px 10px;
	display: none;
}

.unavailable .disclaimer {
	display: block;
}

li.unavailable .aiport_id {
	color: #c6c6c6;
}

li.unavailable {
	color: #c6c6c6;
	pointer-events: none;
}

#search_results li.unavailable,
.search_results li.unavailable {
	background-image: url(../img/plane-unavailable.svg);
}

body:not(.mobile-search) #airport-id:not(.has-value):not(:focus) + label {
	left: 50%;
	transform: translate(-50%, 0);
	white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 991px) {
	.home #airport-id {
		width: 105px;
	}

	.home .miles_filter_inside {
		padding: 20px 10px;
	}

	.home .range_filter_text {
		font-size: 18px;
	}

	body.home:not(.mobile-search) #airport-id:not(.has-value):not(:focus) + label {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.miles_filter_inside {
		padding: 16px 22px 24px;
		text-align: center;
	}

	#search_button {
		display: block;
		width: 100%;
		margin-top: 21px;
		max-width: 374px;
		margin-left: auto;
		margin-right: auto;
	}

	.search_field_wrapper {
		margin-right: 0;
		max-width: calc(100% - 164px);
	}

	#miles_filter {
		display: block;
	}

	li .aiport_id {
		right: 17px;
	}

	.suggestion .disclaimer {
		right: 17px;
	}

	#search_results li, .search_results li {
		padding-left: 50px;
		background-position: 15px center;
	}

	.home .miles_filter_inside {
		padding: 16px 20px 24px;
	}
}
