/**
 * Canonical footer layout overrides — loaded last (wp_footer) after Elementor CSS.
 * Targets footer.elementor-location-footer (stable Elementor location class).
 */
@media (min-width: 768px) {
	footer.elementor-location-footer .rescamping-elementor-footer__inner > .e-con-inner {
		display: grid !important;
		grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.05fr) !important;
		grid-template-areas:
			"brand nav"
			"brand contact" !important;
		gap: 0 clamp(34px, 5vw, 72px) !important;
		align-items: start !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__brand {
		grid-area: brand !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__links {
		grid-area: nav !important;
		align-self: start !important;
		justify-self: end !important;
		width: 100% !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__links > .e-con-inner {
		align-content: start !important;
		justify-items: end !important;
	}

	footer.elementor-location-footer .elementor-nav-menu {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: flex-end !important;
		align-items: center !important;
		gap: 10px 20px !important;
	}

	footer.elementor-location-footer .elementor-nav-menu a {
		white-space: nowrap !important;
	}

	footer.elementor-location-footer .elementor-nav-menu li:has(> a[href*="contact"]),
	footer.elementor-location-footer .elementor-nav-menu a[href*="contact"] {
		display: none !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__contact {
		grid-area: contact !important;
		justify-self: end !important;
		align-self: start !important;
		width: min(100%, 430px) !important;
		max-width: 430px !important;
		margin-top: clamp(18px, 2vw, 24px) !important;
		text-align: right !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__contact > .e-con-inner,
	footer.elementor-location-footer .rescamping-elementor-footer__contact .elementor-widget-container {
		display: grid !important;
		justify-items: end !important;
		gap: 4px !important;
		padding: 0 !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__legal {
		display: grid !important;
		place-items: center !important;
		min-height: 38px !important;
		padding: 0 clamp(28px, 4vw, 48px) !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__legal p {
		line-height: 1.2 !important;
	}
}

@media (min-width: 768px) and (max-width: 980px) {
	footer.elementor-location-footer .rescamping-elementor-footer__contact {
		margin-top: 16px !important;
	}
}

@media (max-width: 767px) {
	footer.elementor-location-footer .rescamping-elementor-footer__inner > .e-con-inner {
		display: grid !important;
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"brand"
			"nav"
			"contact" !important;
		gap: 16px !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__links {
		grid-area: nav !important;
		justify-self: start !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__links > .e-con-inner {
		justify-items: start !important;
	}

	footer.elementor-location-footer .elementor-nav-menu {
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		gap: 8px !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__contact {
		grid-area: contact !important;
		margin-top: 0 !important;
		text-align: left !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__contact > .e-con-inner,
	footer.elementor-location-footer .rescamping-elementor-footer__contact .elementor-widget-container {
		justify-items: start !important;
	}

	footer.elementor-location-footer .rescamping-elementor-footer__legal {
		display: grid !important;
		place-items: center start !important;
		min-height: 38px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}