/**

 * Cars search — location autocomplete (scoped).

 */



.page-template-template-cars .pgz-car-search,

.page-template-template-cars-php .pgz-car-search,

.page-template-template-cars .pgz-car-search__inner,

.page-template-template-cars-php .pgz-car-search__inner,

.page-template-template-cars .pgz-car-search__form,

.page-template-template-cars-php .pgz-car-search__form {

	overflow: visible;

}



.page-template-template-cars .pgz-car-search__control--autocomplete,

.page-template-template-cars-php .pgz-car-search__control--autocomplete {

	justify-content: space-between;

	gap: var(--pgz-gap-8);

}



.page-template-template-cars .pgz-car-search__input,

.page-template-template-cars-php .pgz-car-search__input {

	flex: 1 1 auto;

	width: 100%;

	min-width: 0;

	height: 100%;

	padding: 0;

	border: none;

	background: transparent;

	font-family: inherit;

	font-size: var(--pgz-text-lg);

	font-weight: var(--pgz-weight-regular);

	line-height: var(--pgz-leading-164);

	color: var(--pgz-color-white-70);

}



.page-template-template-cars .pgz-car-search__input::placeholder,

.page-template-template-cars-php .pgz-car-search__input::placeholder {

	color: var(--pgz-color-white-70);

	opacity: 1;

}



.page-template-template-cars .pgz-car-search__input:focus,

.page-template-template-cars-php .pgz-car-search__input:focus {

	outline: none;

	color: var(--pgz-color-white);

}



.page-template-template-cars .pgz-car-search__input.is-selected,

.page-template-template-cars-php .pgz-car-search__input.is-selected {

	color: var(--pgz-color-white);

	font-weight: var(--pgz-weight-semibold);

}



.page-template-template-cars .pgz-car-search__control--autocomplete .pgz-car-search__field-icon,

.page-template-template-cars-php .pgz-car-search__control--autocomplete .pgz-car-search__field-icon {

	flex-shrink: 0;

}



.page-template-template-cars .pgz-car-search__field--location-autocomplete,

.page-template-template-cars-php .pgz-car-search__field--location-autocomplete {

	position: relative;

	overflow: visible;

}



.page-template-template-cars .pgz-car-search__field--location-autocomplete.is-open,

.page-template-template-cars-php .pgz-car-search__field--location-autocomplete.is-open {

	z-index: 200;

}



.page-template-template-cars .pgz-car-search__fields,

.page-template-template-cars-php .pgz-car-search__fields {

	overflow: visible;

}



.page-template-template-cars .pgz-location-autocomplete__dropdown,

.page-template-template-cars-php .pgz-location-autocomplete__dropdown {

	position: absolute;

	top: calc(100% + var(--pgz-gap-8));

	left: 0;

	z-index: 320;

	display: flex;

	flex-direction: column;

	width: 100%;

	min-width: 100%;

	max-height: 16.5rem;

	overflow: hidden;

	border-radius: var(--pgz-radius-12);

	background-color: var(--pgz-color-white);

	box-shadow: var(--pgz-shadow-card);

}



.page-template-template-cars .pgz-location-autocomplete__list,

.page-template-template-cars-php .pgz-location-autocomplete__list {

	margin: 0;

	padding: var(--pgz-gap-8) 0;

	list-style: none;

	overflow-y: auto;

	-webkit-overflow-scrolling: touch;

}



.page-template-template-cars .pgz-location-autocomplete__list > li,

.page-template-template-cars-php .pgz-location-autocomplete__list > li {

	margin: 0;

	padding: 0;

}



.page-template-template-cars .pgz-location-autocomplete__option,

.page-template-template-cars-php .pgz-location-autocomplete__option {

	display: flex;

	flex-direction: row;

	align-items: flex-start;

	gap: var(--pgz-gap-12);

	width: 100%;

	padding: var(--pgz-gap-12) var(--pgz-gap-16);

	border: none;

	background: transparent;

	text-align: left;

	cursor: pointer;

	font-family: inherit;

}



.page-template-template-cars .pgz-location-autocomplete__option:hover,

.page-template-template-cars .pgz-location-autocomplete__option.is-active,

.page-template-template-cars-php .pgz-location-autocomplete__option:hover,

.page-template-template-cars-php .pgz-location-autocomplete__option.is-active {

	background-color: var(--pgz-color-cream);

}



