/**
 * SF Beer Week - Search Autocomplete Styles
 *
 * Styles for the jQuery Autocomplete (devbridge) dropdown.
 * Overrides the default autocomplete-suggestions container
 * to match the SFBW design tokens.
 */

/* Autocomplete dropdown container */
.autocomplete-suggestions {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	margin-top: 4px;
	z-index: 1050;
}

/* Group headers */
.search-group-header {
	padding: 8px 16px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
	background: #f8f9fa;
	border-top: 1px solid #eee;
}
.search-group-header:first-child {
	border-top: none;
}

/* Individual suggestion row */
.autocomplete-suggestion {
	padding: 0;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
}
.autocomplete-suggestion:last-child {
	border-bottom: none;
}
.autocomplete-suggestion.autocomplete-selected {
	background: #f5f0e5;
}

/* Suggestion inner layout */
.search-suggestion {
	display: flex;
	align-items: center;
	padding: 10px 16px;
	gap: 12px;
}

/* Thumbnail */
.search-thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
}
.search-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.search-thumb-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	font-size: 1.2rem;
}

/* Content area */
.search-content {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}
.search-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.search-meta {
	font-size: 0.8rem;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Highlighted match text */
.autocomplete-suggestion strong {
	color: #EEA31B;
	font-weight: 600;
}

/* "View all results" link */
.search-view-all {
	padding: 10px 16px;
	text-align: center;
	border-top: 1px solid #eee;
	background: #f8f9fa;
}
.search-view-all a {
	color: #EEA31B;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}
.search-view-all a:hover {
	color: #c88815;
	text-decoration: underline;
}

/* No results notice */
.search-no-results {
	padding: 16px;
	text-align: center;
	color: #999;
	font-size: 0.9rem;
}

/* Nav search icon */
.nav-search-icon {
	cursor: pointer;
	color: #fff;
	font-size: 1.1rem;
	padding: 0.5rem;
	transition: color 0.2s;
}
.nav-search-icon:hover {
	color: #EEA31B;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.autocomplete-suggestions {
		border-radius: 8px;
		max-height: 60vh !important;
	}
	.search-suggestion {
		padding: 8px 12px;
		gap: 10px;
	}
	.search-thumb {
		width: 36px;
		height: 36px;
	}
}
