.urbio-header-tools,
.urbio-header-tools *,
.urbio-header-tools *::before,
.urbio-header-tools *::after {
	box-sizing: border-box;
}

/* Keep the Elementor header flex children shrinkable on desktop too. */
.urbio-topbar,
.urbio-logo-area,
.urbio-main-navigation,
.urbio-header-actions,
.urbio-header-actions > .elementor-element,
.urbio-header-actions > .elementor-widget,
.urbio-header-actions > .elementor-widget > .elementor-widget-container {
	min-width: 0 !important;
	max-width: 100%;
	box-sizing: border-box;
}

.urbio-header-tools {
	--urbio-header-accent: #EC571A;
	--urbio-header-text: #FFFFFF;
	--urbio-header-control-bg: rgba(255, 255, 255, 0.06);
	--urbio-header-control-border: rgba(255, 255, 255, 0.16);
	--urbio-header-results-bg: rgba(8, 8, 8, 0.98);
	--urbio-control-size: 44px;
	--urbio-search-expanded-width: 240px;
	--urbio-tools-gap: 8px;
	--urbio-client-width: 116px;

	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: var(--urbio-control-size);
	margin: 0;

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

	flex: 1 1 auto;
	overflow: visible;

	font-family: "Exo 2", sans-serif;
	isolation: isolate;
	z-index: 100;
}

/*
 * Search is always absolutely anchored immediately before Client Area.
 * Opening it therefore expands only to the LEFT and never changes the
 * width of the Elementor header/flex row.
 */
.urbio-header-tools .urbio-header-search {
	position: absolute;
	top: 50%;
	right: calc(var(--urbio-client-width) + max(8px, var(--urbio-tools-gap)));
	transform: translateY(-50%);

	width: var(--urbio-control-size);
	min-width: var(--urbio-control-size);
	max-width: calc(100vw - 32px);
	height: var(--urbio-control-size);
	margin: 0;
	flex: none;
	overflow: visible;
	z-index: 5;

	transition:
		width 0.46s cubic-bezier(.16, 1, .3, 1);
}

.urbio-header-tools .urbio-header-search.is-open,
.urbio-header-tools .urbio-header-search:focus-within {
	width: min(var(--urbio-search-expanded-width), calc(100vw - 32px));
	min-width: var(--urbio-control-size);
	max-width: calc(100vw - 32px);
}

.urbio-header-tools .urbio-header-search-input {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 44px;

	margin: 0;
	padding: 0 49px 0 16px;

	border: 1px solid var(--urbio-header-control-border);
	border-radius: 8px;
	outline: none;

	background: var(--urbio-header-control-bg);
	color: var(--urbio-header-text);

	font-family: "Exo 2", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;

	opacity: 0;
	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);

	transition:
		opacity 0.18s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.urbio-header-tools .urbio-header-search.is-open .urbio-header-search-input,
.urbio-header-tools .urbio-header-search:focus-within .urbio-header-search-input {
	opacity: 1;
	cursor: text;
}

.urbio-header-tools .urbio-header-search-input::placeholder {
	color: rgba(255, 255, 255, 0.48);
	opacity: 1;
}

.urbio-header-tools .urbio-header-search-input:hover {
	border-color: rgba(255, 255, 255, 0.26);
	background: rgba(255, 255, 255, 0.09);
}

.urbio-header-tools .urbio-header-search-input:focus,
.urbio-header-tools .urbio-header-search-input:focus-visible {
	outline: none !important;
	border-color: var(--urbio-header-accent);
	background: rgba(6, 6, 6, 0.94);

	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--urbio-header-accent) 12%, transparent);
}

.urbio-header-tools .urbio-header-search-input::-webkit-search-cancel-button {
	display: none;
}

.urbio-header-tools .urbio-header-search-button {
	position: absolute;
	top: 0;
	right: 0;

	width: 44px;
	height: var(--urbio-control-size);

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

	margin: 0;
	padding: 0;

	border: 1px solid var(--urbio-header-control-border);
	border-radius: 8px;
	outline: none;

	background: var(--urbio-header-control-bg);
	color: var(--urbio-header-text);

	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
	z-index: 2;

	transition:
		background-color 0.22s ease,
		border-color 0.22s ease,
		color 0.22s ease,
		box-shadow 0.22s ease;
}

.urbio-header-tools .urbio-header-search-button svg,
.urbio-header-tools .urbio-header-search-button svg * {
	display: block;
	width: 18px;
	height: 18px;

	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.urbio-header-tools .urbio-header-search-button:hover {
	border-color: rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.13);
}

.urbio-header-tools .urbio-header-search.is-open .urbio-header-search-button,
.urbio-header-tools .urbio-header-search:focus-within .urbio-header-search-button {
	border-color: var(--urbio-header-accent);
	background: var(--urbio-header-accent);
	color: #fff;

	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--urbio-header-accent) 12%, transparent);
}

.urbio-header-tools .urbio-header-client {
	position: relative;
	flex: 0 0 auto;
	height: var(--urbio-control-size);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;

	margin: 0;
	padding: 0 16px;

	border: 1px solid var(--urbio-header-control-border);
	border-radius: 8px;

	background: var(--urbio-header-control-bg);
	color: var(--urbio-header-text);

	font-family: "Exo 2", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;

	text-decoration: none;
	white-space: nowrap;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);

	transition:
		background-color 0.22s ease,
		border-color 0.22s ease,
		color 0.22s ease;
}

.urbio-header-tools .urbio-header-client svg,
.urbio-header-tools .urbio-header-client svg * {
	display: block;
	width: 15px;
	height: 15px;

	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;

	transition:
		transform 0.3s cubic-bezier(.16, 1, .3, 1);
}

