/* A7R4 directory hero — scoped to shortcode (+ page-id-1084 helpers only) */
.ndc-bj-pbd {
	--ndc-bj-pbd-deep: #103b34;
	--ndc-bj-pbd-cta: #146b52;
	--ndc-bj-pbd-soft: #f5f8f6;
	--ndc-bj-pbd-text: #1e3030;
	--ndc-bj-pbd-muted: #64726d;
	--ndc-bj-pbd-panel: #ffffff;
	--ndc-bj-pbd-accent: #d5ae67;
	--ndc-bj-pbd-border: #d7e0db;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0 0 28px;
	color: var(--ndc-bj-pbd-text);
	background: var(--ndc-bj-pbd-soft);
	font-family: var(--ndc-font-family-ui, var(--ndcpd-font-family, "Be Vietnam Pro", system-ui, sans-serif));
	text-align: left;
}
.ndc-bj-pbd *,
.ndc-bj-pbd *::before,
.ndc-bj-pbd *::after {
	box-sizing: border-box;
}

/* Break out of nested Kadence content box toward homepage frame width */
.ndc-bj-pbd {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	max-width: 100vw;
}
.ndc-bj-pbd__shell {
	width: min(calc(100% - (var(--ndc-public-gutter, clamp(16px, 2.2vw, 32px)) * 2)), var(--ndc-public-max, 1650px));
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 16px 24px 24px;
	border: 1px solid #cbd9d2;
	border-radius: 12px;
}

/*
 * Page 1084 only: suppress Kadence page-title banner (duplicate H1 presentation).
 * Shortcode provides the sole meaningful H1. Does not hide unrelated site H1s.
 */
body.page-id-1084 .entry-header,
body.page-id-1084 .wp-block-post-title,
body.page-id-1084 .entry-hero,
body.page-id-1084 .entry-title {
	display: none !important;
}
body.page-id-1084 .content-area .entry-content,
body.page-id-1084 .entry-content-wrap,
body.page-id-1084 .kt-inside-inner-col > .wp-block-shortcode,
body.page-id-1084 .entry-content > .wp-block-shortcode {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* Remove the theme's empty top band above the public directory. */
body.page-id-1084 #primary,
body.page-id-1084 .content-area,
body.page-id-1084 .site-main,
body.page-id-1084 .entry-content,
body.page-id-1084 .entry-content-wrap {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.page-id-1084 .site-main > article,
body.page-id-1084 .content-area > .site-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* A7R4 photo banner: genuine static visual asset, not an empty gradient. */
.ndc-bj-pbd__banner {
	width: 100%;
	margin: 0 0 16px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--ndc-bj-pbd-border);
	background: var(--ndc-bj-pbd-panel);
	aspect-ratio: 5 / 1;
	min-height: 140px;
	max-height: 340px;
}
.ndc-bj-pbd__banner-placeholder {
	width: 100%;
	height: 100%;
	min-height: 140px;
	background: #dce9e4 url("./broker-directory-hero.png") center 53% / cover no-repeat;
}
.ndc-bj-pbd__banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ndc-bj-pbd__intro {
	margin: 0 0 12px;
	padding: 0;
}
.ndc-bj-pbd__title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--ndc-bj-pbd-deep);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-align: left;
	text-transform: none;
}
.ndc-bj-pbd__lead {
	margin: 0;
	color: var(--ndc-bj-pbd-muted);
	font-size: 0.98rem;
	line-height: 1.45;
	font-weight: 400;
	text-transform: none;
}

/* Compact horizontal filter row — leftover space stays on the right */
.ndc-bj-pbd__filters {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ndc-bj-pbd-panel);
	border: 1px solid var(--ndc-bj-pbd-border);
	box-shadow: 0 1px 2px rgba(16, 59, 52, 0.04);
}
.ndc-bj-pbd__filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 10px 12px;
}
.ndc-bj-pbd__help {
	margin: 0 0 12px;
	color: var(--ndc-bj-pbd-muted);
	font-size: .9rem;
}
.ndc-bj-pbd__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 0 1 auto;
}
.ndc-bj-pbd__field--q {
	flex: 0 1 240px;
	width: 240px;
	max-width: 100%;
}
.ndc-bj-pbd__field--province {
	flex: 0 1 280px;
	width: 280px;
	max-width: 100%;
}
.ndc-bj-pbd__field--area {
	flex: 0 1 320px;
	width: 320px;
	max-width: 100%;
}
.ndc-bj-pbd__field--submit {
	flex: 0 0 auto;
}
.ndc-bj-pbd__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ndc-bj-pbd-deep);
	text-transform: none;
	letter-spacing: normal;
}
.ndc-bj-pbd__label--spacer {
	visibility: hidden;
	height: 1.05em;
}
.ndc-bj-pbd__input,
.ndc-bj-pbd__select {
	width: 100%;
	min-height: 42px;
	height: 42px;
	padding: 6px 12px;
	border: 1px solid #c9d6d0;
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: var(--ndc-bj-pbd-text);
}
.ndc-bj-pbd__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	height: 42px;
	padding: 0 18px;
	min-width: 15.5rem;
	border: 0;
	border-radius: 10px;
	background: var(--ndc-bj-pbd-cta);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}
