/* =============================================
   Bold Himalaya — Custom Live Search
   ============================================= */

/* Search box wrapper — inherits .pb-search-box shape from theme SCSS */
.bh-custom-search {
	position: relative;
	display: flex;
	align-items: center;
}

/* Two-line stacked label + input */
.bh-search-fields {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.bh-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 140%;
	letter-spacing: -0.035px;
	font-family: "DM-sans", sans-serif;
	padding: 0;
	min-width: 0;
	color: #1e201f;
}

.bh-search-input::placeholder {
	color: #b0b0b0;
	font-weight: 400;
}

/* Green magnifier button */
.bh-search-btn {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #7fb51f;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	margin-left: 8px;
}

.bh-search-btn:hover {
	background-color: #6a9a18;
}

.bh-search-btn svg {
	display: block;
}

/* ── Results dropdown ─────────────────────────── */
.bh-search-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 9999;
	max-height: 480px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #e5e5e5 transparent;
}

.bh-search-dropdown.active {
	display: block;
}

/* Section labels */
.bh-search-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #888;
	/* padding: 12px 16px 6px; */
	padding-bottom: 8px;
	margin: 0;
	/* border-top: 1px solid #f0f0f0; */
}

.bh-search-label:first-child {
	border-top: none;
}

/* Reset colours that banner context forces to #fff on span/h* */
.bh-search-dropdown span,
.bh-search-dropdown p,
.bh-search-dropdown a {
	color: #1a1a1a;
}

/* Status messages (loading / no results / error) */
.bh-search-status {
	font-size: 14px;
	color: #888;
	text-align: center;
	padding: 20px 16px;
	margin: 0;
}

/* Individual result row */
.bh-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	text-decoration: none;
	transition: background-color 0.15s ease;
	/* border-bottom: 1px solid #f5f5f5; */
    border-radius: 8px;
}

.bh-search-item:last-child {
	border-bottom: none;
}

.bh-search-item:hover {
	background-color: #f2f8e9;
	text-decoration: none;
}

/* Thumbnail */
.bsi-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #e5e5e5;
}

.bsi-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text block */
.bsi-info {
	flex: 1;
	min-width: 0;
}

.bsi-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 4px;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Meta row: destination · rating · duration */
.bsi-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.bsi-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: #555;
	font-weight: 400;
}

.bsi-meta-item svg {
	flex-shrink: 0;
}

/* Blog date */
.bsi-date {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
	display: block;
}

/* ── Header mobile-search variant ─────────────── */
.mobile-search {
	position: relative;
}

/* Hidden by default; shown when JS adds .visible-search */
.mobile-search .bh-custom-search {
	display: none;
	position: absolute;
	top: 130%;
	/* right: 0; */
    left: 50%;
    transform: translateX(-50%);
	/* width expands left from the icon — avoids being clamped to the icon's narrow width */
	width: min(380px, calc(100vw - 32px));
	background: #fff;
	border-radius: 50px;
	padding: 6px 6px 6px 16px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
	z-index: 100;
	align-items: center;
}

.mobile-search.visible-search .bh-custom-search {
	display: flex;
}

.mobile-search .bh-search-dropdown {
	border-radius: 12px;
	top: calc(100% + 10px);
	/* match the wider form width */
	left: 0;
	right: 0;
}

@media (min-width: 768px) {
	.mobile-search .bh-custom-search {
		width: 450px;
	}
}

/* ── Responsive tweaks ────────────────────────── */
@media (max-width: 575px) {
	.bh-search-input {
		font-size: 13px;
	}

	.bh-search-btn {
		width: 40px;
		height: 40px;
	}

	.bsi-thumb {
		width: 48px;
		height: 48px;
	}
}
