.slo-store-locator {
	--slo-gap: 20px;
	--slo-border: #dcdcde;
	--slo-accent: #2271b1;
	--slo-accent-text: #ffffff;
	--slo-radius: 4px;
	--slo-font-size: 16px;
	box-sizing: border-box;
	font-family: var(--slo-font-family, inherit);
	font-size: var(--slo-font-size);
}

.slo-store-locator *,
.slo-store-locator *::before,
.slo-store-locator *::after {
	box-sizing: inherit;
}

/* Search form */

.slo-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: var(--slo-gap);
}

.slo-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.slo-field label {
	font-weight: 600;
	font-size: 0.85em;
}

.slo-field-query {
	flex: 1 1 240px;
}

.slo-field input[type="text"],
.slo-field select {
	padding: 8px 10px;
	border: 1px solid var(--slo-border);
	border-radius: var(--slo-radius);
	font-size: 1em;
}

.slo-field-actions {
	flex-direction: row;
	gap: 8px;
}

.slo-search-btn,
.slo-locate-btn {
	padding: 9px 18px;
	border: 1px solid var(--slo-accent);
	border-radius: var(--slo-radius);
	background: var(--slo-accent);
	color: var(--slo-accent-text);
	cursor: pointer;
	font-size: 1em;
}

.slo-locate-btn {
	background: #fff;
	color: var(--slo-accent);
}

.slo-status {
	flex-basis: 100%;
	margin: 0;
	font-style: italic;
	color: #50575e;
}

/* Map + list layout */

.slo-results {
	display: flex;
	gap: var(--slo-gap);
	align-items: flex-start;
}

.slo-map-wrap {
	flex: 1 1 60%;
	min-width: 0;
}

.slo-map {
	width: 100%;
	border-radius: var(--slo-radius);
	z-index: 1;
}

.slo-list-wrap {
	flex: 1 1 40%;
	min-width: 0;
	max-height: 600px;
	overflow-y: auto;
	border: 1px solid var(--slo-border);
	border-radius: var(--slo-radius);
}

.slo-location-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.slo-list-item {
	padding: 14px 16px;
	border-bottom: 1px solid var(--slo-border);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.slo-list-item:last-child {
	border-bottom: none;
}

.slo-list-item:hover {
	background: #f6f7f7;
}

.slo-list-item.is-active {
	background: #e5f1f8;
	border-left: 3px solid var(--slo-accent);
}

.slo-no-results {
	padding: 16px;
	color: #50575e;
	font-style: italic;
	cursor: default;
}

.slo-list-item-title {
	margin: 0 0 6px;
	font-size: 1.05em;
	color: var(--slo-accent);
}

.slo-list-item-address,
.slo-popup-address {
	color: #3c434a;
	margin-bottom: 6px;
}

.slo-contact-line {
	font-size: 0.95em;
	margin-bottom: 2px;
}

.slo-distance {
	font-weight: 600;
	color: var(--slo-accent);
	margin: 6px 0;
}

.slo-list-item-hours,
.slo-popup-hours {
	margin-top: 8px;
	font-size: 0.9em;
}

.slo-hours-table {
	border-collapse: collapse;
	margin-top: 6px;
}

.slo-hours-table th,
.slo-hours-table td {
	text-align: left;
	padding: 2px 10px 2px 0;
	vertical-align: top;
	font-weight: normal;
}

.slo-hours-table th {
	white-space: nowrap;
	color: #3c434a;
}

/* Map markers */

.slo-marker-icon {
	background: transparent;
	border: none;
}

.slo-marker-icon .slo-marker-pin {
	fill: var(--slo-accent);
	stroke: rgba(0, 0, 0, 0.25);
	stroke-width: 0.5;
}

.slo-marker-icon .slo-marker-dot {
	fill: var(--slo-accent-text);
}

/* Marker popup */

.slo-popup {
	min-width: 200px;
	max-width: 280px;
}

.slo-popup-title {
	margin: 0 0 6px;
	font-size: 1.05em;
}

/* Responsive: stack on tablet/mobile */

@media (max-width: 782px) {
	.slo-results {
		flex-direction: column;
	}

	.slo-map-wrap,
	.slo-list-wrap {
		flex-basis: auto;
		width: 100%;
	}

	.slo-list-wrap {
		max-height: 400px;
	}

	.slo-field-actions {
		width: 100%;
	}

	.slo-search-btn,
	.slo-locate-btn {
		flex: 1;
	}
}
