/* =========================================================
   VANAFLY EXPLORE
   STANDARDIZED FROM / TO LOCATION RESULTS
   ========================================================= */


/* =========================================================
   POPOVER
   ========================================================= */

.vf-explore .vf-location-popover {
	position: absolute;

	top: calc(100% + 8px);
	left: 0;
	right: auto;

	z-index: 10000;

	box-sizing: border-box;

	width: 450px;
	max-width: min(
		450px,
		calc(100vw - 32px)
	);

	margin: 0;
	padding: 8px;

	overflow: hidden;

	border: 1px solid #dfe4ea;
	border-radius: 12px;

	background: #fff;

	box-shadow:
		0 12px 30px rgba(0, 0, 0, .15);
}


.vf-explore .vf-location-popover[hidden] {
	display: none !important;
}


/* =========================================================
   RESULTS SCROLLER
   ========================================================= */

.vf-explore .vf-location-results {
	box-sizing: border-box;

	width: 100%;

	max-height: min(
		450px,
		calc(100dvh - 190px)
	);

	margin: 0;
	padding: 0;

	overflow-x: hidden;
	overflow-y: auto;

	background: #fff;

	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;

	scrollbar-width: thin;
	scrollbar-color:
		#cfd6dc
		transparent;
}


.vf-explore .vf-location-results::-webkit-scrollbar {
	width: 6px;
}


.vf-explore .vf-location-results::-webkit-scrollbar-track {
	background: transparent;
}


.vf-explore .vf-location-results::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #cfd6dc;
}


.vf-explore .vf-location-results::-webkit-scrollbar-thumb:hover {
	background: #bfc8cf;
}


/* =========================================================
   COUNTRY GROUP
   ========================================================= */

.vf-explore .vf-location-group {
	display: block;
	width: 100%;
}


.vf-explore
.vf-location-group
+
.vf-location-group {
	margin-top: 8px;
	padding-top: 8px;

	border-top: 1px solid #e7ebef;
}


/* =========================================================
   COUNTRY HEADING
   ========================================================= */

.vf-explore .vf-location-country {
	box-sizing: border-box;

	display: flex;
	align-items: center;

	gap: 9px;

	width: 100%;

	padding:
		9px
		10px
		7px;

	color: #252f3a;
}


.vf-explore
.vf-location-country__flag {
	display: block;

	flex: 0 0 24px;

	width: 24px;
	height: 16px;

	object-fit: cover;

	border: 1px solid rgba(25, 35, 45, 0.1);
	border-radius: 2px;

	background: #fff;
}

.vf-explore
.vf-location-country__name {
	min-width: 0;

	overflow: hidden;

	color: #252f3a;

	font-size: 14px;
	line-height: 19px;
	font-weight: 700;

	white-space: nowrap;
	text-overflow: ellipsis;
}


/* =========================================================
   RESULT ROW
   ========================================================= */

.vf-explore .vf-location-result {
	position: relative;

	box-sizing: border-box;

	display: grid;

	grid-template-columns:
		36px
		minmax(0, 1fr);

	align-items: center;

	column-gap: 10px;

	width: 100%;
	min-height: 58px;

	margin: 0;
	padding:
		8px
		10px;

	border: 0;
	border-radius: 8px;

	outline: 0;

	background: #fff;

	box-shadow: none;

	color: #171717;

	font: inherit;

	text-align: left;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	-webkit-tap-highlight-color: transparent;
}


.vf-explore .vf-location-result:hover,
.vf-explore .vf-location-result:focus,
.vf-explore .vf-location-result:focus-visible,
.vf-explore .vf-location-result:active {
	border: 0;

	outline: 0;

	background: #f2f7fb;

	box-shadow: none;
}


/* =========================================================
   ICON
   ========================================================= */

.vf-explore
.vf-location-result__icon {
	box-sizing: border-box;

	grid-column: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	min-width: 36px;

	margin: 0;
	padding: 7px;

	overflow: hidden;

	border-radius: 8px;

	background: #f0f3f5;

	font-size: 0;
	line-height: 0;

	pointer-events: none;
}


