/**
 * KLK Hero Search — Rever theming styles.
 */

.klk-hero-search-section {
	--rever-brand-primary: #e03c31;
	--rever-brand-primary-hover: #c83228;
	--rever-brand-primary-active: #b52b21;
	--rever-surface-white: #ffffff;
	--rever-text-on-dark: #ffffff;
	--rever-text-muted: rgba(255, 255, 255, 0.85);
	--rever-pill-radius: 9999px;
	--rever-hero-fallback: #1a202c;
	--rever-overlay-opacity: 0.55;
	--rever-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--rever-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	min-height: 420px;
	padding: 64px 24px;
	box-sizing: border-box;
	color: var(--rever-text-on-dark);
	font-family: var(--rever-font-ui);
	background: transparent;
	background-color: transparent;
	overflow: hidden;
}

.klk-hero-search-section .klk-hero-background {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: transparent;
	background-color: transparent;
	background-image: none;
	pointer-events: none;
}

.klk-hero-search-section .klk-hero-background::after {
	content: none;
	display: none;
}

.klk-hero-search-section .klk-hero-content-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 920px;
	margin: 0;
	margin-right: auto;
	text-align: left;
	gap: 18px;
}

.klk-hero-search-section.is-align-center .klk-hero-content-wrapper {
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.klk-hero-search-section.is-align-right .klk-hero-content-wrapper {
	align-items: flex-end;
	margin-left: auto;
	margin-right: 0;
	text-align: right;
}

.klk-hero-search-section .klk-hero-intent-tabs {
	display: inline-flex;
	align-items: stretch;
	gap: 28px;
	margin-top: 0;
}

.klk-hero-search-section .klk-intent-tab {
	position: relative;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 8px 2px 12px;
	min-height: 44px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.klk-hero-search-section .klk-intent-tab.is-active {
	color: var(--rever-text-on-dark);
}

.klk-hero-search-section .klk-tab-indicator {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--rever-brand-primary);
	opacity: 0;
	transform: scaleX(0.4);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.klk-hero-search-section .klk-intent-tab.is-active .klk-tab-indicator {
	opacity: 1;
	transform: scaleX(1);
}

.klk-hero-search-section .klk-hero-search-form {
	width: 100%;
	max-width: 720px;
	margin: 4px 0 0;
}

.klk-hero-search-section .klk-search-bar-container {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 64px;
	padding: 8px 8px 8px 18px;
	box-sizing: border-box;
	border-radius: var(--rever-pill-radius);
	background: var(--rever-surface-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.klk-hero-search-section .klk-search-leading-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: #94a3b8;
}

.klk-hero-search-section .klk-search-leading-icon svg {
	width: 100%;
	height: 100%;
}

.klk-hero-search-section .klk-search-input,
.klk-hero-search-section input.klk-search-input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	margin-bottom: 0;
	padding: 0;
	border: 0;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	color: #0f172a;
	font-size: 16px;
	font-family: inherit;
}

.klk-hero-search-section .klk-search-input:focus,
.klk-hero-search-section .klk-search-input:focus-visible {
	outline: none;
	box-shadow: none;
}

.klk-hero-search-section .klk-search-input::placeholder {
	color: #94a3b8;
}

.klk-hero-search-section .klk-search-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 120px;
	min-height: 48px;
	margin: 0;
	margin-bottom: 0;
	padding: 0 22px;
	border: 0;
	border-radius: var(--rever-pill-radius);
	background: var(--rever-brand-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.klk-hero-search-section .klk-search-submit-btn:hover,
.klk-hero-search-section .klk-search-submit-btn:focus-visible {
	background: var(--rever-brand-primary-hover);
}

.klk-hero-search-section .klk-search-submit-btn:active {
	background: var(--rever-brand-primary-active);
}

.klk-hero-search-section .klk-search-submit-icon {
	display: none;
	width: 20px;
	height: 20px;
}

.klk-hero-search-section .klk-search-submit-icon svg {
	width: 100%;
	height: 100%;
}

.klk-hero-search-section .klk-hero-verified-counter {
	margin: 2px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--rever-text-muted);
}

.klk-hero-search-section .klk-hero-suggestions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px 12px;
	width: 100%;
	max-width: 820px;
}

.klk-hero-search-section.is-align-center .klk-hero-suggestions {
	justify-content: center;
}

.klk-hero-search-section.is-align-right .klk-hero-suggestions {
	justify-content: flex-end;
}

.klk-hero-search-section .klk-suggestions-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--rever-text-on-dark);
}

.klk-hero-search-section .klk-chip-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	max-width: 100%;
}

.klk-hero-search-section.is-align-center .klk-chip-list {
	justify-content: center;
}

.klk-hero-search-section.is-align-right .klk-chip-list {
	justify-content: flex-end;
}

.klk-hero-search-section .klk-chip-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--rever-pill-radius);
	color: var(--rever-text-on-dark);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.klk-hero-search-section .klk-chip-item:hover,
.klk-hero-search-section .klk-chip-item:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}

.klk-hero-search-section .klk-star-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: #fbbf24;
}

.klk-hero-search-section .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 768px) {
	.klk-hero-search-section {
		min-height: 380px;
		padding: 48px 16px;
	}

	.klk-hero-search-section .klk-hero-intent-tabs {
		gap: 20px;
	}

	.klk-hero-search-section .klk-search-bar-container {
		min-height: 58px;
		padding: 6px 6px 6px 14px;
	}

	.klk-hero-search-section .klk-chip-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		max-width: 100%;
		padding-bottom: 4px;
	}

	.klk-hero-search-section .klk-chip-item {
		flex: 0 0 auto;
	}
}

@media (max-width: 480px) {
	.klk-hero-search-section {
		padding: 40px 14px;
	}

	.klk-hero-search-section .klk-search-submit-btn {
		min-width: 48px;
		width: 48px;
		height: 48px;
		margin: 0;
		margin-bottom: 0;
		padding: 0;
	}

	.klk-hero-search-section .klk-search-submit-label {
		display: none;
	}

	.klk-hero-search-section .klk-search-submit-icon {
		display: inline-flex;
	}

	.klk-hero-search-section .klk-search-leading-icon {
		display: none;
	}
}
