/* Minimal page-scoped styles for search history (scoped to .search-page) */

/* Header visibility is controlled via Bootstrap utility classes (d-none / d-flex) */
.search-page .sh-header { padding-bottom: 0; padding-left: 12px; padding-right: 12px; margin-top: 12px; padding-top: 0; margin-bottom: 0 !important; }
/* Remove any container spacing above header specifically for search page */
.search-page > .container, .search-page .container { margin-top: 0 !important; padding-top: 0 !important; }
.search-page .search-history { background: #fff; border-radius: 8px; padding: 0 6px; max-width: 720px; margin-top: 12px !important; }
.search-page .search-history #sh-list { border-top: none; margin: 0; padding: 0; list-style: none; }

.search-page .search-history .sh-item { height: 35px; display: flex; align-items: center; padding: 0 8px !important; margin: 0; line-height: 35px; }

/* Ensure 12px spacing between the icon and the query text (supports RTL) */
.search-page .search-history .sh-item .bi { padding-inline-end: 8px; margin-inline-end: 0; }
.search-page .search-history .sh-item:first-child { margin-top: 0; }
.search-page .search-history .sh-item + .sh-item { border-top: 1px solid #e6e6e6; }
.search-page .search-history .sh-query { padding: 0; margin: 0; display: block; }
.search-page .search-history .sh-query { text-decoration: none; color: inherit; }
.search-page .search-history .sh-remove {
	width: 32px;
	height: 32px;
	padding: 0;
	line-height: 1;
	text-decoration: none !important;
	color: rgba(0,0,0,0.75);
	font-weight: 700;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: transparent;
	border: none;
}
.search-page .search-history .sh-remove:hover {
	background: rgba(0,0,0,0.04);
	color: rgba(0,0,0,0.95);
}
.search-page .search-history .sh-ts { font-size: 0.75rem; color: #888; }

/* Header icon/title tweaks */
.search-page .sh-header .sh-header-title { display: inline-flex; align-items: center; gap: 8px; }

/* Header action styled as a pine chip */
.search-page .sh-header .btn-pine-pill {
	background: var(--color-pine);
	color: #fff;
	border: 1px solid var(--color-pine);
	padding: 6px 12px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	height: 32px;
	line-height: 1;
	text-decoration: none;
}
.search-page .sh-header .btn-pine-pill:hover { filter: brightness(0.95); }

/* Clear-all button: white background, subtle fog border slightly darker */
.search-page .sh-clear-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; color: #222; border-radius: 9999px; border: 0.5px solid rgba(181,188,180,0.95); font-size: 0.9rem; line-height: 1; height: 32px; }
.search-page .sh-clear-btn .sh-clear-icon { font-size: 0.85rem; line-height: 1; }
.search-page .sh-clear-btn:hover { background: #fafafa; }

.search-page .search-see-all { display: flex; justify-content: center; margin-top: 12px; }
.search-page .search-see-all .btn-pine-pill { border-radius: 9999px; padding: 10px 22px; display: inline-flex; align-items: center; gap: 8px; background: var(--color-pine); color: #fff; border: 1px solid var(--color-pine); text-decoration: none; }
.search-page .search-see-all .btn-pine-pill:hover { filter: brightness(0.95); }

/* Ensure empty-state CTA button uses pine chip styling */
.search-page #sh-empty-cta .btn-pine-pill {
	background: var(--color-pine);
	color: #fff;
	border: 1px solid var(--color-pine);
	padding: 8px 16px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	height: 40px;
	line-height: 1;
	text-decoration: none;
}
.search-page #sh-empty-cta .btn-pine-pill:hover { filter: brightness(0.95); }

/* Box wrapper for empty-state CTA */
.search-page .sh-empty-box {
	border-radius: 16px;
	padding: 20px 18px;
	border: 1px solid rgba(0,0,0,0.06);
	background: var(--surface, #fff);
	max-width: 560px;
	margin-top: 32px;
}

.search-page .sh-empty-box p { margin-bottom: 18px; }
.search-page .sh-empty-box .mb-2 { margin-bottom: 18px !important; }

/* CTA title styling */
.search-page .sh-empty-box .sh-cta-title {
	display: block;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary, #111);
	margin-bottom: 6px;
	line-height: 1.1;
}

@media (max-width: 576px) {
	.search-page .sh-empty-box .sh-cta-title { font-size: 1.1rem; }
}
