/**
 * JDFCU Approved Evaluators Directory — frontend styles.
 *
 * All selectors are prefixed .jdfcu-ae- and scoped to the directory wrapper.
 * Design tokens (JDFCU navy / gold) live on .jdfcu-ae-directory so Elementor
 * and themes can override them per instance.
 */

/* ------------------------------------------------------------------ */
/* Wrapper + design tokens                                            */
/* ------------------------------------------------------------------ */

.jdfcu-ae-directory {
	--jdfcu-navy: #0A2855;
	--jdfcu-gold: #FFD200;
	--jdfcu-white: #FFFFFF;
	--jdfcu-bg: #F7F9FC;
	--jdfcu-border: #E4EAF2;
	--jdfcu-text: #1A2B45;
	--jdfcu-muted: #5A6B85;
	--jdfcu-radius: 14px;
	--jdfcu-shadow: 0 2px 10px rgba(10, 40, 85, .06);
	--jdfcu-shadow-hover: 0 8px 24px rgba(10, 40, 85, .14);

	/* Inherit the theme font, with a sane system fallback when nothing cascades. */
	font-family: inherit;
	background: var(--jdfcu-bg);
	color: var(--jdfcu-text);
	border-radius: var(--jdfcu-radius);
	padding: 32px 24px 28px;
	position: relative;
	line-height: 1.5;
	font-size: 16px;
}

.jdfcu-ae-directory,
.jdfcu-ae-directory *,
.jdfcu-ae-directory *::before,
.jdfcu-ae-directory *::after {
	box-sizing: border-box;
}

.jdfcu-ae-directory button,
.jdfcu-ae-directory input,
.jdfcu-ae-directory select {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* [hidden] must always win over display:flex/grid rules below. */
.jdfcu-ae-directory [hidden] {
	display: none !important;
}

/* Screen-reader-only utility. */
.jdfcu-ae-directory .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Icons */
.jdfcu-ae-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: inherit;
}

.jdfcu-ae-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Visible focus for every focusable element. */
.jdfcu-ae-directory a:focus-visible,
.jdfcu-ae-directory button:focus-visible,
.jdfcu-ae-directory input:focus-visible,
.jdfcu-ae-directory select:focus-visible {
	outline: 3px solid var(--jdfcu-gold);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.jdfcu-ae-header {
	margin: 0 0 26px;
}

.jdfcu-ae-title {
	margin: 0;
	padding: 0 0 14px;
	position: relative;
	text-align: center;
	color: var(--jdfcu-navy);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
}

.jdfcu-ae-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--jdfcu-gold);
}

.jdfcu-ae-subtitle {
	margin: 12px auto 0;
	max-width: 560px;
	text-align: center;
	color: var(--jdfcu-muted);
	font-size: .975rem;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                               */
/* ------------------------------------------------------------------ */

.jdfcu-ae-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 20px;
}

.jdfcu-ae-tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 28px;
	border: 1px solid var(--jdfcu-border);
	border-radius: 999px;
	background: var(--jdfcu-white);
	color: var(--jdfcu-navy);
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	box-shadow: var(--jdfcu-shadow);
	transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.jdfcu-ae-tab:hover {
	border-color: var(--jdfcu-navy);
	color: var(--jdfcu-navy);
	background: var(--jdfcu-white);
}

.jdfcu-ae-tab.is-active {
	background: var(--jdfcu-navy);
	border-color: var(--jdfcu-navy);
	color: var(--jdfcu-white);
	box-shadow: inset 0 -3px 0 var(--jdfcu-gold), var(--jdfcu-shadow);
}

.jdfcu-ae-tab.is-active:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-tab:focus-visible {
	outline: 3px solid var(--jdfcu-gold);
	outline-offset: 2px;
}

.jdfcu-ae-tab .jdfcu-ae-icon svg {
	width: 17px;
	height: 17px;
}

