/**
 * Contact office address cards ([lhd_contact_locations]).
 * Figma: two-up centered title / address / Directions / map embed.
 * Cards are centered both ways, so a lone card (or an odd last one) sits in the middle.
 */

.lhd-contact-locations {
	--lhd-cl-blue: var(--lhd-primary, #014f83);
	--lhd-cl-gold: var(--lhd-yellow, #daa520);
	--lhd-cl-gap: 20px;
	--lhd-cl-text-gap: 16px;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--lhd-cl-gap);
	box-sizing: border-box;
}

.lhd-contact-locations *,
.lhd-contact-locations *::before,
.lhd-contact-locations *::after {
	box-sizing: border-box;
}

.lhd-contact-locations__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--lhd-cl-gap);
	flex: 0 1 calc((100% - var(--lhd-cl-gap)) / 2);
	width: 100%;
	min-width: 0;
	text-align: center;
}

.lhd-contact-locations__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--lhd-cl-text-gap);
	width: 100%;
	max-width: 274px;
}

.lhd-contact-locations__title {
	margin: 0;
	width: 100%;
	color: var(--lhd-cl-blue);
	font-family: var(--lhd-font-heading, Anton, sans-serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: uppercase;
}

.lhd-contact-locations__address {
	margin: 0;
	width: 100%;
	color: #000;
	font-family: var(--lhd-font-body, Inter, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: capitalize;
}

.lhd-contact-locations__directions {
	display: inline-block;
	margin: 0;
	color: var(--lhd-cl-gold) !important;
	font-family: var(--lhd-font-body, Inter, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	text-decoration: none !important;
	text-transform: capitalize;
}

.lhd-contact-locations__directions:hover,
.lhd-contact-locations__directions:focus {
	color: var(--lhd-cl-blue) !important;
	text-decoration: underline !important;
}

.lhd-contact-locations__map {
	position: relative;
	width: 100%;
	max-width: 400px;
	aspect-ratio: 400 / 224;
	overflow: hidden;
	background: #d9d9d9;
}

.lhd-contact-locations__map iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	display: block;
}

/* Tablet keeps 2 columns with desktop-ish type */
@media (max-width: 1023px) {
	.lhd-contact-locations {
		--lhd-cl-gap: 20px;
	}

	.lhd-contact-locations__title {
		font-size: 18px;
	}

	.lhd-contact-locations__address,
	.lhd-contact-locations__directions {
		font-size: 16px;
	}
}

/* Mobile: stack cards */
@media (max-width: 767px) {
	.lhd-contact-locations__card {
		flex-basis: 100%;
	}

	.lhd-contact-locations {
		--lhd-cl-gap: 28px;
		--lhd-cl-text-gap: 12px;
	}

	.lhd-contact-locations__content {
		max-width: 100%;
	}

	.lhd-contact-locations__title {
		font-size: 16px;
	}

	.lhd-contact-locations__address,
	.lhd-contact-locations__directions {
		font-size: 14px;
	}

	.lhd-contact-locations__map {
		max-width: 100%;
	}
}
