/* ==========================================================================
   Bohemian & Chic — Search overlay (full-screen)
   ========================================================================== */

.bc-search-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--bc-z-modal);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--bc-space-md);
	background: rgba(10, 9, 8, 0.97);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--bc-transition),
		visibility 0s linear var(--bc-transition);
}

.bc-search-overlay[aria-hidden='false'] {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s, 0s;
}

.bc-search-overlay__close {
	position: absolute;
	top: var(--bc-space-md);
	right: var(--bc-space-md);
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color var(--bc-transition-fast);
}

.bc-search-overlay__close:hover,
.bc-search-overlay__close:focus-visible {
	color: var(--bc-white);
}

.bc-search-overlay__close svg {
	width: 22px;
	height: 22px;
}

.bc-search-form {
	width: 100%;
	max-width: 720px;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.bc-search-form svg {
	width: 24px;
	height: 24px;
	color: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
}

.bc-search-overlay input[type='search'] {
	flex: 1;
	min-width: 0;
	padding: 1rem 0;
	font-family: var(--bc-font-serif);
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: var(--bc-fw-light);
	line-height: 1.2;
	color: var(--bc-white);
	background: transparent;
	border: 0;
	outline: 0;
	caret-color: var(--bc-accent-light);
	-webkit-appearance: none;
	appearance: none;
}

.bc-search-overlay input[type='search']::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.bc-search-overlay__hints {
	margin-top: var(--bc-space-md);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem;
}

.bc-search-overlay__hint {
	font-size: 0.625rem;
	font-weight: var(--bc-fw-medium);
	letter-spacing: var(--bc-ls-overline);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	cursor: pointer;
	transition: color var(--bc-transition-fast), border-color var(--bc-transition-fast);
	text-decoration: none;
}

.bc-search-overlay__hint:hover,
.bc-search-overlay__hint:focus-visible {
	color: var(--bc-white);
	border-color: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
	.bc-search-overlay {
		transition: none;
	}
}