.ndc-bj-pbd__empty {
	margin: 0;
	padding: 14px;
	border-radius: 12px;
	border: 1px dashed #c9d6d0;
	background: var(--ndc-bj-pbd-panel);
	color: var(--ndc-bj-pbd-muted);
}

/* 5 cols wide desktop; adaptive 4/3/2/1 */
.ndc-bj-pbd__grid {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	align-items: stretch;
}
.ndc-bj-pbd__card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 14px;
	border-radius: 12px;
	background: var(--ndc-bj-pbd-panel);
	border: 1px solid var(--ndc-bj-pbd-border);
	box-shadow: 0 2px 8px rgba(16, 59, 52, 0.08);
}
.ndc-bj-pbd__avatar {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(16, 59, 52, 0.10);
	background: #dce5e1;
}
.ndc-bj-pbd__avatar--empty {
	flex: 0 0 68px;
}
.ndc-bj-pbd__results {scroll-margin-top: 20px; outline: none;}
.ndc-bj-pbd__results-title {margin: 6px 0; font-size: 1.25rem; color: var(--ndc-bj-pbd-deep);}
.ndc-bj-pbd__result-note {margin: 0 0 14px; color: var(--ndc-bj-pbd-muted); font-size: .9rem;}
.ndc-bj-pbd__combobox {position: relative; width: 100%;}
.ndc-bj-pbd__combobox-input {width: 100%; min-height: 42px; border: 1px solid #c9d6d0; border-radius: 10px; padding: 8px 12px; font: inherit; background: #fff; color: var(--ndc-bj-pbd-text);}
.ndc-bj-pbd__combobox-list {position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 30; background: #fff; border: 1px solid #c9d6d0; border-radius: 10px; padding: 4px; margin: 0; list-style: none; max-height: 230px; overflow-y: auto; box-shadow: 0 12px 24px rgba(16, 59, 52, .12);}
.ndc-bj-pbd__combobox-list[hidden] {display: none;}
.ndc-bj-pbd__combobox-option {width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; color: var(--ndc-bj-pbd-text); cursor: pointer; border-radius: 6px; font: inherit;}
.ndc-bj-pbd__combobox-option:hover, .ndc-bj-pbd__combobox-option:focus-visible {background: #e7f3ee; outline: 2px solid #146b52;}
/* Theme-wide button hover styles must not turn dropdown text white. */
.ndc-bj-pbd .ndc-bj-pbd__combobox-list .ndc-bj-pbd__combobox-option {
	color: #103b34 !important;
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}
.ndc-bj-pbd .ndc-bj-pbd__combobox-list .ndc-bj-pbd__combobox-option:hover,
.ndc-bj-pbd .ndc-bj-pbd__combobox-list .ndc-bj-pbd__combobox-option:focus-visible {
	color: #103b34 !important;
	background: #e2f2eb !important;
	outline: 2px solid #146b52;
	outline-offset: -2px;
}
.ndc-bj-pbd__combobox [data-enhanced-select] {position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;}
.ndc-bj-pbd__body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	text-align: left;
}
.ndc-bj-pbd__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ndc-bj-pbd-deep);
	word-wrap: break-word;
	overflow-wrap: anywhere;
	text-transform: none;
}
.ndc-bj-pbd__status,
.ndc-bj-pbd__area,
.ndc-bj-pbd__phone {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--ndc-bj-pbd-muted);
}
.ndc-bj-pbd__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f3ee;
	color: var(--ndc-bj-pbd-cta);
	font-weight: 600;
	font-size: 0.72rem;
	text-transform: none;
}
.ndc-bj-pbd__phone-masked {
	color: var(--ndc-bj-pbd-text);
	font-weight: 600;
}
.ndc-bj-pbd__cta {
	margin: 6px 0 0;
}
.ndc-bj-pbd__link {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--ndc-bj-pbd-cta);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.82rem;
}
.ndc-bj-pbd__pager {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.ndc-bj-pbd__page-link {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--ndc-bj-pbd-cta);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
}
.ndc-bj-pbd__page-status {
	color: var(--ndc-bj-pbd-muted);
	font-size: 0.85rem;
}