/* ------------------------------------------------------------------ */
/* Search                                                             */
/* ------------------------------------------------------------------ */

.jdfcu-ae-searchbar {
	margin: 0 0 16px;
}

.jdfcu-ae-search-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.jdfcu-ae-search-wrap > .jdfcu-ae-icon--search {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--jdfcu-muted);
	pointer-events: none;
	z-index: 1;
}

.jdfcu-ae-search {
	width: 100%;
	height: 52px;
	padding: 0 18px 0 48px;
	border: 1px solid var(--jdfcu-border);
	border-radius: 12px;
	background: var(--jdfcu-white);
	color: var(--jdfcu-text);
	font-size: 1rem;
	box-shadow: var(--jdfcu-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jdfcu-ae-search::placeholder {
	color: var(--jdfcu-muted);
	opacity: 1;
}

.jdfcu-ae-search:focus {
	outline: none;
	border-color: var(--jdfcu-navy);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
}

.jdfcu-ae-search::-webkit-search-decoration {
	-webkit-appearance: none;
}

/* ------------------------------------------------------------------ */
/* Toolbar: filter toggle + sort                                      */
/* ------------------------------------------------------------------ */

.jdfcu-ae-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
}

.jdfcu-ae-filter-toggle {
	display: none; /* mobile only — see media query */
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--jdfcu-navy);
	border-radius: 10px;
	background: var(--jdfcu-white);
	color: var(--jdfcu-navy);
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.jdfcu-ae-filter-toggle:hover,
.jdfcu-ae-filter-toggle[aria-expanded="true"] {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-sort-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-left: auto;
}

.jdfcu-ae-sort-wrap > label {
	color: var(--jdfcu-muted);
	font-size: .875rem;
	font-weight: 600;
	margin: 0;
}

.jdfcu-ae-sort,
.jdfcu-ae-filter {
	height: 44px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--jdfcu-border);
	border-radius: 10px;
	background-color: var(--jdfcu-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	color: var(--jdfcu-text);
	font-size: .9rem;
	cursor: pointer;
	box-shadow: var(--jdfcu-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jdfcu-ae-sort:hover,
.jdfcu-ae-filter:hover {
	border-color: var(--jdfcu-navy);
}

.jdfcu-ae-sort:focus,
.jdfcu-ae-filter:focus {
	outline: none;
	border-color: var(--jdfcu-navy);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
}

.jdfcu-ae-sort-note,
.jdfcu-ae-geo-note {
	display: block;
	width: 100%;
	text-align: right;
	color: var(--jdfcu-muted);
	font-size: .78rem;
}

.jdfcu-ae-geo-note {
	color: var(--jdfcu-navy);
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Filters panel                                                      */
/* ------------------------------------------------------------------ */

.jdfcu-ae-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	background: var(--jdfcu-white);
	border: 1px solid var(--jdfcu-border);
	border-radius: var(--jdfcu-radius);
	box-shadow: var(--jdfcu-shadow);
	padding: 16px 18px;
	margin: 0 0 18px;
}

.jdfcu-ae-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 180px;
	min-width: 180px;
	max-width: 280px;
	margin: 0;
}

.jdfcu-ae-filter-field > span {
	color: var(--jdfcu-muted);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.jdfcu-ae-filter {
	width: 100%;
}

.jdfcu-ae-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	color: var(--jdfcu-text);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.jdfcu-ae-featured-only {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--jdfcu-navy);
	cursor: pointer;
	flex: none;
}

.jdfcu-ae-clear-filters {
	height: 44px;
	padding: 0 20px;
	margin-left: auto;
	border: 1px solid var(--jdfcu-navy);
	border-radius: 10px;
	background: transparent;
	color: var(--jdfcu-navy);
	font-weight: 600;
	font-size: .875rem;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.jdfcu-ae-clear-filters:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

/* ------------------------------------------------------------------ */
/* Status line + loading state                                        */
/* ------------------------------------------------------------------ */

.jdfcu-ae-status {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 22px;
	margin: 0 0 14px;
	color: var(--jdfcu-muted);
	font-size: .875rem;
}

.jdfcu-ae-directory.is-loading .jdfcu-ae-status::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--jdfcu-border);
	border-top-color: var(--jdfcu-navy);
	animation: jdfcu-ae-spin .7s linear infinite;
}

@keyframes jdfcu-ae-spin {
	to {
		transform: rotate(360deg);
	}
}

.jdfcu-ae-results.is-loading .jdfcu-ae-card {
	opacity: .5;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Results grid: 1 / 2 / 3 columns                                    */
/* ------------------------------------------------------------------ */

.jdfcu-ae-results {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.jdfcu-ae-results {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.jdfcu-ae-results {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Card                                                               */
/* ------------------------------------------------------------------ */

.jdfcu-ae-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--jdfcu-white);
	border: 1px solid var(--jdfcu-border);
	border-radius: var(--jdfcu-radius);
	box-shadow: var(--jdfcu-shadow);
	padding: 22px 20px 18px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.jdfcu-ae-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--jdfcu-shadow-hover);
}

.jdfcu-ae-card.is-featured {
	border-left: 4px solid var(--jdfcu-gold);
}

.jdfcu-ae-card-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--jdfcu-gold);
	color: var(--jdfcu-navy);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
}

