/**
 * Drivelux Transfer Form 2.7.0
 * Shared component: Google Places and route metrics
 *
 * Source architecture module. Loaded directly by WordPress.
 */

.dltf-place-host {
	position: relative;
}

.dltf-place-host:focus-within {
	z-index: 40;
}

.dltf-places {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	max-height: min(390px, 56vh);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 13px;
	background: #18191a;
	box-shadow: 0 24px 65px rgba(0, 0, 0, .5);
	color: var(--dltf-text);
	backdrop-filter: blur(18px);
}

.dltf .dltf-places[hidden] {
	display: none !important;
}

.dltf .dltf-places:not([hidden]) {
	display: block !important;
}

.dltf-places__option {
	display: flex;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 58px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	padding: 11px 14px;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .075) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--dltf-text) !important;
	text-align: left;
	box-shadow: none !important;
	transition: background .16s ease;
}

.dltf-places__option:hover,
.dltf-places__option:focus,
.dltf-places__option.is-active {
	background: rgba(210, 161, 91, .11) !important;
	outline: 0;
}

.dltf-places__option strong {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-places__option span {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	color: var(--dltf-muted);
	font-size: 12px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-places__message {
	display: block;
	padding: 14px;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.45;
}

.dltf-places__attribution {
	display: flex;
	min-height: 32px;
	align-items: center;
	justify-content: flex-end;
	padding: 7px 12px;
	border-top: 1px solid rgba(255, 255, 255, .075);
	color: rgba(245, 242, 236, .55);
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .01em;
}

.dltf-route-metrics {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px;
	border: 1px solid rgba(210, 161, 91, .26);
	border-radius: 12px;
	background: rgba(210, 161, 91, .055);
}

.dltf-route-metrics__item {
	display: grid;
	grid-template-columns: 20px auto;
	grid-template-rows: auto auto;
	column-gap: 9px;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 9px;
	background: rgba(255, 255, 255, .025);
}

.dltf-route-metrics__item > svg {
	grid-row: 1 / 3;
	align-self: center;
	width: 19px;
	height: 19px;
	color: var(--dltf-gold-light);
}

.dltf-route-metrics__item > span {
	color: var(--dltf-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.dltf-route-metrics__item > strong {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.dltf-route-metrics__status {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 4px 8px;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.4;
}

.dltf-route-metrics.is-loading .dltf-route-metrics__status::before {
	content: "";
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(210, 161, 91, .25);
	border-top-color: var(--dltf-gold-light);
	border-radius: 50%;
	animation: dltf-route-spin .75s linear infinite;
}

.dltf-route-metrics.is-error {
	border-color: rgba(226, 139, 128, .4);
	background: rgba(226, 139, 128, .065);
}

.dltf-route-metrics.is-error .dltf-route-metrics__status {
	color: var(--dltf-danger);
}

@keyframes dltf-route-spin {
	to { transform: rotate(360deg); }
}

.dltf-places__attribution img {
	display: block;
	width: 120px;
	height: auto;
	max-width: 100%;
}

.dltf-place-host {
	position: relative;
	cursor: text;
	transition: background .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.dltf-place-host:focus-within { z-index: 40; }

.dltf-place-host .dltf-places,
.dltf-place-host .dltf-places * { cursor: default; }

.dltf-place-host .dltf-places__option { cursor: pointer; }

.dltf-field-shell.dltf-place-host.is-place-active {
	z-index: 50;
	background: linear-gradient(180deg, rgba(210, 161, 91, .09), rgba(210, 161, 91, .035));
	box-shadow: inset 0 0 0 1px rgba(239, 201, 130, .78), 0 12px 34px rgba(0, 0, 0, .18);
}

.dltf-input.dltf-place-host.is-place-active > div {
	border-color: rgba(239, 201, 130, .82);
	background: #1d1f21;
	box-shadow: 0 0 0 3px rgba(210, 161, 91, .09);
}

.dltf-field-shell.dltf-place-host.is-place-active .dltf-field-shell__icon,
.dltf-input.dltf-place-host.is-place-active > div > svg { color: var(--dltf-gold-light); }

@media (max-width: 680px){.dltf-places {
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		max-height: min(330px, 52vh);
		overflow-x: hidden;
		overflow-y: auto;
	}}

@media (max-width: 680px){.dltf-place-host,
	.dltf-route-grid,
	.dltf-route-grid > *,
	.dltf-input,
	.dltf-input > div { max-width: 100%; min-width: 0; }}

@media (max-width: 680px){.dltf-field-shell.dltf-place-host.is-place-active { transform: translateY(-1px); }}

@media (max-width: 680px){.dltf-route-metrics { gap: 8px; padding: 8px; }}

@media (max-width: 680px){.dltf--full .dltf-section[data-dltf-section="trip"] > .dltf-route-metrics {
		margin-top: 10px;
		padding: 7px;
	}}
