/* ============================================================
   Location & Map section
   Design ref: designs/Homepage Design Desktop.jpg y6640-7320,
   Mobile y8950-9900. Cream band, content inset to the 1072px
   column (like stats-split): content + pin address + button
   left, 535px map right. Mobile: content > map > centred button.
   Measured deltas from the global scale (mockup is the truth):
   desktop copy is 16px/1.5 not 18px, heading line-height 1.25,
   button narrower than the global .btn (2rem inline padding).
   ============================================================ */

.location-map {
	background: var(--color-cream-light);
	padding-block: var(--section-padding);
}

.location-map__inner {
	max-width: 1072px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 3.5rem;
}

/* Design gives this section extra air under the eyebrow (33px ink gap
   vs the global 8px margin) - measured at both breakpoints */
.location-map .eyebrow {
	margin-bottom: 1.375rem;
}

.location-map__heading {
	margin-bottom: var(--space-md);
	line-height: 1.25;
}

.location-map__text {
	margin-bottom: var(--space-md);
	max-width: 60ch;
	line-height: 1.75;
}

/* ---- Address with pin ---- */

.location-map__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0;
	font-weight: 600;
	color: var(--color-heading);
}

.location-map__pin {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--color-caramel-light);
}

.location-map__pin svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---- Map ---- */

.location-map__map {
	width: 100%;
	height: auto;
	/* squarer crop on mobile, wider on desktop - both per the design */
	aspect-ratio: 6 / 5;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.location-map__map-link {
	display: block;
}

/* Narrower than the global .btn per the design (185px rendered) -
   scoped padding only, same precedent as the navbar CTA */
.location-map__button {
	padding-inline: 2rem;
}

/* ---- Button row: centred on mobile, left on desktop ---- */

.location-map__details {
	display: flex;
	justify-content: center;
}

/* ---- Desktop split ---- */

@media (min-width: 1024px) {
	.location-map {
		padding-block: 7rem 7.5rem;
	}

	.location-map__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 535px);
		grid-template-rows: auto auto;
		column-gap: 2.5rem;
		row-gap: var(--space-md);
		align-items: start;
	}

	.location-map__content {
		grid-column: 1;
		grid-row: 1;
	}

	/* Forces the design's four-line wrap; mobile wraps naturally */
	.location-map__heading {
		max-width: 18ch;
	}

	/* Design drops this section's copy to 16px/1.5 (global desktop body is 18px) */
	.location-map__text {
		font-size: 1rem;
		line-height: 1.5;
	}

	.location-map__address {
		font-size: 1rem;
	}

	.location-map__media {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.location-map__map {
		aspect-ratio: 4 / 3;
	}

	/* Button bottom sits level with the map bottom, per the design */
	.location-map__details {
		grid-column: 1;
		grid-row: 2;
		justify-content: flex-start;
		align-self: end;
	}
}