.jdfcu-ae-card-badge .jdfcu-ae-icon svg {
	width: 12px;
	height: 12px;
}

.jdfcu-ae-card-head {
	margin: 0 0 14px;
}

.jdfcu-ae-card.is-featured .jdfcu-ae-card-head {
	padding-right: 96px;
}

.jdfcu-ae-card-title {
	margin: 0 0 6px;
	color: var(--jdfcu-navy);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.jdfcu-ae-card-branch {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: var(--jdfcu-muted);
	font-size: .85rem;
	font-weight: 600;
}

.jdfcu-ae-card-branch .jdfcu-ae-icon svg {
	width: 14px;
	height: 14px;
}

.jdfcu-ae-card-type {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(10, 40, 85, .07);
	color: var(--jdfcu-navy);
	font-size: .78rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1.2;
}

.jdfcu-ae-card-type .jdfcu-ae-icon svg {
	width: 14px;
	height: 14px;
}

.jdfcu-ae-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	margin: 0 0 16px;
}

.jdfcu-ae-card-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--jdfcu-text);
	font-size: .9rem;
}

.jdfcu-ae-card-row > .jdfcu-ae-icon {
	width: 18px;
	margin-top: 2px;
	color: var(--jdfcu-navy);
}

.jdfcu-ae-card-row > .jdfcu-ae-icon svg {
	width: 16px;
	height: 16px;
}

