/**
 * StoreSpot frontend styles.
 */

.storespot {
	--storespot-primary: #6D28D9;
	--storespot-secondary: #7C3AED;
	--storespot-light: #F3E8FF;
	--storespot-bg: #F8FAFC;
	--storespot-card: #FFFFFF;
	--storespot-text: #111827;
	--storespot-muted: #6B7280;
	--storespot-border: #E5E7EB;
	--storespot-radius: 12px;
	--storespot-font-size: 15px;
	--storespot-map-height: 650px;
	--storespot-list-width: 34%;
	--storespot-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	--storespot-focus: 0 0 0 3px rgba(109, 40, 217, 0.35);

	box-sizing: border-box;
	color: var(--storespot-text);
	font-size: var(--storespot-font-size);
	line-height: 1.5;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	isolation: isolate;
}

.storespot *,
.storespot *::before,
.storespot *::after {
	box-sizing: border-box;
}

.storespot-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.storespot a {
	color: var(--storespot-primary);
}

.storespot a.storespot-btn,
.storespot a.storespot-btn:hover,
.storespot a.storespot-btn:focus {
	text-decoration: none;
}

.storespot a.storespot-btn--primary,
.storespot a.storespot-btn--primary:hover,
.storespot a.storespot-btn--primary:focus,
.storespot a.storespot-btn--primary:visited {
	color: #fff;
}

.storespot a.storespot-btn--secondary,
.storespot a.storespot-btn--secondary:hover,
.storespot a.storespot-btn--secondary:focus {
	color: var(--storespot-primary);
}

.storespot a.storespot-btn--ghost,
.storespot a.storespot-btn--ghost:hover,
.storespot a.storespot-btn--ghost:focus {
	color: var(--storespot-primary);
}

.storespot a:focus-visible,
.storespot button:focus-visible,
.storespot input:focus-visible,
.storespot select:focus-visible,
.storespot .storespot-card:focus-visible {
	outline: none;
	box-shadow: var(--storespot-focus);
}

/* Toolbar / search — floating mockup-style header */
.storespot-locator__toolbar {
	display: block;
	margin: 1rem 1rem 0;
	padding: 1.15rem 1.35rem 1.25rem;
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.storespot-filters-toggle {
	display: none !important;
}

.storespot-search {
	width: 100%;
}

.storespot-search__grid {
	display: grid;
	grid-template-columns: minmax(17rem, 1.85fr) minmax(11rem, 0.9fr) minmax(11rem, 0.95fr) auto;
	gap: 1rem 1.75rem;
	align-items: end;
}

.storespot-field {
	min-width: 0;
}

.storespot-field__label {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #1f2937;
	line-height: 1.2;
}

.storespot-input,
.storespot-select {
	width: 100%;
	min-height: 3.15rem;
	padding: 0.65rem 0.95rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: var(--storespot-text);
	font: inherit;
	font-size: 1.05rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.storespot-input::placeholder {
	color: #9ca3af;
}

.storespot-input:hover,
.storespot-select:hover {
	border-color: #c4b5fd;
}

.storespot-input:focus,
.storespot-select:focus {
	outline: none;
	border-color: var(--storespot-primary);
	box-shadow: var(--storespot-focus);
}

.storespot-location-row {
	width: 100%;
}

.storespot-location-control {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 3.15rem;
}

.storespot-location-control:focus-within {
	border-color: var(--storespot-primary);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

.storespot-location-control__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.45rem 0 0.85rem;
	color: var(--storespot-primary);
	flex: 0 0 auto;
}

.storespot-location-control .storespot-input {
	border: 0;
	border-radius: 0;
	min-height: 3.15rem;
	padding-inline: 0.15rem 0.5rem;
	box-shadow: none;
	flex: 1 1 auto;
}

.storespot-location-control .storespot-input:focus {
	box-shadow: none;
}

.storespot-locate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	min-width: 2.35rem;
	border: 0;
	background: transparent;
	color: var(--storespot-primary);
	cursor: pointer;
	flex: 0 0 auto;
}

.storespot-locate-btn:hover {
	background: var(--storespot-light);
	color: var(--storespot-primary);
}

.storespot-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	min-width: 3rem;
	border: 0;
	border-radius: 0;
	background: var(--storespot-primary);
	color: #fff !important;
	cursor: pointer;
	flex: 0 0 auto;
	transition: filter 0.15s ease, background 0.15s ease;
}

.storespot-search-submit svg {
	display: block;
	color: #fff;
	fill: currentColor;
}

.storespot-search-submit:hover,
.storespot-search-submit:focus {
	filter: brightness(1.08);
	background: var(--storespot-primary);
	color: #fff !important;
}

