/* =============================================================
   MortgageWire — directory.css
   Lender & broker directory — index and profile pages
============================================================= */


/* --- WRAPPER --- */
.dir-wrap {
	padding: 24px 24px 48px;
	max-width: 1200px;
	margin: 0 auto;
}


/* --- PAGE HEADER --- */
.dir-page-head {
	margin-bottom: 20px;
}

.dir-page-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.3px;
	margin-bottom: 5px;
}

.dir-page-sub {
	font-size: 14px;
	color: #666660;
}


/* --- FILTERS --- */
.dir-filters {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
}

.dir-filter-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.dir-search {
	flex: 1;
	min-width: 180px;
	height: 36px;
	padding: 0 12px;
	border: 0.5px solid #D0CCC4;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	background: #F7F5F0;
	color: #1A1A1A;
}

.dir-search:focus {
	outline: none;
	border-color: #2176C7;
	background: #ffffff;
}

.dir-select {
	height: 36px;
	padding: 0 10px;
	border: 0.5px solid #D0CCC4;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	background: #F7F5F0;
	color: #1A1A1A;
	cursor: pointer;
}

.dir-select:focus {
	outline: none;
	border-color: #2176C7;
}

.dir-filter-btn {
	height: 36px;
	padding: 0 18px;
	background: #2176C7;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.dir-filter-btn:hover {
	background: #1A5FA0;
}

.dir-filter-clear {
	font-size: 13px;
	color: #999490;
	text-decoration: none;
}

.dir-filter-clear:hover {
	color: #2176C7;
}


/* --- RESULTS BAR --- */
.dir-results-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666660;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.dir-active-filter {
	background: #EAF2FC;
	color: #1A5FA0;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
}


/* --- LISTING CARDS --- */
.dir-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dir-card {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: border-color 0.15s;
}

.dir-card:hover {
	border-color: #2176C7;
}

.dir-card--featured {
	border-color: #2176C7;
}

.dir-card-main {
	flex: 1;
	padding: 16px 20px;
}

.dir-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.dir-card-name {
	font-size: 15px;
	font-weight: 500;
	color: #1A1A1A;
}

.dir-card-badges {
	display: flex;
	gap: 5px;
}

.dir-card-tagline {
	font-size: 13px;
	color: #444440;
	margin-bottom: 8px;
	line-height: 1.5;
}

.dir-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #888880;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.dir-card-sep {
	color: #C8C4BE;
}

.dir-card-loans {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.dir-card-cta {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 20px;
	font-size: 12px;
	font-weight: 500;
	color: #2176C7;
	background: #F7F5F0;
	border-left: 0.5px solid #E0DDD6;
	white-space: nowrap;
	transition: background 0.15s;
}

.dir-card:hover .dir-card-cta {
	background: #EAF2FC;
}


/* --- TAGS --- */
.dir-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 20px;
}

.dir-tag--lender {
	background: #EAF2FC;
	color: #1A5FA0;
}

.dir-tag--broker {
	background: #EAF3E6;
	color: #2E6B1A;
}

.dir-tag--featured {
	background: #FDF0E0;
	color: #8A5200;
}

.dir-loan-tag {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 20px;
	border: 0.5px solid #D0CCC4;
	color: #666660;
	background: #F7F5F0;
}

.dir-loan-tag--lg {
	font-size: 12px;
	padding: 4px 12px;
}

.dir-spec-tag {
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	border: 0.5px solid #D0CCC4;
	color: #444440;
	background: #F7F5F0;
}


/* --- EMPTY / NOT FOUND --- */
.dir-empty,
.dir-not-found {
	padding: 40px;
	text-align: center;
	font-size: 14px;
	color: #666660;
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
}

.dir-empty a,
.dir-not-found a {
	color: #2176C7;
}


/* =============================================================
   PROFILE PAGE
============================================================= */
.dir-profile-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 24px;
	align-items: start;
}

.dir-profile-card {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	overflow: hidden;
}

.dir-profile-header {
	padding: 24px 28px 20px;
	border-bottom: 0.5px solid #E0DDD6;
}

.dir-profile-badges {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.dir-profile-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.3px;
	margin-bottom: 6px;
}

.dir-profile-tagline {
	font-size: 14px;
	color: #666660;
	line-height: 1.55;
}

.dir-profile-body {
	padding: 20px 28px 28px;
}

.dir-profile-section-hed {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 10px;
	margin-top: 20px;
}

.dir-profile-section-hed:first-child {
	margin-top: 0;
}

.dir-profile-desc {
	font-size: 14px;
	color: #333330;
	line-height: 1.7;
}

.dir-profile-loans {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dir-profile-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dir-profile-states {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.dir-state-chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 4px;
	background: #F7F5F0;
	border: 0.5px solid #E0DDD6;
	color: #444440;
	text-decoration: none;
	transition: background 0.12s, border-color 0.12s;
}

.dir-state-chip:hover {
	background: #EAF2FC;
	border-color: #2176C7;
	color: #2176C7;
}


/* --- PROFILE SIDEBAR --- */
.dir-profile-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 80px;
}