.page-template-template-cars .pgz-location-autocomplete__type,

.page-template-template-cars-php .pgz-location-autocomplete__type {

	flex: 0 0 auto;

	min-width: 3.75rem;

	padding: var(--pgz-gap-2) var(--pgz-gap-8);

	border-radius: var(--pgz-radius-full);

	background-color: var(--pgz-color-off-white);

	font-size: var(--pgz-text-base-sm);

	font-weight: var(--pgz-weight-semibold);

	line-height: var(--pgz-leading-140);

	color: var(--pgz-color-supportive-2);

	text-transform: capitalize;

}



.page-template-template-cars .pgz-location-autocomplete__body,

.page-template-template-cars-php .pgz-location-autocomplete__body {

	display: flex;

	flex: 1 1 auto;

	flex-direction: column;

	gap: var(--pgz-gap-2);

	min-width: 0;

}



.page-template-template-cars .pgz-location-autocomplete__label,

.page-template-template-cars-php .pgz-location-autocomplete__label {

	font-size: var(--pgz-text-base);

	font-weight: var(--pgz-weight-semibold);

	line-height: var(--pgz-leading-140);

	color: var(--pgz-color-black);

}



.page-template-template-cars .pgz-location-autocomplete__subtitle,

.page-template-template-cars-php .pgz-location-autocomplete__subtitle {

	font-size: var(--pgz-text-base-sm);

	font-weight: var(--pgz-weight-regular);

	line-height: var(--pgz-leading-140);

	color: var(--pgz-color-text-gray);

}



.page-template-template-cars .pgz-location-autocomplete__empty,

.page-template-template-cars-php .pgz-location-autocomplete__empty {

	margin: 0;

	padding: var(--pgz-gap-16);

	font-size: var(--pgz-text-base-sm);

	line-height: var(--pgz-leading-140);

	color: var(--pgz-color-text-gray);

	text-align: center;

}



.page-template-template-cars .pgz-car-search__field--dropoff-location.is-disabled,

.page-template-template-cars-php .pgz-car-search__field--dropoff-location.is-disabled {

	opacity: 0.65;

}



.page-template-template-cars .pgz-car-search__field--dropoff-location.is-disabled .pgz-car-search__input,

.page-template-template-cars-php .pgz-car-search__field--dropoff-location.is-disabled .pgz-car-search__input {

	cursor: default;

}



.page-template-template-cars .pgz-car-search__field--dropoff-location.is-disabled .pgz-car-search__input[readonly],

.page-template-template-cars-php .pgz-car-search__field--dropoff-location.is-disabled .pgz-car-search__input[readonly] {

	opacity: 0.85;

}



.page-template-template-cars .pgz-car-search__field--dropoff-location:not(.is-disabled) .pgz-car-search__input,

.page-template-template-cars-php .pgz-car-search__field--dropoff-location:not(.is-disabled) .pgz-car-search__input {

	pointer-events: auto;

	cursor: text;

}



/* Tablet — full-width location dropdown (pick-up & drop-off) */
@media (max-width: 1024px) and (min-width: 768px) {

	.page-template-template-cars .pgz-car-search__field--location-autocomplete.is-open,
	.page-template-template-cars-php .pgz-car-search__field--location-autocomplete.is-open {
		z-index: 330;
	}

	.page-template-template-cars .pgz-car-search__input,
	.page-template-template-cars-php .pgz-car-search__input {
		font-size: var(--pgz-text-base-sm);
	}

	.page-template-template-cars .pgz-location-autocomplete__dropdown,
	.page-template-template-cars-php .pgz-location-autocomplete__dropdown {
		left: 0;
		right: auto;
		width: 100%;
		min-width: 100%;
		max-width: min(22.5rem, calc(100vw - 3rem));
		max-height: 14rem;
		overflow: hidden;
	}

	.page-template-template-cars .pgz-car-search__field--dropoff-location .pgz-location-autocomplete__dropdown,
	.page-template-template-cars-php .pgz-car-search__field--dropoff-location .pgz-location-autocomplete__dropdown {
		left: auto;
		right: 0;
	}

	.page-template-template-cars .pgz-location-autocomplete__option,
	.page-template-template-cars-php .pgz-location-autocomplete__option {
		padding: var(--pgz-gap-12) var(--pgz-gap-14);
	}

	.page-template-template-cars .pgz-location-autocomplete__type,
	.page-template-template-cars-php .pgz-location-autocomplete__type {
		min-width: 3.25rem;
		font-size: var(--pgz-text-xs);
	}

	.page-template-template-cars .pgz-location-autocomplete__body,
	.page-template-template-cars-php .pgz-location-autocomplete__body {
		flex: 1 1 auto;
		min-width: 0;
		overflow: visible;
	}

	.page-template-template-cars .pgz-location-autocomplete__label,
	.page-template-template-cars-php .pgz-location-autocomplete__label,
	.page-template-template-cars .pgz-location-autocomplete__subtitle,
	.page-template-template-cars-php .pgz-location-autocomplete__subtitle {
		overflow: visible;
		text-overflow: unset;
		white-space: normal;
		word-break: break-word;
	}

	.page-template-template-cars .pgz-location-autocomplete__label,
	.page-template-template-cars-php .pgz-location-autocomplete__label {
		font-size: var(--pgz-text-base-sm);
	}

	.page-template-template-cars .pgz-location-autocomplete__subtitle,
	.page-template-template-cars-php .pgz-location-autocomplete__subtitle {
		font-size: var(--pgz-text-xs);
	}
}