.jdfcu-ae-card-row-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.jdfcu-ae-card-row-text a {
	color: var(--jdfcu-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jdfcu-ae-card-row-text a:hover {
	color: #081F42;
}

.jdfcu-ae-card-label {
	font-weight: 700;
	color: var(--jdfcu-navy);
}

.jdfcu-ae-card-locality {
	color: var(--jdfcu-muted);
	font-size: .84rem;
}

.jdfcu-ae-card-distance {
	color: var(--jdfcu-navy);
	font-weight: 600;
}

.jdfcu-ae-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid var(--jdfcu-border);
	padding-top: 16px;
	margin-top: auto;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.jdfcu-ae-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jdfcu-ae-btn:hover {
	text-decoration: none;
}

.jdfcu-ae-btn .jdfcu-ae-icon svg {
	width: 15px;
	height: 15px;
}

.jdfcu-ae-btn:focus-visible {
	outline: 3px solid var(--jdfcu-gold);
	outline-offset: 2px;
}

.jdfcu-ae-btn--details {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-btn--details:hover {
	background: #081F42;
	color: var(--jdfcu-white);
}

.jdfcu-ae-btn--call {
	background: var(--jdfcu-gold);
	color: var(--jdfcu-navy);
}

.jdfcu-ae-btn--call:hover {
	background: #E6BD00;
	color: var(--jdfcu-navy);
}

.jdfcu-ae-btn--website,
.jdfcu-ae-btn--directions,
.jdfcu-ae-btn--email {
	background: var(--jdfcu-white);
	color: var(--jdfcu-navy);
	border-color: var(--jdfcu-navy);
}

.jdfcu-ae-btn--website:hover,
.jdfcu-ae-btn--directions:hover,
.jdfcu-ae-btn--email:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

/* ------------------------------------------------------------------ */
/* Load More                                                          */
/* ------------------------------------------------------------------ */

.jdfcu-ae-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin: 22px 0 0;
}

.jdfcu-ae-loadmore {
	padding: 13px 36px;
	border: 1px solid var(--jdfcu-navy);
	border-radius: 999px;
	background: transparent;
	color: var(--jdfcu-navy);
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.jdfcu-ae-loadmore:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-loadmore:disabled {
	opacity: .6;
	cursor: default;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                        */
/* ------------------------------------------------------------------ */

.jdfcu-ae-empty {
	text-align: center;
	background: var(--jdfcu-white);
	border: 1px dashed var(--jdfcu-border);
	border-radius: var(--jdfcu-radius);
	padding: 48px 20px;
	margin: 0 0 8px;
}

.jdfcu-ae-empty > .jdfcu-ae-icon {
	color: var(--jdfcu-muted);
}

.jdfcu-ae-empty > .jdfcu-ae-icon svg {
	width: 40px;
	height: 40px;
	stroke-width: 1.5;
}

.jdfcu-ae-empty p {
	margin: 12px 0 20px;
	color: var(--jdfcu-navy);
	font-size: 1.05rem;
	font-weight: 600;
}

.jdfcu-ae-empty-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.jdfcu-ae-clear-filters-link,
.jdfcu-ae-view-all {
	padding: 11px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: .875rem;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.jdfcu-ae-clear-filters-link {
	background: transparent;
	border: 1px solid var(--jdfcu-navy);
	color: var(--jdfcu-navy);
}

.jdfcu-ae-clear-filters-link:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-view-all {
	background: var(--jdfcu-navy);
	border: 1px solid var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-view-all:hover {
	background: #081F42;
}

/* ------------------------------------------------------------------ */
/* Disclaimer                                                         */
/* ------------------------------------------------------------------ */

.jdfcu-ae-disclaimer {
	border-top: 1px solid var(--jdfcu-border);
	margin-top: 26px;
	padding-top: 16px;
	color: var(--jdfcu-muted);
	font-size: .78rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Modal                                                              */
/* ------------------------------------------------------------------ */

.jdfcu-ae-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.jdfcu-ae-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 40, 85, .55);
	cursor: pointer;
}

.jdfcu-ae-modal-box {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--jdfcu-white);
	border-radius: 16px;
	max-width: 760px;
	width: 100%;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(10, 40, 85, .3);
}

.jdfcu-ae-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--jdfcu-border);
	border-radius: 50%;
	background: var(--jdfcu-bg);
	color: var(--jdfcu-navy);
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.jdfcu-ae-modal-close:hover {
	background: var(--jdfcu-navy);
	color: var(--jdfcu-white);
}

.jdfcu-ae-modal-content {
	overflow-y: auto;
	padding: 28px;
}

body.jdfcu-ae-noscroll {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Single evaluator view                                              */
/* ------------------------------------------------------------------ */

.jdfcu-ae-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--jdfcu-navy);
	font-weight: 600;
	text-decoration: none;
}

.jdfcu-ae-back:hover span {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jdfcu-ae-single {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jdfcu-ae-single-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jdfcu-ae-directory--single .jdfcu-ae-single-header {
	background: var(--jdfcu-white);
	border: 1px solid var(--jdfcu-border);
	border-radius: var(--jdfcu-radius);
	box-shadow: var(--jdfcu-shadow);
	padding: 24px;
}

.jdfcu-ae-single-top {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.jdfcu-ae-single-logo {
	width: 72px;
	height: 72px;
	flex: none;
	object-fit: contain;
	border: 1px solid var(--jdfcu-border);
	border-radius: 10px;
	background: var(--jdfcu-white);
	padding: 6px;
	max-width: 100%;
}

.jdfcu-ae-single-title {
	margin: 0 0 8px;
	padding-right: 44px; /* keep clear of the modal close button */
	color: var(--jdfcu-navy);
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.25;
}

.jdfcu-ae-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.jdfcu-ae-single .jdfcu-ae-card-badge {
	position: static;
}

.jdfcu-ae-single-desc {
	color: var(--jdfcu-text);
	font-size: .95rem;
	line-height: 1.65;
}

.jdfcu-ae-single-desc p {
	margin: 0 0 10px;
}

.jdfcu-ae-single-desc p:last-child {
	margin-bottom: 0;
}

.jdfcu-ae-single-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jdfcu-ae-single-branches {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.jdfcu-ae-single-branches {
		grid-template-columns: repeat(2, 1fr);
	}
}

.jdfcu-ae-branch-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--jdfcu-white);
	border: 1px solid var(--jdfcu-border);
	border-radius: var(--jdfcu-radius);
	box-shadow: var(--jdfcu-shadow);
	padding: 20px;
}

.jdfcu-ae-branch-title {
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--jdfcu-border);
	color: var(--jdfcu-navy);
	font-size: 1.05rem;
	font-weight: 700;
}

.jdfcu-ae-branch-services {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.jdfcu-ae-chip {
	display: inline-flex;
	align-items: center;
	background: rgba(10, 40, 85, .07);
	color: var(--jdfcu-navy);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.3;
}

.jdfcu-ae-branch-actions {
	margin-top: auto;
	padding-top: 6px;
}

.jdfcu-ae-single-missing {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--jdfcu-muted);
}

/* ------------------------------------------------------------------ */
/* Mobile: filter drawer (<768px)                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.jdfcu-ae-filter-toggle {
		display: inline-flex;
	}

	.jdfcu-ae-filters {
		display: none;
	}

	.jdfcu-ae-filters.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		animation: jdfcu-ae-slide .2s ease;
	}

	.jdfcu-ae-filter-field {
		max-width: none;
		width: 100%;
	}

	.jdfcu-ae-clear-filters {
		margin-left: 0;
		width: 100%;
	}

	.jdfcu-ae-sort-wrap {
		flex: 1 1 auto;
		justify-content: flex-end;
	}
}

@keyframes jdfcu-ae-slide {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile: big Call button + stacked actions (<640px)                 */
/* ------------------------------------------------------------------ */

@media (max-width: 639px) {
	.jdfcu-ae-directory {
		padding: 24px 16px 22px;
	}

	.jdfcu-ae-title {
		font-size: 1.4rem;
	}

	.jdfcu-ae-tab {
		padding: 12px 20px;
		font-size: .875rem;
	}

	.jdfcu-ae-card-actions {
		gap: 8px;
	}

	.jdfcu-ae-btn--call {
		width: 100%;
		order: -1;
		min-height: 52px;
		font-size: 1rem;
	}

	.jdfcu-ae-btn--details,
	.jdfcu-ae-btn--website,
	.jdfcu-ae-btn--directions {
		flex: 1 1 auto;
		min-height: 44px;
	}

	.jdfcu-ae-modal {
		padding: 12px;
	}

	.jdfcu-ae-modal-content {
		padding: 22px 18px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.jdfcu-ae-directory *,
	.jdfcu-ae-directory *::before,
	.jdfcu-ae-directory *::after {
		transition: none !important;
		animation: none !important;
	}

	.jdfcu-ae-card:hover {
		transform: none;
	}
}