.dir-contact-card {
	background: #0C2340;
	border-radius: 10px;
	padding: 18px;
}

.dir-contact-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	margin-bottom: 10px;
}

.dir-contact-address {
	font-style: normal;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 0.5px solid rgba(255,255,255,0.1);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dir-contact-street,
.dir-contact-cityline {
	font-size: 13px;
	color: rgba(255,255,255,0.75);
	line-height: 1.5;
}

.dir-contact-phone {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	margin-bottom: 10px;
}

.dir-contact-phone:hover {
	text-decoration: underline;
}

.dir-contact-email {
	display: block;
	font-size: 13px;
	color: #7ABAEE;
	text-decoration: none;
	margin-bottom: 10px;
}

.dir-contact-email:hover {
	text-decoration: underline;
}

.dir-contact-web {
	display: block;
	font-size: 13px;
	color: #7ABAEE;
	text-decoration: none;
	padding-top: 10px;
	border-top: 0.5px solid rgba(255,255,255,0.1);
}

.dir-contact-web:hover {
	text-decoration: underline;
}

.dir-quick-card {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	padding: 16px;
}

.dir-quick-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 10px;
}

.dir-quick-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 0.5px solid #F0EDE8;
	font-size: 12px;
}

.dir-quick-row:last-child {
	border-bottom: none;
}

.dir-quick-key {
	color: #888880;
}

.dir-quick-val {
	font-weight: 500;
	color: #1A1A1A;
	text-align: right;
}

/* Reuse from resources.css — rates sidebar card */
.gsb-rates-card {
	background: #0C2340;
	border-radius: 10px;
	padding: 18px;
}

.gsb-rates-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	margin-bottom: 6px;
}

.gsb-rates-val {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	color: #ffffff;
	letter-spacing: -0.5px;
	line-height: 1;
	margin-bottom: 6px;
}

.gsb-rates-chg {
	font-size: 12px;
	margin-bottom: 12px;
}

.gsb-rates-chg.up   { color: #F5A89A; }
.gsb-rates-chg.dn   { color: #7ED4B2; }
.gsb-rates-chg.flat { color: rgba(255,255,255,0.5); }

.gsb-rates-link {
	display: block;
	font-size: 12px;
	color: #7ABAEE;
	text-decoration: none;
	border-top: 0.5px solid rgba(255,255,255,0.1);
	padding-top: 10px;
}

.gsb-rates-link:hover { text-decoration: underline; }

.dir-tools-card {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	padding: 16px;
}

.gsb-tools-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 10px;
}

.gsb-tool-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #2176C7;
	padding: 7px 0;
	border-bottom: 0.5px solid #F0EDE8;
	text-decoration: none;
}

.gsb-tool-link:last-child { border-bottom: none; }
.gsb-tool-link:hover span:first-child { text-decoration: underline; }

/* back link reuse */
.guide-nav-back {
	margin-bottom: 18px;
	font-size: 13px;
}

.guide-nav-back a {
	color: #2176C7;
}

.guide-nav-back a:hover {
	text-decoration: underline;
}


/* =============================================================
   PAGINATION
============================================================= */
.dir-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.dir-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 6px;
	border: 0.5px solid #E0DDD6;
	background: #ffffff;
	font-size: 13px;
	color: #444440;
	text-decoration: none;
	transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.dir-page-btn:hover {
	border-color: #2176C7;
	color: #2176C7;
	background: #EAF2FC;
}

.dir-page-btn--active {
	background: #2176C7;
	border-color: #2176C7;
	color: #ffffff;
	font-weight: 500;
	pointer-events: none;
}

.dir-page-btn--prev,
.dir-page-btn--next {
	padding: 0 14px;
	font-weight: 500;
}

.dir-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 34px;
	font-size: 13px;
	color: #999490;
}

.dir-page-indicator {
	color: #999490;
}


/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
	.dir-profile-layout {
		grid-template-columns: 1fr;
	}
	.dir-profile-sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.dir-wrap {
		padding: 18px 16px 36px;
	}
	.dir-filter-row {
		flex-direction: column;
		align-items: stretch;
	}
	.dir-search,
	.dir-select,
	.dir-filter-btn {
		width: 100%;
	}
	.dir-card {
		flex-direction: column;
	}
	.dir-card-cta {
		border-left: none;
		border-top: 0.5px solid #E0DDD6;
		padding: 10px 16px;
		justify-content: flex-end;
	}
	.dir-profile-sidebar {
		grid-template-columns: 1fr;
	}
	.dir-profile-header,
	.dir-profile-body {
		padding: 18px 20px;
	}
}

@media (max-width: 480px) {
	.dir-page-hed {
		font-size: 22px;
	}
}
