/**
 * Store listing.
 *
 * Inherits colours and type from the theme; only layout is defined here so the
 * cards keep matching the rest of the site if the palette changes.
 */

.efy-stores {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
	margin: 2rem 0;
}

@media (min-width: 900px) {
	.efy-stores {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.efy-stores--single,
	.efy-stores:has(> .efy-store:only-child) {
		grid-template-columns: 1fr;
	}
}

.efy-store {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

@media (min-width: 900px) {
	.efy-stores--single .efy-store,
	.efy-stores:has(> .efy-store:only-child) .efy-store {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: stretch;
		gap: 0;
	}
}

.efy-store__map {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
}

.efy-store__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Placeholder shown until the visitor asks for the map. */
.efy-store__map--consent {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
	background: #f4f4f4;
	background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
		linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
	background-size: 22px 22px;
	background-position: 0 0, 11px 11px;
}

.efy-store__map-notice {
	max-width: 32ch;
}

.efy-store__map-notice p {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.efy-store__map-load {
	cursor: pointer;
	background: none;
	font: inherit;
}

.efy-store__map-alt {
	margin: 0.9rem 0 0 !important;
	font-size: 0.85rem;
}

.efy-store__body {
	padding: 0 1.75rem 1.75rem;
}

@media (min-width: 900px) {
	.efy-stores--single .efy-store__body,
	.efy-stores:has(> .efy-store:only-child) .efy-store__body {
		padding: 1.75rem;
		align-self: center;
	}

	.efy-stores--single .efy-store__map,
	.efy-stores:has(> .efy-store:only-child) .efy-store__map {
		aspect-ratio: auto;
		min-height: 340px;
	}
}

.efy-store__name {
	margin: 0 0 0.35rem;
}

.efy-store__address {
	margin: 0 0 1rem;
}

.efy-store__contacts {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
}

.efy-store__hours h4 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.efy-store__hours p {
	margin: 0 0 0.35rem;
}

.efy-store__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
}

.efy-store__button {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 1px solid var(--global-palette4, #666);
	border-radius: 4px;
	color: var(--global-palette3, #111);
	background: transparent;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.efy-store__button:hover,
.efy-store__button:focus {
	background: var(--global-palette3, #111);
	border-color: var(--global-palette3, #111);
	color: var(--global-palette9, #fff);
}

/* Filled variant: the accent colour with text that contrasts against it. */
.efy-store__button--alt {
	background: var(--global-palette1, #fa8b6e);
	border-color: var(--global-palette1, #fa8b6e);
	color: #fff;
}

.efy-store__button--alt:hover,
.efy-store__button--alt:focus {
	background: var(--global-palette3, #111);
	border-color: var(--global-palette3, #111);
	color: #fff;
}
