/**
 * Huangye city combobox — shared styles (classifieds publish, business
 * submit, both archive filters). Vanilla, framework-free, mobile friendly.
 */

.hy-cb {
	position: relative;
}

.hy-cb-input {
	width: 100%;
}

.hy-cb-list {
	position: absolute;
	z-index: 60;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid #d8dbe0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hy-cb-list[hidden] {
	display: none;
}

.hy-cb-list li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}

.hy-cb-list li.is-active,
.hy-cb-list li:hover {
	background: #f1f5fb;
}

.hy-cb-city {
	font-weight: 600;
	color: #111827;
}

.hy-cb-postcode {
	color: #4b5563;
	font-variant-numeric: tabular-nums;
}

.hy-cb-dept {
	margin-left: auto;
	font-size: 12px;
	color: #9ca3af;
	white-space: nowrap;
}

.hy-cb-empty {
	color: #6b7280;
	cursor: default;
}

.hy-cb-empty:hover,
.hy-cb-empty.is-active {
	background: transparent;
}

.hy-cb-heading {
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: default;
	padding: 6px 10px 4px;
}

.hy-cb-heading:hover {
	background: transparent;
}

.hy-cb-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
