/* Agent Directory — replaces Content Views Pro "Agents View" */

.agent-directory {
	--agent-border: #717073;
	--agent-accent: #eba900;
	--agent-dark: #313e48;
	margin: 0 0 2rem;
}

/* Filter bar */
.agent-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem .5rem;
	margin-bottom: 1rem;
}

.agent-filter__heading {
	font-weight: 600;
	color: var(--agent-dark);
	margin-right: .25rem;
}

.agent-filter__btn {
	font: inherit;
	color: var(--agent-dark);
	background: transparent;
	border: 1px solid transparent;
	padding: .2rem .55rem;
	cursor: pointer;
	line-height: 1.4;
}

.agent-filter__btn:hover {
	border-color: var(--agent-accent);
}

/* Override Bootstrap's "button:focus" rule, which draws the browser's blue focus ring on click. */
.agent-filter__btn:focus {
	outline: none;
}

/* Keyboard focus stays visible, in the theme yellow. */
.agent-filter__btn:focus-visible {
	border-color: var(--agent-accent);
	outline: 2px solid var(--agent-accent);
	outline-offset: 1px;
}

.agent-filter__btn.is-active {
	background: var(--agent-accent);
	color: #fff;
}

/* Grid */
.agent-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--agent-cols, 6), minmax(0, 1fr));
	border-top: 1px solid var(--agent-border);
	border-left: 1px solid var(--agent-border);
}

.agent-card {
	padding: 15px;
	border-right: 1px solid var(--agent-border);
	border-bottom: 1px solid var(--agent-border);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.agent-card[hidden] {
	display: none;
}

.agent-card__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	margin-bottom: .75rem;
	background: #eee;
}

.agent-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agent-card__name {
	font-size: 18px;
	font-weight: 600;
	color: #717073;
	margin: 0 0 .35rem;
}

.agent-card__title {
	font-size: 14px;
	margin: 0 0 .35rem;
}

.agent-card__email,
.agent-card__website {
	margin: 0 0 .25rem;
	font-size: 15px;
	overflow-wrap: anywhere;
}

.agent-card a {
	color: var(--agent-accent);
}

@media (max-width: 1199.98px) {
	.agent-grid { grid-template-columns: repeat(min(var(--agent-cols, 6), 4), minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
	.agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
	.agent-grid { grid-template-columns: 1fr; }
}
