/*  ==========================================================================
Footer theme (CMS: Footer global > "Footer Appearance")
--------------------------------------------------------------------------
Footer.tsx sets --footer-* custom properties inline on <footer> only for values
an editor filled in. Every var() fallback below is the original value from
styles.css ("Footer" section), so with nothing set the footer is unchanged.
Selectors are prefixed with footer.footer--map so they outrank styles.css while
keeping its relative cascade order (base link < details link < hover < details :visited).
Load after styles.css / legacy-*.css.
==========================================================================  */

/* Background + text */
footer.footer--map {
	background-color: var(--footer-bg, var(--color-primary-usfgreen));
	color: var(--footer-text, var(--color-text-light));
}
footer.footer--map.footer--gradient {
	background-image: linear-gradient(
		var(--footer-gradient-dir, 180deg),
		var(--footer-bg, var(--color-primary-usfgreen)),
		var(--footer-bg-end, var(--color-secondary-evergreen))
	);
}

/* Links (styles.css: footer a / footer a:hover) */
footer.footer--map a,
footer.footer--map a:visited {
	color: var(--footer-link, var(--color-text-light));
}

/* Legal area links (styles.css: .footer__details a, sand) */
footer.footer--map .footer__details a {
	color: var(--footer-bottom-link, var(--color-secondary-sand));
	text-decoration-color: var(--footer-bottom-link, var(--color-secondary-sand));
}

footer.footer--map a:hover,
footer.footer--map a:active,
footer.footer--map a:focus {
	color: var(--footer-link-hover, var(--color-text-light));
}
footer.footer--map .footer__details a:hover,
footer.footer--map .footer__details a:active,
footer.footer--map .footer__details a:focus {
	color: var(--footer-bottom-link-hover, var(--color-text-light));
	text-decoration-color: currentColor;
}

/* styles.css .footer__details a:visited outranks footer a:hover; keep that order */
footer.footer--map .footer__details a:visited {
	color: var(--footer-bottom-link, var(--color-secondary-sand));
	text-decoration-color: var(--footer-bottom-link, var(--color-secondary-sand));
}

/* "Connect with us:" heading */
footer.footer--map .footer__social > p {
	color: var(--footer-heading, inherit);
}

/* Social icons (svg paths use fill="currentColor") */
footer.footer--map .footer__social-icon {
	color: var(--footer-icon, inherit);
}

/* Divider lines (styles.css: teal rules around the nav, white bars between legal links) */
footer.footer--map .footer__nav-list {
	border-top-color: var(--footer-divider, var(--color-accent-teal));
	border-bottom-color: var(--footer-divider, var(--color-accent-teal));
}
footer.footer--map .footer__details-list li {
	border-right-color: var(--footer-legal-divider, #fff);
}

/* Legal area (copyright, maintained-by, policy links) */
footer.footer--map .footer__details {
	color: var(--footer-bottom-text, inherit);
}
footer.footer--map.footer--bottom-bg .footer__details {
	background-color: var(--footer-bottom-bg);
	padding: var(--space-3) var(--space-4);
}

/* Side image / Florida map (desktop only: styles.css draws it at >= 1024px) */
footer.footer--map.footer--map-none:before {
	content: none;
	display: none;
}
footer.footer--map.footer--map-custom:before {
	background-image: var(--footer-map-image);
}
@media (min-width: 1024px) {
	footer.footer--map:before {
		background-position: var(--footer-map-position, right center);
		background-size: var(--footer-map-size, contain);
		opacity: var(--footer-map-opacity, 1);
	}
}