.vf-explore .vf-location-result__icon img {
	width: 19px;
	height: 19px;
	min-width: 19px;
	max-width: 19px;

	opacity: 1;

	filter:
		brightness(0)
		saturate(100%)
		invert(39%)
		sepia(11%)
		saturate(684%)
		hue-rotate(158deg)
		brightness(95%)
		contrast(89%);
}


/* =========================================================
   TEXT
   ========================================================= */

.vf-explore
.vf-location-result__content {
	grid-column: 2;

	display: flex;
	flex-direction: column;
	justify-content: center;

	min-width: 0;
}


.vf-explore
.vf-location-result__topline {
	display: flex;
	align-items: baseline;

	gap: 9px;

	width: 100%;
	min-width: 0;
}


.vf-explore
.vf-location-result__title {
	flex: 1 1 auto;

	min-width: 0;

	overflow: hidden;

	color: #171717;

	font-size: 14px;
	line-height: 19px;
	font-weight: 700;

	white-space: nowrap;
	text-overflow: ellipsis;
}


.vf-explore
.vf-location-result__code {
	flex: 0 0 auto;

	margin-left: auto;

	color: #687786;

	font-size: 12px;
	line-height: 17px;
	font-weight: 600;

	white-space: nowrap;
}


.vf-explore
.vf-location-result__secondary {
	display: block;

	min-width: 0;

	margin-top: 3px;

	overflow: hidden;

	color: #7d8793;

	font-size: 10px;
	line-height: 14px;
	font-weight: 600;

	letter-spacing: .045em;

	white-space: nowrap;
	text-overflow: ellipsis;
}


/* =========================================================
   CITY
   ========================================================= */

.vf-explore
.vf-location-result--city {
	min-height: 60px;

	border-radius: 8px;
}


.vf-explore
.vf-location-result--city
.vf-location-result__title {
	color: #168fda;

	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
}


.vf-explore
.vf-location-result--city
.vf-location-result__secondary {
	color: #7d8793;
}


/* =========================================================
   AIRPORT CHILD
   ========================================================= */

.vf-explore
.vf-location-result--child {
	grid-template-columns:
		22px
		30px
		minmax(0, 1fr);

	column-gap: 9px;

	min-height: 56px;

	padding:
		7px
		10px
		7px
		16px;

	border-top: 1px solid #eef1f4;

	border-radius: 0;
}


/*
 * Dedicated hierarchy / indentation column.
 */

.vf-explore
.vf-location-result--child
.vf-location-result__branch {
	position: relative !important;

	top: auto !important;
	left: auto !important;

	grid-column: 1;

	display: block !important;

	width: 22px;
	height: 100%;

	margin: 0;

	transform: none !important;

	pointer-events: none;
}


/*
 * Small tree connector showing that the airport
 * belongs to the city immediately above it.
 */

.vf-explore
.vf-location-result--child
.vf-location-result__branch::before {
	content: "";

	position: absolute;

	top: 0;
	right: 5px;

	width: 12px;
	height: 50%;

	border-left: 1px solid #d3dbe2;
	border-bottom: 1px solid #d3dbe2;

	border-radius:
		0
		0
		0
		6px;
}


/*
 * Airport icon.
 */

.vf-explore
.vf-location-result--child
.vf-location-result__icon {
	grid-column: 2;

	width: 30px;
	height: 30px;

	min-width: 30px;

	padding: 6px;
}


.vf-explore .vf-location-result--child .vf-location-result__icon img {
	width: 19px;
	height: 19px;
	min-width: 19px;
	max-width: 19px;

	opacity: 1;

	filter:
		brightness(0)
		saturate(100%)
		invert(39%)
		sepia(11%)
		saturate(684%)
		hue-rotate(158deg)
		brightness(95%)
		contrast(89%);
}

/*
 * Airport text.
 */

.vf-explore
.vf-location-result--child
.vf-location-result__content {
	grid-column: 3;
}


.vf-explore
.vf-location-result--child
.vf-location-result__title {
	color: #283340;

	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
}