.storespot-select-wrap {
	position: relative;
}

.storespot-select-wrap__icon {
	position: absolute;
	inset-inline-start: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--storespot-primary);
	pointer-events: none;
	z-index: 1;
}

.storespot-select-wrap .storespot-select {
	min-height: 3.15rem;
	padding-inline-start: 2.45rem;
	padding-inline-end: 2.25rem;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
	background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.storespot-field__control--icon {
	position: relative;
}

.storespot-field__control--icon .storespot-input {
	padding-inline-end: 2.75rem;
}

.storespot-icon-btn {
	position: absolute;
	inset-inline-end: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: 8px;
	background: var(--storespot-light);
	color: var(--storespot-primary);
	cursor: pointer;
}

.storespot-icon-btn:hover {
	background: var(--storespot-primary);
	color: #fff;
}

.storespot-radius {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.45rem;
	min-width: 11rem;
	min-height: 3rem;
	max-width: 200px;
	width: 100%;
}

.storespot-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 0.4rem;
	margin: 0.55rem 0 0;
	border-radius: 999px;
	background: linear-gradient(
		to right,
		var(--storespot-primary) 0%,
		var(--storespot-primary) var(--storespot-radius-pct, 25%),
		#e5e7eb var(--storespot-radius-pct, 25%),
		#e5e7eb 100%
	);
	outline: none;
	cursor: pointer;
}

.storespot-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--storespot-primary);
	box-shadow: 0 1px 4px rgba(109, 40, 217, 0.25);
	cursor: pointer;
}

.storespot-range::-moz-range-thumb {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--storespot-primary);
	box-shadow: 0 1px 4px rgba(109, 40, 217, 0.25);
	cursor: pointer;
}

.storespot-range::-moz-range-track {
	height: 0.4rem;
	border-radius: 999px;
	background: #e5e7eb;
}

.storespot-radius__value {
	font-size: 0.98rem;
	font-weight: 500;
	color: #6b7280;
	white-space: nowrap;
}

.storespot-field--open-now {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 0.15rem;
}

.storespot-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 3rem;
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}

.storespot-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.storespot-switch__track {
	position: relative;
	width: 2.85rem;
	height: 1.55rem;
	border-radius: 999px;
	background: #d1d5db;
	transition: background 0.15s ease;
	flex: 0 0 auto;
}

.storespot-switch__thumb {
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease;
}

.storespot-switch input:checked + .storespot-switch__track {
	background: var(--storespot-primary);
}

.storespot-switch input:checked + .storespot-switch__track .storespot-switch__thumb {
	transform: translateX(1.25rem);
}

.storespot-switch input:focus-visible + .storespot-switch__track {
	box-shadow: var(--storespot-focus);
}

.storespot-switch__label {
	color: #374151;
	font-size: 1.05rem;
	font-weight: 600;
	white-space: nowrap;
}
.storespot-reset-link {
	display: none !important;
}

.storespot-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	cursor: pointer;
	font-weight: 500;
}

.storespot-checkbox input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--storespot-primary);
}

.storespot-field--actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.storespot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.storespot-btn--sm {
	min-height: 2.35rem;
	padding: 0.5rem 0.95rem;
	font-size: 0.95rem;
}

.storespot-btn--primary {
	background: var(--storespot-primary);
	color: #fff;
}

.storespot-btn--primary:hover {
	filter: brightness(1.06);
	color: #fff;
}

.storespot-btn--secondary {
	background: #fff;
	color: var(--storespot-primary);
	border-color: var(--storespot-primary);
}

.storespot-btn--secondary:hover {
	background: var(--storespot-light);
	color: var(--storespot-primary);
}

.storespot-btn--ghost {
	background: transparent;
	color: var(--storespot-text);
	border-color: var(--storespot-border);
}

.storespot-btn--ghost:hover {
	background: var(--storespot-light);
	border-color: #ddd6fe;
	color: var(--storespot-primary);
}

.storespot-btn:active {
	transform: translateY(1px);
}

/* Body split layout */
.storespot-locator__body {
	display: grid;
	grid-template-columns: var(--storespot-list-width) minmax(0, 1fr);
	min-height: var(--storespot-map-height);
	margin: 1rem;
	background: var(--storespot-bg);
	border: 1px solid var(--storespot-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.storespot-layout-map_only .storespot-locator__body {
	grid-template-columns: 1fr;
}

.storespot-layout-list_only .storespot-locator__body {
	grid-template-columns: 1fr;
}

.storespot-layout-map_top .storespot-locator__body {
	grid-template-columns: 1fr;
	grid-template-rows: var(--storespot-map-height) auto;
}

.storespot-layout-map_top .storespot-locator__map-wrap {
	order: -1;
	min-height: var(--storespot-map-height);
}

.storespot-layout-compact .storespot-locator__body {
	min-height: 420px;
}

.storespot-locator__results {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: var(--storespot-map-height);
	background: var(--storespot-card);
	border-inline-end: 1px solid var(--storespot-border);
}

.storespot-locator__results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--storespot-primary);
	color: #fff;
	border-bottom: 0;
}

