/* CLGA Directory Search (replaces The Plus Search Bar). Sits on the blue Elementor container. */
.clga-ds {
	position: relative;
	container-type: inline-size;
}
.clga-ds-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px 20px;
	margin: 0;
	padding: 10px;
}
/* Wide spots (Directory archive): search + filters in a 2:1 grid */
@container (min-width: 480px) {
	.clga-ds-form {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.clga-ds-field label {
	display: block;
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-transform: uppercase;
	color: #fff;
}
.clga-ds-input {
	position: relative;
}
.clga-ds-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 14px;
	height: 14px;
	transform: translateY(-50%);
	fill: #7e8993;
	pointer-events: none;
}
.clga-ds-form input[type="text"],
.clga-ds-form select {
	display: block;
	width: 100%;
	height: 45px;
	margin: 0;
	box-sizing: border-box;
	border: 0.8px solid #7e8993;
	border-radius: 5px;
	background-color: #fff;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	color: #000;
}
.clga-ds-form input[type="text"] {
	padding: 0 14px 0 35px;
	font-size: 16px;
}
.clga-ds-form input[type="text"]::placeholder {
	color: #7e8993;
	opacity: 1;
}
.clga-ds-form select {
	padding: 0 34px 0 10px;
	font-size: 14px;
	color: #474747;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23474747' d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	cursor: pointer;
}
.clga-ds-form input[type="text"]:focus,
.clga-ds-form select:focus {
	outline: 2px solid #28235B;
	outline-offset: 1px;
}
.clga-ds .clga-ds-form .clga-ds-submit {
	align-self: end;
	height: 45px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 4px;
	background: #000;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.clga-ds .clga-ds-form .clga-ds-submit:hover,
.clga-ds .clga-ds-form .clga-ds-submit:focus {
	background: #28235B;
	color: #fff;
}

/* ---------- Live results ---------- */
.clga-ds-results {
	position: absolute;
	top: calc(100% - 4px);
	left: 10px;
	right: 10px;
	z-index: 50;
	max-height: 380px;
	overflow-y: auto;
	padding: 12px 16px;
	box-sizing: border-box;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.clga-ds-results[hidden] {
	display: none;
}
.clga-ds-count {
	margin-bottom: 6px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: #333;
}
.clga-ds-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 0;
	border-top: 1px solid #eee;
	text-decoration: none;
	color: #222;
}
.clga-ds-thumb {
	flex: 0 0 80px;
	height: 40px;
	overflow: hidden;
}
.clga-ds .clga-ds-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.clga-ds-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.clga-ds-title {
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}
.clga-ds-name {
	font-size: 13px;
	line-height: 1.4;
	color: #666;
}
.clga-ds-item:hover .clga-ds-title,
.clga-ds-item:focus .clga-ds-title {
	color: #009FE3;
}
.clga-ds .clga-ds-results .clga-ds-more {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 9px;
	border: 0;
	border-radius: 3px;
	background: #F2F2F2;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	color: #333;
	cursor: pointer;
}
.clga-ds .clga-ds-results .clga-ds-more:hover {
	background: #e4e4e4;
}
