/**
 * Site-wide directory footer (11467-style) — all primary/secondary/tertiary pages.
 */

.usfp-dir-footer {
	--usfp-orange: #f57c00;
	--usfp-orange-dark: #e65100;
	--usfp-orange-light: #fff3e0;
	--usfp-text: #333333;
	--usfp-text-light: #666666;
	--usfp-border: #e0e0e0;
	--usfp-white: #ffffff;
	background: var(--usfp-white);
	border-top: 2px solid var(--usfp-orange);
	margin-top: 16px;
	padding: 20px 0 24px;
	font-size: 12px;
	color: var(--usfp-text);
	font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
	line-height: 1.5;
}

.usfp-dir-footer .usfp-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
}

.usfp-dir-footer__index {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--usfp-border);
	margin-bottom: 16px;
}

.usfp-dir-footer__index-label {
	font-weight: 700;
	color: var(--usfp-orange-dark);
	white-space: nowrap;
}

.usfp-dir-footer__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}

.usfp-dir-footer__letters a {
	display: inline-block;
	min-width: 22px;
	padding: 2px 6px;
	text-align: center;
	color: var(--usfp-text);
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 2px;
}

.usfp-dir-footer__letters a:hover {
	color: var(--usfp-orange);
	border-color: var(--usfp-orange);
	background: var(--usfp-orange-light);
}

.usfp-dir-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.usfp-dir-footer__col h3 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--usfp-orange-dark);
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 6px;
}

.usfp-dir-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 220px;
	overflow: hidden;
}

.usfp-dir-footer__col li {
	margin: 0 0 4px;
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.usfp-dir-footer__col a {
	color: var(--usfp-text);
	text-decoration: none;
}

.usfp-dir-footer__col a:hover {
	color: var(--usfp-orange);
	text-decoration: underline;
}

.usfp-dir-footer__date {
	margin-left: 6px;
	color: #999;
	font-size: 11px;
}

.usfp-dir-footer__empty {
	color: #aaa;
}

.usfp-dir-footer__stats {
	margin: 0 0 14px;
	padding: 8px 0;
	color: var(--usfp-text-light);
	font-size: 11px;
	border-top: 1px dashed var(--usfp-border);
	border-bottom: 1px dashed var(--usfp-border);
}

.usfp-dir-footer__links h3 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--usfp-orange-dark);
}

.usfp-dir-footer__link-group {
	margin-bottom: 10px;
	line-height: 1.8;
}

.usfp-dir-footer__link-group strong {
	display: inline-block;
	margin-right: 8px;
	color: var(--usfp-text);
}

.usfp-dir-footer__link-group a {
	margin-right: 12px;
	color: var(--usfp-text-light);
	text-decoration: none;
}

.usfp-dir-footer__link-group a:hover {
	color: var(--usfp-orange);
}

.usfp-dir-footer__legal {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--usfp-border);
	color: #888;
	font-size: 11px;
	line-height: 1.6;
}

.usfp-dir-footer__legal p {
	margin: 0 0 6px;
}

.usfp-dir-footer__copy a {
	color: var(--usfp-orange);
	text-decoration: none;
}

body.usfp-listing-view .usfp-dir-footer,
body.usfp-vendor-profile .usfp-dir-footer,
body.usfp-listings-archive .usfp-dir-footer {
	margin-top: 0;
}

@media (max-width: 992px) {
	.usfp-dir-footer__columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.usfp-dir-footer__columns {
		grid-template-columns: 1fr;
	}
}