.storespot-results-count {
	margin: 0 !important;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.01em;
}

.storespot-results-header__actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.storespot-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0.95;
	padding: 0.25rem 0.35rem;
}

.storespot-print-btn:hover {
	opacity: 1;
	text-decoration: underline;
}

.storespot-view-toggle {
	display: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	overflow: hidden;
}

.storespot-view-toggle__btn {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.storespot-view-toggle__btn.is-active {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.storespot-locator__results-list {
	flex: 1 1 auto;
	overflow: auto;
	padding: 0.75rem;
	scroll-behavior: smooth;
}

.storespot-locator__map-wrap {
	position: relative;
	min-height: var(--storespot-map-height);
	background: #eef2ff;
}

.storespot-locator__map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.storespot-no-map .storespot-locator__body,
.storespot-layout-list_only .storespot-locator__body {
	grid-template-columns: 1fr;
}

.storespot-no-list .storespot-locator__body,
.storespot-layout-map_only .storespot-locator__body {
	grid-template-columns: 1fr;
}

/* Cards */
.storespot-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px;
	gap: 0.85rem 1rem;
	padding: 1.15rem 1.1rem;
	margin-bottom: 0.85rem;
	background: var(--storespot-card);
	border: 1px solid var(--storespot-border);
	border-radius: var(--storespot-radius);
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	position: relative;
	overflow: visible;
}

.storespot-card:hover,
.storespot-card.is-active {
	border-color: #c4b5fd;
	box-shadow: 0 10px 24px rgba(109, 40, 217, 0.1);
}

.storespot-card__main {
	min-width: 0;
	grid-column: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

.storespot-card__media {
	grid-column: 2;
	grid-row: 1 / span 2;
	overflow: hidden;
	border-radius: 10px;
	background: var(--storespot-light);
	width: 110px;
	height: 110px;
	align-self: start;
	position: relative;
	z-index: 0;
}

.storespot-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.storespot-card:not(:has(.storespot-card__media:not([hidden]))) {
	grid-template-columns: minmax(0, 1fr);
}

.storespot-card:not(:has(.storespot-card__media:not([hidden]))) .storespot-card__main {
	grid-column: 1;
}

.storespot-card__header {
	display: block;
	position: static !important;
	margin: 0 0 0.75rem;
	padding: 0;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	pointer-events: auto;
}

.storespot-card__title,
.storespot-card h3.storespot-card__title {
	display: block !important;
	position: static !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #111827 !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	clip: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	overflow: visible !important;
	letter-spacing: normal;
	text-indent: 0;
	background: none !important;
}

.storespot-card__title span,
.storespot-card__title [data-bind="title"] {
	display: inline !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	color: inherit !important;
	font: inherit !important;
	background: none !important;
}

.storespot-card p {
	margin-bottom: 0 !important;
}

.storespot-card h3 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.storespot-badge {
	display: none !important;
}

.storespot-card__distance {
	margin: 0 0 0.55rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--storespot-primary);
}

.storespot-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.storespot-card__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	font-size: 0.98rem;
	color: #4b5563;
	line-height: 1.45;
}

.storespot-card__meta-item a,
.storespot-card__meta-item a:hover,
.storespot-card__meta-item a:focus {
	color: #4b5563;
	text-decoration: none;
}

.storespot-card__meta-item a:hover {
	color: var(--storespot-primary);
}

.storespot-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.12rem;
	color: var(--storespot-primary);
	flex: 0 0 auto;
}

.storespot-card__icon svg {
	width: 1.05rem;
	height: 1.05rem;
	display: block;
}

.storespot-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.storespot-card__categories li {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #4b5563;
	font-size: 0.98rem;
	font-weight: 500;
}

.storespot-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	grid-column: 1 / -1;
}

.storespot-card [hidden],
.storespot-card__meta-item[hidden],
.storespot-card__distance[hidden],
.storespot-card__media[hidden],
.storespot-card__actions [hidden],
.storespot-card .storespot-btn[hidden] {
	display: none !important;
}

/* Loading / empty */
.storespot-loading,
.storespot-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 2.5rem 1rem;
	text-align: center;
	color: var(--storespot-muted);
}

