/* Store Locator — ported from Tiger Elements' tiger-store-locator.css (tg-sl- → ractro-sl-). */

.ractro-sl {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* --- Find Nearest search bar --- */
.ractro-sl-find {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	margin-bottom: 16px;
}

.ractro-sl-find-input {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	padding: 11px 14px;
	border: 1px solid #d8dde3;
	border-radius: 8px;
	background: #ffffff;
	color: inherit;
}

.ractro-sl-find-btn {
	flex: 0 0 auto;
	font: inherit;
	cursor: pointer;
	padding: 11px 18px;
	border: none;
	border-radius: 8px;
	background: #007bff;
	color: #ffffff;
}

.ractro-sl-find-geo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #d8dde3;
	border-radius: 8px;
	background: #ffffff;
	color: #333333;
	cursor: pointer;
}

.ractro-sl-msg {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	font-size: 12px;
	opacity: 0.75;
}

/* --- Layout: list + map --- */
.ractro-sl-wrap {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.ractro-sl-wrap--right {
	flex-direction: row-reverse;
}

@media (max-width: 767px) {
	.ractro-sl-wrap:not(.ractro-sl--no-stack) {
		flex-direction: column;
	}
}

/* --- Store list --- */
.ractro-sl-list {
	flex: 0 0 320px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 480px;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.ractro-sl-wrap:not(.ractro-sl--no-stack) .ractro-sl-list {
		max-width: 100%;
		flex-basis: auto;
	}
}

.ractro-sl-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease;
	scroll-margin: 8px;
}

.ractro-sl-item.is-active {
	background: #eef4ff;
}

.ractro-sl-item-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.ractro-sl-item-body {
	min-width: 0;
	flex: 1 1 auto;
}

.ractro-sl-item-name {
	font-weight: 600;
	color: #111111;
	margin: 0 0 2px;
}

.ractro-sl-item-addr {
	font-size: 13px;
	color: #666666;
	margin: 0;
}

.ractro-sl-item-dist {
	font-size: 12px;
	font-weight: 600;
	color: #007bff;
	margin-top: 4px;
}

.ractro-sl-item-dist[hidden] {
	display: none;
}

.ractro-sl-item-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	margin-top: 4px;
}

.ractro-sl-item-status.is-open { color: #1a8f4c; }
.ractro-sl-item-status.is-closed { color: #d23a3a; }

/* --- Map --- */
.ractro-sl-map {
	flex: 1 1 auto;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.ractro-sl-canvas {
	width: 100%;
	height: 480px;
	background: #eef1f4;
}

/* Marker drop-in animation, toggled via a class on the Leaflet marker icon wrap. */
.ractro-sl-pin-wrap.is-dropping {
	animation: ractro-sl-drop 0.45s ease-out;
}

@keyframes ractro-sl-drop {
	0%   { transform: translateY(-24px); opacity: 0; }
	60%  { transform: translateY(4px); opacity: 1; }
	100% { transform: translateY(0); }
}

.ractro-sl-cluster-wrap { background: transparent; border: none; }

.ractro-sl-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #007bff;
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* --- Popup (Leaflet info window) --- */
.ractro-sl-popup {
	display: flex;
	flex-direction: column;
}

.ractro-sl-popup-img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
	border-radius: 8px 8px 0 0;
}

.ractro-sl-popup-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ractro-sl-popup-title {
	font-weight: 700;
	color: #111111;
	margin: 0;
}

.ractro-sl-popup-text {
	font-size: 13px;
	color: #555555;
	margin: 0;
}

.ractro-sl-popup-hours {
	font-size: 12px;
	color: #555555;
	margin: 4px 0 0;
	list-style: none;
	padding: 0;
}

.ractro-sl-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.ractro-sl-popup-link,
.ractro-sl-popup-dir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-size: 13px;
	text-decoration: none;
	padding: 7px 14px;
	border-radius: 6px;
	cursor: pointer;
	border: none;
}

.ractro-sl-popup-link {
	color: #ffffff;
	background: #007bff;
}

.ractro-sl-popup-dir {
	color: #1a73e8;
	background: #eef3fe;
}

.leaflet-popup-content-wrapper {
	width: 260px;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

/* --- Error / editor notice --- */
.ractro-sl-error {
	padding: 16px;
	border-radius: 8px;
	background: #fff3f3;
	color: #b42318;
	font-size: 13px;
}
