/**
 * Town picker for the get-listed form.
 */

.lt12-town-picker {
	position: relative;
	margin-bottom: 8px;
}

.lt12-town-picker__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.lt12-town-picker__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 14px;
	background: #eef2f7;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.3;
}

.lt12-town-picker__remove {
	padding: 0;
	border: 0;
	background: none;
	color: #6b7280;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.lt12-town-picker__remove:hover,
.lt12-town-picker__remove:focus {
	color: #b91c1c;
}

.lt12-town-picker__input {
	width: 100%;
	box-sizing: border-box;
}

.lt12-town-picker__results {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	max-height: 260px;
	margin: 2px 0 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.12 );
}

.lt12-town-picker__result {
	padding: 8px 10px;
	cursor: pointer;
	font-size: 15px;
}

.lt12-town-picker__result.is-active,
.lt12-town-picker__result:hover {
	background: #eef2f7;
}

.lt12-town-picker__status {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 13px;
}

/* The original free-text field stays in the form as a fallback and for the
   submitter's own wording, but the picker is the primary control. */
.lt12-town-picker__freetext {
	font-size: 14px;
	opacity: 0.85;
}