.vf-explore
.vf-location-result--child
.vf-location-result__code {
	color: #168fda;

	font-size: 12px;
	line-height: 17px;
	font-weight: 600;
}


/* =========================================================
   STANDALONE AIRPORT
   ========================================================= */

.vf-explore
.vf-location-result--airport:not(
	.vf-location-result--child
) {
	min-height: 58px;
}


/* =========================================================
   ANYWHERE
   ========================================================= */

.vf-explore
.vf-location-result--anywhere {
	min-height: 58px;

	margin-bottom: 7px;

	border-bottom: 1px solid #e7ebef;

	border-radius:
		8px
		8px
		0
		0;
}


.vf-explore
.vf-location-result--anywhere
.vf-location-result__title {
	color: #168fda;

	font-size: 15px;
	font-weight: 700;
}


.vf-explore
.vf-location-result--anywhere
.vf-location-result__secondary {
	color: #687786;

	font-size: 11px;

	letter-spacing: 0;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.vf-explore
.vf-location-results__empty {
	box-sizing: border-box;

	min-height: 60px;

	display: flex;
	align-items: center;

	width: 100%;

	padding: 14px 12px;

	color: #707986;

	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
}


/* =========================================================
   FULLSCREEN
   ========================================================= */

.vf-explore__shell.is-fullscreen
.vf-location-popover {
	width: 460px;

	max-width: min(
		460px,
		calc(100vw - 40px)
	);
}


/* =========================================================
   TABLET
   ========================================================= */

.vf-explore__shell.is-tablet-layout
.vf-location-popover,

html.vf-explore-tablet-boot
.vf-location-popover {
	width: 450px;

	max-width: min(
		450px,
		calc(100vw - 32px)
	);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 759px) {

	.vf-explore
	.vf-location-popover {
		position: fixed;

		top: auto;

		right: 12px;

		bottom:
			calc(
				12px +
				env(safe-area-inset-bottom)
			);

		left: 12px;

		z-index: 12000;

		width: auto;
		max-width: none;

		max-height: min(
			72dvh,
			620px
		);

		margin: 0;
		padding: 8px;

		border-radius: 16px;

		background: #fff;

		box-shadow:
			0 14px 40px
			rgba(18, 25, 38, .22);
	}


	.vf-explore
	.vf-location-results {
		max-height:
			calc(
				min(
					72dvh,
					620px
				) -
				16px
			);
	}


	.vf-explore
	.vf-location-country {
		padding:
			10px
			8px
			7px;
	}


	.vf-explore
	.vf-location-country__flag {
		flex-basis: 24px;

		width: 24px;

		font-size: 22px;
	}


	.vf-explore
	.vf-location-country__name {
		font-size: 16px;
		line-height: 22px;
	}


	.vf-explore
	.vf-location-result {
		min-height: 58px;

		padding:
			8px
			8px;
	}


	.vf-explore
	.vf-location-result--city
	.vf-location-result__title {
		font-size: 16px;
		line-height: 21px;
	}


	.vf-explore
.vf-location-result--child {
	grid-template-columns:
		20px
		30px
		minmax(0, 1fr);

	column-gap: 8px;

	min-height: 56px;

	padding:
		7px
		8px
		7px
		14px;
}


	.vf-explore
	.vf-location-result--child
	.vf-location-result__title {
		font-size: 14px;
		line-height: 19px;
	}


	.vf-explore
	.vf-location-result--child
	.vf-location-result__code {
		font-size: 13px;
		line-height: 18px;
	}

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 390px) {

	.vf-explore
	.vf-location-popover {
		right: 8px;

		bottom:
			calc(
				8px +
				env(safe-area-inset-bottom)
			);

		left: 8px;
	}


	.vf-explore
	.vf-location-country__name {
		font-size: 15px;
	}


	.vf-explore
	.vf-location-result--city
	.vf-location-result__title {
		font-size: 15px;
	}


	.vf-explore
	.vf-location-result--child {
		padding-left: 28px;
	}

}