.urbio-header-tools .urbio-header-client:hover {
	border-color: #fff;
	background: #fff;
	color: #080808;
}

.urbio-header-tools .urbio-header-client:hover svg {
	transform: translateX(3px);
}

.urbio-header-tools .urbio-header-search-results {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;

	width: min(320px, calc(100vw - 32px));
	min-width: 0;
	max-width: calc(100vw - 32px);
	max-height: min(470px, 70vh);

	padding: 8px;

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

	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;

	background: var(--urbio-header-results-bg);

	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.58);

	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transform:
		translate3d(0, -8px, 0)
		scale(0.985);

	transform-origin: top right;

	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.32s cubic-bezier(.16, 1, .3, 1);

	z-index: 999999;
}

.urbio-header-tools .urbio-header-search-results.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;

	transform:
		translate3d(0, 0, 0)
		scale(1);
}

.urbio-header-tools .urbio-header-search-results-heading {
	padding: 8px 10px 9px;
	color: rgba(255, 255, 255, 0.42);

	font-family: "Exo 2", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;

	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.urbio-header-tools .urbio-header-search-result {
	width: 100%;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	padding: 12px;

	border: 0;
	border-radius: 6px;

	background: transparent;
	color: rgba(255, 255, 255, 0.86);

	text-decoration: none;

	opacity: 0;
	transform: translate3d(0, 6px, 0);

	animation:
		urbioHeaderResultIn
		0.34s
		cubic-bezier(.16, 1, .3, 1)
		var(--urbio-result-delay, 0ms)
		forwards;

	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.urbio-header-tools .urbio-header-search-result:hover,
.urbio-header-tools .urbio-header-search-result.is-keyboard-active {
	background: rgba(255, 255, 255, 0.075);
	color: #fff;
}

.urbio-header-tools .urbio-header-search-result-content {
	min-width: 0;

	display: flex;
	flex-direction: column;
	gap: 4px;
}

.urbio-header-tools .urbio-header-search-result-title {
	overflow: hidden;
	color: inherit;

	font-family: "Exo 2", sans-serif;
	font-size: 14px;
	font-weight: 550;
	line-height: 1.3;

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

.urbio-header-tools .urbio-header-search-result-type {
	color: rgba(255, 255, 255, 0.38);

	font-family: "Exo 2", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
}

.urbio-header-tools .urbio-header-search-result-arrow {
	flex: 0 0 auto;

	width: 28px;
	height: 28px;

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

	border-radius: 6px;

	background: rgba(255, 255, 255, 0.055);
	color: rgba(255, 255, 255, 0.62);

	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.28s cubic-bezier(.16, 1, .3, 1);
}

.urbio-header-tools .urbio-header-search-result-arrow svg,
.urbio-header-tools .urbio-header-search-result-arrow svg * {
	width: 14px;
	height: 14px;

	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.urbio-header-tools .urbio-header-search-result:hover .urbio-header-search-result-arrow,
.urbio-header-tools .urbio-header-search-result.is-keyboard-active .urbio-header-search-result-arrow {
	background:
		color-mix(in srgb, var(--urbio-header-accent) 15%, transparent);

	color: var(--urbio-header-accent);

	transform: translateX(2px);
}

@keyframes urbioHeaderResultIn {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.urbio-header-tools .urbio-header-search-loading,
.urbio-header-tools .urbio-header-search-status {
	min-height: 58px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	padding: 14px;

	color: rgba(255, 255, 255, 0.54);

	font-family: "Exo 2", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.urbio-header-tools .urbio-header-search-spinner {
	width: 15px;
	height: 15px;

	flex: 0 0 auto;

	border: 2px solid rgba(255, 255, 255, 0.16);
	border-top-color: var(--urbio-header-accent);
	border-radius: 50%;

	animation:
		urbioHeaderSpinner
		0.72s linear infinite;
}

@keyframes urbioHeaderSpinner {
	to {
		transform: rotate(360deg);
	}
}

.urbio-header-tools .urbio-header-search-results::-webkit-scrollbar {
	width: 6px;
}

.urbio-header-tools .urbio-header-search-results::-webkit-scrollbar-track {
	background: transparent;
}

.urbio-header-tools .urbio-header-search-results::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1200px) {
	.urbio-header-tools .urbio-header-search.is-open,
	.urbio-header-tools .urbio-header-search:focus-within {
		width: min(var(--urbio-search-expanded-width, 210px), calc(100vw - 32px));
	}
}

@media (max-width: 767px) {
	.urbio-header-tools {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		flex: 1 1 auto;
	}

	.urbio-header-tools .urbio-header-client {
		width: var(--urbio-control-size);
		min-width: var(--urbio-control-size);
		padding: 0;
	}

	.urbio-header-tools .urbio-header-client-label {
		display: none;
	}

	.urbio-header-tools .urbio-header-search {
		right: calc(var(--urbio-control-size) + var(--urbio-tools-gap));
	}

	.urbio-header-tools .urbio-header-search.is-open,
	.urbio-header-tools .urbio-header-search:focus-within {
		width: min(var(--urbio-search-expanded-width, 240px), calc(100vw - 32px));
	}

	.urbio-header-tools .urbio-header-search-results {
		width: min(320px, calc(100vw - 32px));
		min-width: 0;
		max-width: calc(100vw - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.urbio-header-tools .urbio-header-search,
	.urbio-header-tools .urbio-header-search-input,
	.urbio-header-tools .urbio-header-search-button,
	.urbio-header-tools .urbio-header-client,
	.urbio-header-tools .urbio-header-search-results,
	.urbio-header-tools .urbio-header-search-result {
		animation: none !important;
		transition: none !important;
	}

	.urbio-header-tools .urbio-header-search-result {
		opacity: 1;
		transform: none;
	}
}
