/* aibi2026 store locator */
.aibi-stores {
	--aibi-accent: var(--aibi-accent, #7a2e2b);
	--aibi-accent-strong: var(--aibi-accent-strong, #5d211f);
	--aibi-bg: var(--aibi-bg, #f4efe8);
	margin: 2rem 0;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.aibi-stores-layout {
	display: grid;
	grid-template-columns: minmax(280px, 380px) 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
.aibi-stores-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-height: 480px;
	overflow-y: auto;
	padding: 2px 6px 2px 2px;
	min-height: 0;
}
.aibi-stores-status {
	color: #6b6258;
	font-size: 0.95rem;
	padding: 1rem 0;
}
.aibi-store-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid #e4dccf;
	border-left: 4px solid transparent;
	border-radius: 12px;
	padding: 0.95rem 1.05rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	font: inherit;
	color: inherit;
	/* keep cards at natural height inside the scrolling list (theme button resets would squash them) */
	flex: 0 0 auto;
	height: auto;
	min-height: 0;
	overflow: visible;
	align-items: stretch;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	box-sizing: border-box;
}
.aibi-store-card:hover {
	border-color: #d8ccb8;
	box-shadow: 0 6px 18px rgba(93, 33, 31, 0.08);
}
.aibi-store-card.is-active {
	border-left-color: var(--aibi-accent);
	border-color: var(--aibi-accent);
	box-shadow: 0 8px 24px rgba(93, 33, 31, 0.14);
}
.aibi-store-name {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--aibi-accent-strong);
}
.aibi-store-addr {
	font-size: 0.9rem;
	color: #6b6258;
}
.aibi-store-desc {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #2c2622;
}
.aibi-store-hours {
	margin-top: 0.25rem;
	font-size: 0.86rem;
	color: #3a332d;
}
.aibi-store-hours strong {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a7f72;
}
.aibi-store-hours-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1px 0;
}
.aibi-store-phone {
	font-size: 0.9rem;
}
.aibi-store-phone a,
.aibi-store-route {
	color: var(--aibi-accent);
	text-decoration: none;
}
.aibi-store-routes {
	position: relative;
	align-self: flex-start;
	margin-top: 0.45rem;
}
.aibi-store-routes-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--aibi-accent);
	cursor: pointer;
	list-style: none;
	background: #fff;
	border: 1px solid #e4dccf;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.aibi-store-routes-toggle::-webkit-details-marker { display: none; }
.aibi-store-routes-toggle::marker { content: ""; }
.aibi-store-routes-toggle::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease, margin 0.2s ease;
}
.aibi-store-routes[open] > .aibi-store-routes-toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.aibi-store-routes-toggle:hover,
.aibi-store-routes-toggle:focus-visible,
.aibi-store-routes[open] > .aibi-store-routes-toggle {
	color: #fff;
	background: var(--aibi-accent);
	border-color: var(--aibi-accent);
}
.aibi-store-routes-toggle:focus-visible { outline: 2px solid var(--aibi-accent); outline-offset: 2px; }
.aibi-store-routes-menu {
	display: flex;
	flex-direction: column;
	min-width: 150px;
	margin-top: 6px;
	padding: 4px;
	background: #fff;
	border: 1px solid #e4dccf;
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(36, 31, 29, 0.12);
	animation: aibiRouteMenuIn 0.15s ease both;
}
@keyframes aibiRouteMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.aibi-stores .aibi-store-routes-menu .aibi-store-route {
	display: block;
	padding: 8px 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--aibi-ink, #241f1d);
	text-decoration: none;
	border: 0;
	border-radius: 8px;
	background: transparent;
	align-self: stretch;
	margin: 0;
}
.aibi-stores .aibi-store-routes-menu .aibi-store-route:hover,
.aibi-stores .aibi-store-routes-menu .aibi-store-route:focus-visible {
	color: var(--aibi-accent);
	background: #f4efe8;
}
.aibi-store-popup .aibi-store-routes { margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
	.aibi-store-routes-menu { animation: none; }
	.aibi-store-routes-toggle, .aibi-store-routes-toggle::after { transition: none; }
}
.aibi-store-phone a:hover {
	text-decoration: underline;
}
.aibi-stores-map {
	min-height: 360px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e4dccf;
	z-index: 0;
}
/* active marker accent */
.leaflet-marker-icon.is-active {
	filter: hue-rotate(-20deg) saturate(1.6) drop-shadow(0 0 6px rgba(122, 46, 43, 0.7));
	z-index: 1000 !important;
}
.aibi-store-popup strong {
	font-family: "Playfair Display", Georgia, serif;
	color: var(--aibi-accent-strong);
	font-size: 1.05rem;
}
.aibi-store-popup p {
	margin: 0.35rem 0;
	font-size: 0.9rem;
}
.aibi-store-popup .aibi-store-hours-row {
	font-size: 0.82rem;
}

@media (max-width: 782px) {
	.aibi-stores-layout {
		grid-template-columns: 1fr;
	}
	.aibi-stores-map {
		order: -1;
		height: 320px !important;
		min-height: 320px;
	}
	.aibi-stores-list {
		max-height: none;
		overflow: visible;
	}
}

/* store locator page template */
.aibi-stores-page .aibi-header {
	margin-bottom: 0.5rem;
}
.aibi-stores-intro {
	max-width: 720px;
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #4a433b;
}
.aibi-stores-page .aibi-stores {
	margin-top: 0.5rem;
}