.storespot-loading[hidden],
.storespot-empty[hidden] {
	display: none !important;
}

.storespot-spinner {
	width: 2rem;
	height: 2rem;
	border: 3px solid var(--storespot-light);
	border-top-color: var(--storespot-primary);
	border-radius: 50%;
	animation: storespot-spin 0.8s linear infinite;
}

.storespot-skeleton {
	width: 100%;
	display: grid;
	gap: 0.65rem;
}

.storespot-skeleton__line {
	height: 0.85rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #ede9fe, #f5f3ff, #ede9fe);
	background-size: 200% 100%;
	animation: storespot-shimmer 1.2s ease-in-out infinite;
}

.storespot-skeleton__line--short {
	width: 55%;
}

.storespot-empty__icon {
	color: var(--storespot-secondary);
	opacity: 0.75;
}

.storespot-empty__message {
	margin: 0;
	max-width: 18rem;
}

/* Pagination */
.storespot-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border-top: 1px solid var(--storespot-border);
}

.storespot-pagination[hidden] {
	display: none !important;
}

/* Modal */
.storespot-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.storespot-modal[hidden] {
	display: none !important;
}

.storespot-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.storespot-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 26rem);
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--storespot-card);
	border-radius: calc(var(--storespot-radius) + 4px);
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
	animation: storespot-modal-in 0.2s ease;
	text-align: center;
}

.storespot-modal__dialog::before {
	content: '';
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--storespot-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236D28D9'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
}

.storespot-modal__close {
	position: absolute;
	top: 0.65rem;
	inset-inline-end: 0.65rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--storespot-muted);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.storespot-modal__close:hover {
	background: var(--storespot-light);
	color: var(--storespot-primary);
}

.storespot-modal__title {
	margin: 0 1.5rem 0.65rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.storespot-modal__text {
	margin: 0 0 1rem;
	color: var(--storespot-muted);
}

.storespot-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.storespot-modal__actions .storespot-btn--primary {
	width: 100%;
}

.storespot-modal__error {
	margin: 0 0 1rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 0.92rem;
}

/* Leaflet popup / marker */
.storespot-popup {
	min-width: 11rem;
	max-width: 16rem;
	font: inherit;
	color: var(--storespot-text);
}

.storespot-popup__title {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1rem;
}

.storespot-popup__status,
.storespot-popup__distance,
.storespot-popup__address,
.storespot-popup__phone {
	margin: 0.2rem 0;
	font-size: 0.88rem;
	color: var(--storespot-muted);
}

.storespot-popup__link {
	display: inline-block;
	margin: 0.4rem 0.5rem 0 0;
	font-size: 0.88rem;
	font-weight: 600;
}

.storespot-popup__directions {
	margin-top: 0.5rem;
}

.storespot-marker-icon {
	background: transparent !important;
	border: 0 !important;
}

.storespot-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #a78bfa, var(--storespot-primary));
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	box-shadow: 0 8px 18px rgba(109, 40, 217, 0.35);
	border: 2px solid #fff;
}

.leaflet-container {
	font: inherit;
	background: #eef2ff;
}

.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: var(--storespot-shadow);
}

.leaflet-control-locate a {
	color: var(--storespot-primary) !important;
}

/* Store page templates */
.storespot-store-single,
.storespot-store-archive {
	--storespot-primary: #6D28D9;
	--storespot-secondary: #7C3AED;
	--storespot-light: #F3E8FF;
	--storespot-bg: #F8FAFC;
	--storespot-card: #FFFFFF;
	--storespot-text: #111827;
	--storespot-muted: #6B7280;
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
	color: var(--storespot-text);
}

.storespot-store-single__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.storespot-store-single__media img {
	width: 100%;
	border-radius: 16px;
	display: block;
	object-fit: cover;
	max-height: 360px;
}

.storespot-store-single__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	line-height: 1.15;
}

.storespot-store-single__meta,
.storespot-store-archive__grid {
	display: grid;
	gap: 0.85rem;
}

