/**
 * Styles for the reusable [shop_map] embedded map component — Story US-006.
 *
 * Mobile-first: a fluid, responsive iframe locked to a 16:9 aspect ratio that
 * fills its container on every viewport, with a clear "Get Directions"
 * call-to-action below it (full-width on mobile, inline on desktop).
 *
 * Uses the shared --mytheme-* design tokens from responsive.css so the map
 * stays visually consistent with the rest of the site.
 */

.shop-map {
	margin: clamp(2rem, 1.2rem + 4vw, 3.5rem) 0;
}

.shop-map__heading {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
	line-height: 1.2;
	color: var(--mytheme-ink);
}

.shop-map__address {
	margin: 0 0 1.25rem;
	font-style: normal;
	color: var(--mytheme-muted);
	font-size: 1rem;
	line-height: 1.5;
}

/* Responsive 16:9 frame: fills 100% of the container width at any size. */
.shop-map__frame-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: var(--mytheme-radius);
	box-shadow: var(--mytheme-shadow);
	background: var(--mytheme-bg);
}

/* Browsers with aspect-ratio support get a cleaner box; the padding hack above
   remains the reliable fallback for older engines. */
@supports (aspect-ratio: 16 / 9) {
	.shop-map__frame-wrap {
		padding-bottom: 0;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

.shop-map__frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.shop-map__actions {
	margin: 1.25rem 0 0;
}

/* Mobile-first: the directions button is full-width and comfortably tappable. */
.shop-map__directions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: var(--mytheme-touch);
	padding: 0.85rem 1.5rem;
	background-color: var(--mytheme-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	text-align: center;
	text-decoration: none;
	border-radius: var(--mytheme-radius-sm);
	transition: background-color var(--mytheme-duration) var(--mytheme-ease),
		transform 150ms var(--mytheme-ease);
}

.shop-map__directions:hover,
.shop-map__directions:focus {
	background-color: var(--mytheme-accent-dark);
	color: #fff;
}

.shop-map__directions:active {
	transform: translateY(1px);
}

.shop-map__directions:focus-visible {
	outline: 3px solid var(--mytheme-accent);
	outline-offset: 3px;
}

.shop-map__directions-icon {
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
	fill: currentColor;
}

/* Tablet and up: the button sizes to its content instead of stretching full. */
@media (min-width: 768px) {
	.shop-map__directions {
		display: inline-flex;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop-map__directions {
		transition: none;
	}
}
