/* Store Locator ([locations_map]) in the site's look — see src/StoreLocator.php.
   Light band (bg-light, set on the container), the map framed with a shadow, and with a single store the shared list is swapped for a store card. */

.gm-locator {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 1200px) {
	.gm-locator {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}

	.gm-locator .mso-map-separate-row {
		--bs-gutter-x: 1.5rem;
	}

	.gm-locator .mso-map {
		padding-left: .75rem !important;
	}
}

.gm-locator #map {
	border-radius: 0 !important;
	box-shadow: 0 .75rem 2rem rgba(5, 53, 39, .15);
}

/* Single store: card replaces the list; the shared markup stays for the map script. */
.gm-locator--single .store-locator-sidebar {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
}

.gm-locator--single #loc_list,
.gm-locator--single #nothing {
	display: none !important;
}

/* Card */
.gm-store-card__photo {
	aspect-ratio: 2 / 1;
	max-height: 260px;
	overflow: hidden;
}

.gm-store-card__status {
	color: var(--bs-secondary);
}

.gm-store-card__dot {
	width: .5rem;
	height: .5rem;
	background: #b0b7b3;
}

.gm-store-card__status:has(.is-open) .gm-store-card__dot {
	background: #2fa36b;
	box-shadow: 0 0 0 3px rgba(47, 163, 107, .2);
}

.gm-store-card__chip {
	border: 1px solid rgba(195, 162, 93, .5);
	background: rgba(195, 162, 93, .1);
}

.gm-store-card a.text-secondary {
	text-decoration-color: var(--bs-accent);
	text-underline-offset: .2em;
}

/* Outline button (the theme's .btn text is white, which vanished on the card) */
.gm-store-card .btn.gm-store-card__directions {
	border: 2px solid var(--bs-primary) !important;
	color: var(--bs-primary) !important;
	background: transparent !important;
}

.gm-store-card .btn.gm-store-card__directions:hover,
.gm-store-card .btn.gm-store-card__directions:focus-visible {
	background: var(--bs-primary) !important;
	color: #fff !important;
}

/* Desktop: card the same height as the map (750px), content scrolls if it must */
@media (min-width: 1200px) {
	.gm-locator--single .store-locator-sidebar-container {
		height: 750px !important;
	}

	.gm-store-card {
		overflow-y: auto;
	}
}

/* Page Builder body below the map (template-locations-map override): "Store details" card.
   .card.gm-visit-card: the theme CSS (.card, .border-0) loads after this file. */
.card.gm-visit-card {
	--bs-card-bg: var(--bs-light);
	background-color: var(--bs-light);
	border-top: 4px solid var(--bs-accent) !important;
}

/* Icon + text rows: fixed-width icon column so the labels line up */
.gm-visit-facts li {
	align-items: flex-start;
	line-height: 1.5;
}

.gm-visit-facts li > i {
	flex: 0 0 1.25rem;
	width: 1.25rem;
	margin-top: .2rem !important;
	font-size: 1.1rem;
	text-align: center;
}

.gm-visit-facts a {
	text-decoration-color: var(--bs-accent);
	text-underline-offset: .2em;
}