.storespot-store-archive__grid {
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.storespot-store-archive .storespot-card {
	height: 100%;
}

/* Mobile */
@media (max-width: 1100px) {
	.storespot-search__grid {
		grid-template-columns: minmax(14rem, 1.4fr) minmax(10rem, 1fr);
	}
}

@media (max-width: 900px) {
	.storespot-search {
		display: block;
		width: 100%;
	}

	.storespot-search__grid {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.storespot-field--open-now .storespot-switch {
		min-height: 2.5rem;
	}

	.storespot-locator__body {
		grid-template-columns: 1fr;
		min-height: 70vh;
	}

	.storespot-locator__results {
		position: relative;
		z-index: 2;
		max-height: none;
		border-inline-end: 0;
	}

	.storespot-mobile-bottom_sheet .storespot-locator__results {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 48%;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -12px 30px rgba(17, 24, 39, 0.12);
	}

	.storespot-mobile-bottom_sheet .storespot-locator__map-wrap {
		min-height: 70vh;
	}

	.storespot-view-toggle {
		display: inline-flex;
	}

	.storespot-mobile-toggle.is-view-map .storespot-locator__results,
	.storespot.is-view-map .storespot-locator__results {
		display: none;
	}

	.storespot-mobile-toggle.is-view-list .storespot-locator__map-wrap,
	.storespot.is-view-list .storespot-locator__map-wrap {
		display: none;
	}

	.storespot-mobile-list_first .storespot-locator__map-wrap {
		min-height: 45vh;
	}

	.storespot-card {
		grid-template-columns: minmax(0, 1fr) 80px;
	}

	.storespot-store-single__hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.storespot-locator__toolbar {
		margin: 0.75rem 0.75rem 0;
		padding: 1rem;
	}

	.storespot-locator__body {
		margin: 0.75rem;
	}

	.storespot-card {
		grid-template-columns: 1fr;
	}

	.storespot-card__media {
		max-width: 7rem;
	}
}

@media print {
	/* Hide entire page chrome; only StoreSpot results remain visible. */
	body.storespot-printing * {
		visibility: hidden !important;
	}

	body.storespot-printing .storespot.is-printing,
	body.storespot-printing .storespot.is-printing * {
		visibility: visible !important;
	}

	body.storespot-printing .storespot.is-printing {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		border: 0 !important;
	}

	body.storespot-printing .storespot-locator__toolbar,
	body.storespot-printing .storespot-locator__map-wrap,
	body.storespot-printing .storespot-pagination,
	body.storespot-printing .storespot-print-btn,
	body.storespot-printing .storespot-view-toggle,
	body.storespot-printing .storespot-modal,
	body.storespot-printing .storespot-loading,
	body.storespot-printing .storespot-empty,
	body.storespot-printing .storespot-sr-only {
		display: none !important;
		visibility: hidden !important;
	}

	body.storespot-printing .storespot-locator__body {
		display: block !important;
		margin: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	body.storespot-printing .storespot-locator__results {
		max-height: none !important;
		border: 0 !important;
		width: 100% !important;
	}

	body.storespot-printing .storespot-locator__results-header {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		background: var(--storespot-primary) !important;
		color: #fff !important;
		padding: 0.75rem 1rem !important;
		margin-bottom: 0.75rem !important;
	}

	body.storespot-printing .storespot-results-count {
		color: #fff !important;
		margin: 0 !important;
	}

	body.storespot-printing .storespot-card {
		break-inside: avoid;
		page-break-inside: avoid;
		box-shadow: none !important;
		border: 1px solid #ddd !important;
		margin-bottom: 0.85rem !important;
	}

	body.storespot-printing .storespot-card__actions a {
		color: #111 !important;
		border-color: #ccc !important;
		background: transparent !important;
		text-decoration: none !important;
	}

	body.storespot-printing a[href]::after {
		content: none !important;
	}
}

/* RTL */
[dir="rtl"] .storespot-locator__results {
	border-inline-end: 0;
	border-inline-start: 1px solid var(--storespot-border);
}

[dir="rtl"] .storespot-location-control .storespot-input {
	padding-inline: 2.5rem 0.25rem;
}

[dir="rtl"] .storespot-icon-btn--locate {
	inset-inline-end: auto;
	inset-inline-start: 3.05rem;
}

[dir="rtl"] .storespot-select-wrap .storespot-select {
	padding-inline-start: 0.85rem;
	padding-inline-end: 2.4rem;
	background-position: 16px calc(50% - 3px), 10px calc(50% - 3px);
}

[dir="rtl"] .storespot-select-wrap__icon {
	inset-inline-start: auto;
	inset-inline-end: 0.85rem;
}

[dir="rtl"] .storespot-switch input:checked + .storespot-switch__track .storespot-switch__thumb {
	transform: translateX(-1.15rem);
}

[dir="rtl"] .storespot-field__control--icon .storespot-input {
	padding-inline-end: 0.85rem;
	padding-inline-start: 2.75rem;
}

[dir="rtl"] .storespot-icon-btn {
	inset-inline-end: auto;
	inset-inline-start: 0.35rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.storespot *,
	.storespot *::before,
	.storespot *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@keyframes storespot-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes storespot-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

@keyframes storespot-modal-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