/* Layout: ≥1500 → 5; 1200–1499 → 4; 900–1199 → 3; 600–899 → 2; ≤599 → 1 */
@media (max-width: 1499px) {
	.ndc-bj-pbd__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 1199px) {
	.ndc-bj-pbd__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ndc-bj-pbd__title {
		font-size: 26px;
	}
}
@media (max-width: 899px) {
	.ndc-bj-pbd__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.ndc-bj-pbd__field--q,
	.ndc-bj-pbd__field--province,
	.ndc-bj-pbd__field--area {
		flex: 1 1 calc(50% - 12px);
		width: auto;
		max-width: none;
	}
}
@media (max-width: 599px) {
	.ndc-bj-pbd__shell {
		width: min(calc(100% - (var(--ndc-public-gutter, clamp(16px, 2.2vw, 32px)) * 2)), var(--ndc-public-max, 1650px));
		padding: 12px;
	}
	.ndc-bj-pbd__banner {
		aspect-ratio: 16 / 7;
		min-height: 110px;
		max-height: 180px;
		margin-bottom: 12px;
	}
	.ndc-bj-pbd__title {
		font-size: 22px;
	}
	.ndc-bj-pbd__grid {
		grid-template-columns: 1fr;
	}
	.ndc-bj-pbd__filters-row {
		flex-direction: column;
		align-items: stretch;
	}
	.ndc-bj-pbd__field--q,
	.ndc-bj-pbd__field--province,
	.ndc-bj-pbd__field--area,
	.ndc-bj-pbd__field--submit {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
	}
	.ndc-bj-pbd__label--spacer {
		display: none;
	}
	.ndc-bj-pbd__submit {
		width: 100%;
		min-width: 0;
		white-space: normal;
		height: auto;
		min-height: 42px;
		padding: 10px 14px;
		text-align: center;
	}
}

/* Trust Card V2 — directory cards only; retain existing 5/4/3/2/1 grid. */
.ndc-bj-pbd .ndc-bj-pbd__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-height: 292px;
	padding: 22px 18px 18px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 7px 22px rgba(16, 59, 52, .07);
}
.ndc-bj-pbd .ndc-bj-pbd__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #146b52;
}
.ndc-bj-pbd__card-head {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding-bottom: 17px;
	border-bottom: 1px solid #e5eee9;
}
.ndc-bj-pbd .ndc-bj-pbd__avatar,
.ndc-bj-pbd .ndc-bj-pbd__avatar--empty {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(16, 59, 52, .12);
}
.ndc-bj-pbd__identity {min-width: 0; flex: 1 1 auto;}
.ndc-bj-pbd .ndc-bj-pbd__name {
	font-size: 1.02rem;
	line-height: 1.35;
	margin: 0 0 9px;
}
.ndc-bj-pbd .ndc-bj-pbd__status {margin: 0;}
.ndc-bj-pbd .ndc-bj-pbd__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .78rem;
	line-height: 1.3;
	padding: 6px 10px;
	background: #e5f4ed;
	white-space: normal;
}
.ndc-bj-pbd__badge::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #16996c;
}
.ndc-bj-pbd .ndc-bj-pbd__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 13px;
	padding: 17px 0 0;
	width: 100%;
	flex: 1 1 auto;
}
.ndc-bj-pbd .ndc-bj-pbd__area,
.ndc-bj-pbd .ndc-bj-pbd__listing-count {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: .88rem;
	line-height: 1.5;
	color: #4e675d;
}
.ndc-bj-pbd__area strong,
.ndc-bj-pbd__listing-count strong {color: #103b34; font-weight: 700;}
.ndc-bj-pbd__area svg,
.ndc-bj-pbd__listing-count svg {
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	margin-top: 1px;
	color: #146b52;
}
.ndc-bj-pbd .ndc-bj-pbd__cta {margin: auto 0 0; padding-top: 22px; width: 100%;}
.ndc-bj-pbd .ndc-bj-pbd__link {
	display: flex;
	justify-content: center;
	min-height: 46px;
	width: 100%;
	padding: 12px 9px;
	border-radius: 10px;
	background: #177a5d;
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}
.ndc-bj-pbd .ndc-bj-pbd__link:hover,
.ndc-bj-pbd .ndc-bj-pbd__link:focus-visible {
	background: #103b34;
	color: #fff !important;
	outline: 2px solid #d5ae67;
	outline-offset: 2px;
}
@media (max-width: 599px) {
	.ndc-bj-pbd .ndc-bj-pbd__card {min-height: 0; padding: 20px 18px 18px;}
	.ndc-bj-pbd .ndc-bj-pbd__cta {padding-top: 20px;}
}
