/**
 * HCFP Live Search — dropdown styles
 *
 * Designed to be neutral / inheritable so it adapts to whatever
 * theme the search input lives inside. If colors clash with the
 * site's brand, override the CSS custom properties below.
 */

.hcfp-ls-wrap {
	position: relative;
	display: block;
}

.hcfp-ls-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99999;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 480px;
	overflow-y: auto;
	font-family: inherit;
	font-size: 14px;
	color: #1f2937;
	text-align: left;
}

.hcfp-ls-section-label {
	padding: 10px 14px 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	background: #f9fafb;
	border-bottom: 1px solid #f3f4f6;
}

.hcfp-ls-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #1f2937;
	border-bottom: 1px solid #f3f4f6;
	transition: background 0.1s ease;
}

.hcfp-ls-item:hover,
.hcfp-ls-item-active {
	background: #f0f9ff;
	color: #1f2937;
	text-decoration: none;
}

/* --- Term entries --- */
.hcfp-ls-term {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.hcfp-ls-term-name {
	font-weight: 600;
	color: #0c4a6e;
}

.hcfp-ls-term-meta {
	font-size: 12px;
	color: #6b7280;
	text-transform: capitalize;
}

/* --- Post entries --- */
.hcfp-ls-thumb {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	background: #e5e7eb;
}

.hcfp-ls-thumb-placeholder {
	display: inline-block;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.hcfp-ls-post-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.hcfp-ls-post-title {
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hcfp-ls-post-type {
	font-size: 11px;
	color: #6b7280;
	text-transform: capitalize;
}

/* --- Footer --- */
.hcfp-ls-see-all {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #0369a1;
	text-align: center;
	background: #f9fafb;
	text-decoration: none;
	border-top: 1px solid #e5e7eb;
}

.hcfp-ls-see-all:hover {
	background: #f0f9ff;
	text-decoration: none;
}

/* --- Empty state --- */
.hcfp-ls-empty {
	padding: 16px 14px;
	color: #6b7280;
	font-style: italic;
	text-align: center;
}

/* Mobile: pull dropdown closer to viewport edges */
@media (max-width: 640px) {
	.hcfp-ls-dropdown {
		max-height: 70vh;
		font-size: 14px;
	}

	.hcfp-ls-thumb {
		width: 36px;
		height: 36px;
	}
}
