/* Belingo Geo city selector — client-scoped ID Result presentation. */
#cityChange,
#geolocation {
	--id-city-blue: #086AD8;
	--id-city-accent: #1FC7B6;
	--id-city-ink: #142033;
	--id-city-muted: #526176;
	--id-city-surface: #ffffff;
	font-family: "Manrope", sans-serif;
}

.popup-window-overlay {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgb(8 38 73 / 58%) !important;
	backdrop-filter: blur(3px);
	overflow: hidden !important;
	z-index: 1099 !important;
}

#cityChange.popup-window {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	width: min(42rem, 90vw) !important;
	max-width: 90vw !important;
	max-height: min(86vh, 46rem);
	margin: 0 !important;
	padding: 0;
	transform: translate(-50%, -50%);
	overflow: hidden;
	border: 1px solid rgb(8 106 216 / 16%);
	border-radius: 1.25rem;
	background: var(--id-city-surface);
	box-shadow: 0 1.5rem 4rem rgb(8 38 73 / 30%);
	color: var(--id-city-ink);
	z-index: 1100 !important;
}

#cityChange .popup-window-titlebar {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 1.25rem 4.25rem 1.25rem 1.5rem;
	border-radius: 1.2rem 1.2rem 0 0;
	background: linear-gradient(120deg, var(--id-city-blue), #2f8ce6 72%, var(--id-city-accent));
	color: #ffffff;
	font: 700 clamp(1.25rem, 2.4vw, 1.625rem) / 1.25 "Manrope", sans-serif;
	text-align: left;
}

#cityChange .popup-window-content {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-height: calc(min(86vh, 46rem) - 4.75rem);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--id-city-surface) !important;
	scrollbar-gutter: stable;
}

#cityChange .bx-sls {
	padding: 1.25rem 1.5rem 1rem;
	border: 0;
	border-bottom: 1px solid rgb(8 106 216 / 14%);
}

#cityChange .quick-locations {
	height: auto;
	max-height: min(46vh, 22rem);
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

#cityChange .quick-locations__title {
	margin: 0 0 0.75rem;
	color: var(--id-city-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

#cityChange .quick-locations__values {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.375rem 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

#cityChange .quick-locations__val,
#cityChange .select_geo_city {
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0.625rem 0.75rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	color: var(--id-city-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	white-space: normal;
	word-break: break-word;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#cityChange .quick-locations__val:hover,
#cityChange .select_geo_city:hover {
	border-color: rgb(8 106 216 / 18%);
	background: rgb(8 106 216 / 8%);
	color: var(--id-city-blue);
}

#cityChange .quick-locations__val.active,
#cityChange .select_geo_city.active {
	border-color: var(--id-city-accent);
	background: rgb(31 199 182 / 14%);
	color: var(--id-city-ink);
}

#cityChange .block-info {
	box-sizing: border-box;
	padding: 1rem 1.5rem 1.375rem;
	border-radius: 0 0 1.2rem 1.2rem;
	background: #f6f9fd;
}

#cityChange .block-info__title {
	padding: 0;
	color: var(--id-city-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.45;
}

#cityChange .block-info__text {
	padding: 0.25rem 0 0;
	color: var(--id-city-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

#cityChange .block-info__action {
	margin-top: 0.75rem;
}

#cityChange .continue-without-geo {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.625rem 1rem;
	border: 1px solid var(--id-city-blue);
	border-radius: 999px;
	color: var(--id-city-blue);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#cityChange .continue-without-geo:hover {
	border-color: var(--id-city-accent);
	background: var(--id-city-accent);
	color: #092f3e;
}

#cityChange .popup-window-close-icon {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0.6875rem;
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: 50%;
	appearance: none;
	background: rgb(255 255 255 / 18%);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

#cityChange .popup-window-close-icon:hover {
	background: rgb(255 255 255 / 32%);
	transform: scale(1.04);
}

#cityChange .popup-window-close-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	fill: currentColor;
}

#cityChange .continue-without-geo:focus-visible,
#cityChange .popup-window-close-icon:focus-visible,
#cityChange .select_geo_city:focus-visible,
#geolocationChangeCity:focus-visible {
	outline: 3px solid var(--id-city-accent);
	outline-offset: 3px;
}

#geolocation .geolocation__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2.5rem;
	padding: 0.4375rem 0.75rem;
	border: 1px solid rgb(8 106 216 / 24%);
	border-radius: 999px;
	color: var(--id-city-blue);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#geolocation .geolocation__link:hover {
	border-color: var(--id-city-accent);
	background: rgb(31 199 182 / 10%);
	color: #0659b6;
}

#geolocation .geolocation__link svg {
	flex: 0 0 auto;
	width: 0.75rem;
	height: 1rem;
	margin: 0;
}

#geolocation .geolocation__link path {
	fill: currentColor;
}

/* Vendor makes the selector absolute below 1024px; keep it in the header tools flow. */
.id-htools .geolocation {
	position: static !important;
	right: auto !important;
	float: none !important;
}

.id-htools__city,
.id-htools .geolocation,
.id-htools .geolocation__link,
.id-htools .geolocation__value {
	min-width: 0;
}

.id-htools__city {
	flex: 0 1 auto;
}

@media (max-width: 781px) {
	.id-htools__city {
		max-width: min(7.5rem, 30vw);
	}

	.id-htools #geolocationChangeCity {
		box-sizing: border-box;
		max-width: 100%;
		min-height: 2.5rem;
		padding: 0.375rem 0.5rem;
	}

	.id-htools .geolocation__value {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (max-width: 37.5rem) {
	#cityChange.popup-window {
		width: 90vw !important;
		max-height: 90vh;
		border-radius: 1rem;
	}

	#cityChange .popup-window-titlebar {
		padding: 1rem 3.75rem 1rem 1rem;
		border-radius: 0.95rem 0.95rem 0 0;
	}

	#cityChange .popup-window-content {
		max-height: calc(90vh - 4.25rem);
	}

	#cityChange .bx-sls,
	#cityChange .block-info {
		padding-inline: 1rem;
	}

	#cityChange .quick-locations {
		max-height: 42vh;
	}

	#cityChange .quick-locations__values {
		grid-template-columns: minmax(0, 1fr);
	}

	#cityChange .popup-window-close-icon {
		top: 0.6875rem;
		right: 0.6875rem;
	}

	#cityChange .continue-without-geo {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#cityChange .quick-locations__val,
	#cityChange .select_geo_city,
	#cityChange .continue-without-geo,
	#cityChange .popup-window-close-icon,
	#geolocation .geolocation__link {
		transition: none;
	}
}
