/* Bridge Road – Directory Filter v2 */
.brdf {
	--brdf-height: 62px;
	--brdf-radius: 999px;
	--brdf-border: #3d3d3d;
	--brdf-input-bg: #ffffff00;
	--brdf-input-text: #1c1c1c;
	--brdf-placeholder: #b9c6c6;
	--brdf-btn-bg: #e2e9ec;
	--brdf-btn-text: #36508a;
	--brdf-btn-hover-bg: #d3dde2;
	--brdf-active-bg: #36508a;
	--brdf-active-text: #ffffff;
	--brdf-gap: 10px;
	--brdf-meta: #5b6470;
	width: 100%;
	position: relative;
}
.brdf [hidden] { display: none !important; }
.brdf .brdf-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Search row ---------- */
.brdf .brdf-search { display: flex; align-items: center; gap: 16px; margin: 0; }
.brdf .brdf-field { position: relative; flex: 1 1 auto; min-width: 0; }
.brdf .brdf-input {
	display: block; width: 100%;
	height: var(--brdf-height);
	padding: 0 24px;
	border: 1px solid var(--brdf-border);
	border-radius: var(--brdf-radius);
	background: var(--brdf-input-bg);
	color: var(--brdf-input-text);
	font-size: 18px; line-height: 1.2;
	box-shadow: none; outline: none;
	-webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.brdf .brdf-input::placeholder { color: var(--brdf-placeholder); opacity: 1; }
.brdf .brdf-input:focus { border-color: var(--brdf-btn-text); box-shadow: 0 0 0 3px var(--brdf-btn-bg); }
.brdf .brdf-input::-webkit-search-cancel-button { cursor: pointer; }

.brdf .brdf-btn {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 10px;
	height: var(--brdf-height);
	padding: 0 32px;
	border: 0; border-radius: var(--brdf-radius);
	background: var(--brdf-btn-bg); color: var(--brdf-btn-text);
	font-size: 20px; font-weight: 500; line-height: 1;
	cursor: pointer; box-shadow: none; text-transform: none;
	transition: background-color .15s, color .15s;
}
.brdf .brdf-btn:hover, .brdf .brdf-btn:focus { background: var(--brdf-btn-hover-bg); color: var(--brdf-btn-text); }
.brdf .brdf-btn:focus-visible { outline: 2px solid var(--brdf-btn-text); outline-offset: 2px; }
.brdf .brdf-icon { display: block; flex: 0 0 auto; }

/* ---------- Suggestions ---------- */
.brdf .brdf-suggest {
	position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0;
	max-height: min(460px, 70vh); overflow-y: auto;
	padding: 8px;
	background: #fff; border: 1px solid #e3e6ea; border-radius: 20px;
	box-shadow: 0 14px 40px rgba(20, 30, 50, .14);
	text-align: left;
}
.brdf .brdf-sg-head {
	padding: 10px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: #8a929c;
}
.brdf .brdf-sg-note { padding: 8px 12px; font-size: 14px; color: var(--brdf-meta); }
.brdf .brdf-sg-item {
	display: flex; align-items: center; gap: 12px;
	padding: 8px 12px; border-radius: 14px;
	color: #1c1c1c; text-decoration: none; cursor: pointer;
}
.brdf .brdf-sg-item:hover, .brdf .brdf-sg-item.is-active { background: var(--brdf-btn-bg); color: #1c1c1c; text-decoration: none; }
.brdf .brdf-sg-img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eef1f3; }
.brdf .brdf-sg-ico {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--brdf-btn-bg); color: var(--brdf-btn-text);
}
.brdf .brdf-sg-item.is-active .brdf-sg-ico, .brdf .brdf-sg-item:hover .brdf-sg-ico { background: #fff; }
.brdf .brdf-sg-text { display: flex; flex-direction: column; min-width: 0; }
.brdf .brdf-sg-name { font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brdf .brdf-sg-name mark { background: none; color: var(--brdf-btn-text); padding: 0; }
.brdf .brdf-sg-meta { font-size: 13px; color: #7a828c; line-height: 1.3; }

/* ---------- Category pills ---------- */
.brdf .brdf-pills {
	display: flex; flex-wrap: wrap; gap: var(--brdf-gap);
	justify-content: flex-start;
	margin-top: 18px;
}
.brdf .brdf-pill {
	box-sizing: border-box;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px; margin: 0;
	border: 0; border-radius: var(--brdf-radius);
	background: var(--brdf-btn-bg); color: var(--brdf-btn-text);
	font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
	text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, color .15s, opacity .15s;
}
.brdf .brdf-pill:hover, .brdf .brdf-pill:focus { background: var(--brdf-btn-hover-bg); color: var(--brdf-btn-text); text-decoration: none; }
.brdf .brdf-pill.is-active, .brdf .brdf-pill.is-active:hover, .brdf .brdf-pill.is-active:focus { background: var(--brdf-active-bg); color: var(--brdf-active-text); }
.brdf .brdf-pill:focus-visible { outline: 2px solid var(--brdf-btn-text); outline-offset: 2px; }
.brdf .brdf-pill.is-empty { opacity: .4; cursor: default; }
.brdf .brdf-pill.is-empty:hover { background: var(--brdf-btn-bg); }
.brdf .brdf-n {
	display: inline-block; min-width: 1.6em; padding: 1px 7px;
	border-radius: 999px; background: rgba(255, 255, 255, .7);
	font-size: .8em; font-weight: 600; text-align: center; line-height: 1.5;
}
.brdf .brdf-pill.is-active .brdf-n { background: rgba(255, 255, 255, .2); }
.brdf .brdf-pill--back, .brdf .brdf-pill--back:hover, .brdf .brdf-pill--back:focus {
	background: transparent; color: var(--brdf-btn-text); box-shadow: inset 0 0 0 1px var(--brdf-btn-text);
}
.brdf .brdf-pill--back:hover { background: var(--brdf-btn-bg); }

/* ---------- A–Z ---------- */
.brdf .brdf-letters { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 16px; }
.brdf .brdf-letter {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 6px;
	border-radius: 999px; color: var(--brdf-btn-text);
	font-size: 15px; font-weight: 600; text-decoration: none;
	transition: background-color .15s, color .15s;
}
.brdf .brdf-letter:hover, .brdf .brdf-letter:focus { background: var(--brdf-btn-bg); color: var(--brdf-btn-text); text-decoration: none; }
.brdf .brdf-letter.is-active, .brdf .brdf-letter.is-active:hover { background: var(--brdf-active-bg); color: var(--brdf-active-text); }
.brdf .brdf-letter.is-disabled { opacity: .28; pointer-events: none; }

/* ---------- Count + no results ---------- */
.brdf .brdf-meta { margin-top: 14px; }
.brdf .brdf-count { margin: 0; color: var(--brdf-meta); font-size: 15px; }
.brdf .brdf-empty {
	margin-top: 8px; padding: 28px; border-radius: 22px;
	background: #fff; text-align: center;
}
.brdf .brdf-empty-msg { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: #1c1c1c; }
.brdf .brdf-empty-try { margin: 18px 0 10px; color: var(--brdf-meta); font-size: 15px; }
.brdf .brdf-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Loading ---------- */
.brdf-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }
.brdf.is-loading .brdf-icon { animation: brdf-pulse .8s ease-in-out infinite alternate; }
@keyframes brdf-pulse { from { opacity: 1; } to { opacity: .3; } }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.brdf { --brdf-height: 52px; }
	.brdf .brdf-search { gap: 10px; }
	.brdf .brdf-input { padding: 0 18px; font-size: 16px; }
	.brdf .brdf-btn { padding: 0 18px; }
	.brdf .brdf-btn-text { display: none; }
	.brdf .brdf-pills, .brdf .brdf-letters {
		flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
		scrollbar-width: none; padding-bottom: 4px;
	}
	.brdf .brdf-pills::-webkit-scrollbar, .brdf .brdf-letters::-webkit-scrollbar { display: none; }
	.brdf .brdf-pill { font-size: 15px; padding: 9px 16px; }
	.brdf .brdf-letter { flex: 0 0 auto; }
	.brdf .brdf-suggest { left: 0; right: calc(-1 * (var(--brdf-height) + 10px)); }
	.brdf .brdf-empty { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.brdf *, .brdf-loading { transition: none !important; animation: none !important; }
}
