/* ── Header search — premium ── */
.mhb-header-search {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: center;
	--mhb-navy: #0f2345;
	--mhb-red: #c62839;
	--mhb-teal: #7bbdbd;
	--mhb-teal-soft: rgba(123, 189, 189, 0.16);
}

.mhb-header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(15, 35, 69, 0.14);
	border-radius: 50%;
	background: #fff;
	color: var(--mhb-navy);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mhb-header-search__toggle:hover,
.mhb-header-search__toggle[aria-expanded='true'] {
	border-color: var(--mhb-red);
	color: var(--mhb-red);
	box-shadow: 0 4px 14px rgba(198, 40, 57, 0.15);
}

.mhb-header-search__icon {
	width: 18px;
	height: 18px;
	display: block;
}

.mhb-header-search__panel {
	position: fixed;
	inset: 0;
	z-index: 999990;
	pointer-events: none;
}

.mhb-header-search__panel.is-open {
	pointer-events: auto;
}

.mhb-header-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 35, 69, 0.4);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mhb-header-search__panel.is-open .mhb-header-search__backdrop {
	opacity: 1;
}

.mhb-header-search__inner {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--mhb-search-top, 72px);
	background: linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
	border-bottom: 1px solid rgba(123, 189, 189, 0.25);
	box-shadow: 0 20px 48px rgba(15, 35, 69, 0.14);
	padding: 22px 24px 26px;
	transform: translateY(-12px);
	opacity: 0;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mhb-header-search__panel.is-open .mhb-header-search__inner {
	transform: translateY(0);
	opacity: 1;
}

.mhb-header-search__form {
	max-width: 780px;
	margin: 0 auto;
}

.mhb-header-search__field {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 6px 8px 6px 10px;
	border: 1px solid rgba(15, 35, 69, 0.1);
	border-radius: 999px;
	background: #fff;
	box-shadow:
		0 1px 2px rgba(15, 35, 69, 0.04),
		0 8px 24px rgba(15, 35, 69, 0.07);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.mhb-header-search__field:focus-within {
	border-color: rgba(123, 189, 189, 0.65);
	box-shadow:
		0 0 0 4px var(--mhb-teal-soft),
		0 12px 32px rgba(15, 35, 69, 0.1);
	transform: translateY(-1px);
}

.mhb-header-search__field-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(123, 189, 189, 0.22) 0%, rgba(123, 189, 189, 0.08) 100%);
	color: #5fa8a8;
}

.mhb-header-search__field-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.mhb-header-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: var(--mhb-navy);
	outline: none;
	letter-spacing: 0.01em;
}

.mhb-header-search__input::placeholder {
	color: rgba(15, 35, 69, 0.42);
	font-weight: 400;
}

.mhb-header-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	border: 0;
	border-radius: 999px;
	padding: 12px 22px;
	background: linear-gradient(135deg, #d43647 0%, #c62839 45%, #a81f2e 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(198, 40, 57, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mhb-header-search__submit svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.mhb-header-search__submit:hover {
	filter: brightness(1.05);
	box-shadow: 0 10px 24px rgba(198, 40, 57, 0.34);
	transform: translateY(-1px);
}

.mhb-header-search__submit:hover svg {
	transform: translateX(2px);
}

.mhb-header-search__submit:active {
	transform: translateY(0);
}

.mhb-header-search__examples {
	max-width: 780px;
	margin: 18px auto 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(123, 189, 189, 0.2);
}

.mhb-header-search__examples-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(15, 35, 69, 0.5);
}

.mhb-header-search__examples-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(123, 189, 189, 0.45) 0%, transparent 100%);
}

.mhb-header-search__examples-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mhb-header-search__example {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(123, 189, 189, 0.28);
	background: linear-gradient(180deg, #fff 0%, #f6fafa 100%);
	color: var(--mhb-navy);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mhb-header-search__example svg {
	width: 12px;
	height: 12px;
	opacity: 0;
	transform: translate(-4px, 2px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	color: var(--mhb-red);
}

.mhb-header-search__example:hover {
	border-color: rgba(198, 40, 57, 0.35);
	color: var(--mhb-red);
	background: #fff;
	box-shadow: 0 6px 16px rgba(15, 35, 69, 0.08);
	transform: translateY(-1px);
}

.mhb-header-search__example:hover svg {
	opacity: 1;
	transform: translate(0, 0);
}

.mhb-header-search__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 35, 69, 0.06);
	color: var(--mhb-navy);
	cursor: pointer;
}

.mhb-header-search__close svg {
	width: 18px;
	height: 18px;
}

.mhb-header-search__close:hover {
	background: rgba(198, 40, 57, 0.1);
	color: var(--mhb-red);
}

html.mhb-search-open {
	overflow: hidden;
}

/* ── Bar layout (otomatik header üstü) ── */
.mhb-header-search--bar {
	display: block;
	width: 100%;
	position: relative;
	z-index: 1;
}

.mhb-header-search--bar .mhb-header-search__bar {
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(180deg, #fff 0%, #f4f9f9 100%);
	border-bottom: 1px solid rgba(123, 189, 189, 0.22);
	box-shadow: 0 6px 20px rgba(15, 35, 69, 0.05);
	transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.mhb-header-search--bar .mhb-header-search__bar::before {
	content: '';
	display: block;
	height: 2px;
	margin: -14px -20px 14px;
	background: linear-gradient(90deg, var(--mhb-teal) 0%, var(--mhb-red) 50%, var(--mhb-navy) 100%);
	opacity: 0.7;
}

.mhb-header-search--bar.is-active .mhb-header-search__bar {
	padding: 16px 20px 20px;
	box-shadow: 0 12px 32px rgba(15, 35, 69, 0.09);
}

.mhb-header-search--bar .mhb-header-search__form,
.mhb-header-search--bar .mhb-header-search__examples {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.mhb-header-search--bar .mhb-header-search__examples {
	display: none;
	margin-top: 0;
}

.mhb-header-search--bar.is-active .mhb-header-search__examples {
	display: block;
	margin-top: 12px;
	animation: mhb-search-examples-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mhb-search-examples-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#minay-header-search {
	margin-right: 8px;
}

@media (max-width: 767px) {
	.mhb-header-search--bar .mhb-header-search__bar {
		padding: 12px 14px;
	}

	.mhb-header-search--bar .mhb-header-search__bar::before {
		margin: -12px -14px 12px;
	}

	.mhb-header-search__inner {
		padding: 16px 14px 20px;
	}

	.mhb-header-search__field {
		flex-wrap: wrap;
		border-radius: 18px;
		padding: 10px;
		min-height: auto;
	}

	.mhb-header-search__submit {
		width: 100%;
	}

	.mhb-header-search__examples {
		padding: 12px 14px;
	}

	.mhb-header-search__toggle {
		width: 38px;
		height: 38px;
	}
}