/* Laptop / desktop — wider fields and readable suggestion panel */

@media (min-width: 1025px) {



	.page-template-template-cars .pgz-car-search__field--location-autocomplete,

	.page-template-template-cars-php .pgz-car-search__field--location-autocomplete {

		flex: 0 0 auto;

		width: 14.5rem;

		min-width: 14.5rem;

		max-width: 16rem;

	}



	.page-template-template-cars .pgz-location-autocomplete__dropdown,

	.page-template-template-cars-php .pgz-location-autocomplete__dropdown {

		width: 22.5rem;

		min-width: 22.5rem;

		max-width: min(28rem, calc(100vw - 4rem));

	}



	.page-template-template-cars .pgz-location-autocomplete__option,

	.page-template-template-cars-php .pgz-location-autocomplete__option {

		padding: var(--pgz-gap-14) var(--pgz-gap-16);

	}



	.page-template-template-cars .pgz-location-autocomplete__label,

	.page-template-template-cars-php .pgz-location-autocomplete__label {

		font-size: var(--pgz-text-base);

		white-space: normal;

	}



	.page-template-template-cars .pgz-location-autocomplete__subtitle,

	.page-template-template-cars-php .pgz-location-autocomplete__subtitle {

		white-space: normal;

	}

}



@media (min-width: 1280px) {



	.page-template-template-cars .pgz-car-search__field--location-autocomplete,

	.page-template-template-cars-php .pgz-car-search__field--location-autocomplete {

		width: var(--pgz-search-field-w);

		min-width: var(--pgz-search-field-w);

	}

}



@media (max-width: 767px) {

	.page-template-template-cars .pgz-location-autocomplete__dropdown,

	.page-template-template-cars-php .pgz-location-autocomplete__dropdown {

		left: 0;

		right: 0;

		width: 100%;

		min-width: 0;

		max-width: none;

		max-height: 14rem;

	}



	.page-template-template-cars .pgz-car-search__input,

	.page-template-template-cars-php .pgz-car-search__input {

		font-size: var(--pgz-text-base);

	}

}

/* Home header — cars location autocomplete */
.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__dropdown {
	position: absolute;
	top: calc(100% + var(--pgz-gap-8));
	left: 0;
	right: 0;
	z-index: 120;
	max-height: 14rem;
	overflow: auto;
	border-radius: var(--pgz-radius-10);
	background-color: var(--pgz-color-supportive-3);
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.35);
}

.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__item {
	display: block;
	width: 100%;
	padding: var(--pgz-gap-12) var(--pgz-gap-16);
	border: 0;
	background: transparent;
	text-align: left;
	font-family: var(--pgz-font-aileron);
	font-size: var(--pgz-text-base-sm);
	color: var(--pgz-color-white);
	cursor: pointer;
}

.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__item:hover,
.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__item:focus-visible {
	background-color: var(--pgz-color-navy);
}

.pgz-hotel-header__field--location-autocomplete .pgz-location-autocomplete__empty {
	margin: 0;
	padding: var(--pgz-gap-12) var(--pgz-gap-16);
	font-size: var(--pgz-text-base-sm);
	color: var(--pgz-color-white-70);
}


