/* Boligforhandleren – slim green search bar above the site header. */
.bf-topbar {
	--tb-h: 32px; /* shared height for the address field, price field and (square) search button */
	background: var(--ink, #0b3b36);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 6px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.bf-topbar__eyebrow {
	flex: none;
	color: rgba(255, 255, 255, 0.66);
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bf-topbar__form {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1 1 auto;
	min-width: 0;
}

.bf-topbar__adr {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	height: var(--tb-h);
	padding: 0 11px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.bf-topbar__adr:focus-within {
	border-color: rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.13);
}

.bf-topbar__icon {
	flex: none;
	color: rgba(255, 255, 255, 0.55);
}

.bf-topbar__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	color: #fff;
	font-family: var(--font-sans, "Inter", system-ui, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	padding: 0;
}

/* Udbudspris — hidden until an address is entered (mirrors the front-page hero). */
.bf-topbar__pris {
	display: none;
	flex: none;
	width: 150px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.09);
	border-radius: 8px;
	outline: none;
	color: #fff;
	font-family: var(--font-sans, "Inter", system-ui, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	height: var(--tb-h);
	padding: 0 11px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.bf-topbar__form.is-expanded .bf-topbar__pris {
	display: block;
	animation: bf-hs-reveal 0.2s ease;
}

.bf-topbar__pris:focus {
	border-color: rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.13);
}

.bf-topbar__input::placeholder,
.bf-topbar__pris::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.bf-topbar__btn {
	flex: none;
	width: var(--tb-h);  /* square … */
	height: var(--tb-h); /* … and full row height */
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--coral, #ff6b50);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bf-topbar__btn:hover {
	background: var(--coral-hover, #e85a40);
}

/* Hide the eyebrow when space gets tight, then let the fields stack on small screens. */
@media (max-width: 760px) {
	.bf-topbar__eyebrow { display: none; }
	.bf-topbar__pris { width: 130px; }
}

@media (max-width: 560px) {
	.bf-topbar__inner { padding: 6px 14px; }
	.bf-topbar__form { flex-wrap: wrap; gap: 7px; }
	/* Collapsed: the address field and the search button always share the first row. */
	.bf-topbar__adr { flex: 1 1 auto; }
	/* Expanded: the address takes its own row; the price + button sit together on the next. */
	.bf-topbar__form.is-expanded .bf-topbar__adr { flex: 1 1 100%; }
	.bf-topbar__form.is-expanded .bf-topbar__pris { flex: 1 1 auto; width: auto; min-width: 0; }
}

@media (max-width: 380px) {
	.bf-topbar__inner { padding: 6px 10px; }
	.bf-topbar__form { gap: 6px; }
}
