.bbs-sl-locator,
.bbs-sl-locator * {
	box-sizing: border-box;
}

.bbs-sl-locator {
	--bbs-sl-primary: #ed1111;
	--bbs-sl-height: 650px;
	position: relative;
	width: 100%;
	height: var(--bbs-sl-height);
	min-height: 480px;
	overflow: hidden;
	border-radius: 18px;
	background: #e9ecef;
	font-family: inherit;
	box-shadow: 0 18px 45px rgba(37, 42, 51, .12);
}

.bbs-sl-map {
	position: absolute;
	inset: 0;
}

.bbs-sl-search {
	position: absolute;
	z-index: 4;
	top: 24px;
	left: 24px;
	display: flex;
	align-items: center;
	width: min(330px, calc(100% - 48px));
	height: 48px;
	padding: 0 18px 0 12px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(33, 38, 45, .18);
}

.bbs-sl-search-icon {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.bbs-sl-search-icon svg {
	width: 18px;
	height: 18px;
	fill: #666;
}

.bbs-sl-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 0 0 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #171717;
	font: inherit;
	font-size: 14px;
}

.bbs-sl-panel {
	position: absolute;
	z-index: 3;
	top: 86px;
	bottom: 24px;
	left: 24px;
	display: flex;
	width: min(330px, calc(100% - 48px));
	min-height: 0;
	flex-direction: column;
	overflow: hidden;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(33, 38, 45, .18);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.bbs-sl-panel.is-closed {
	visibility: hidden;
	opacity: 0;
	transform: translateX(-20px);
}

.bbs-sl-panel-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 10px 12px 10px 16px;
	border-bottom: 1px solid #ededed;
}

.bbs-sl-panel-header h2 {
	margin: 0 !important;
	color: #101010;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.bbs-sl-panel-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0 0 3px;
	border: 0;
	border-radius: 50%;
	background: #f2f2f2;
	color: #111;
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.bbs-sl-results {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.bbs-sl-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	gap: 12px;
	min-height: 132px;
	padding: 16px 12px 16px 16px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	cursor: pointer;
	transition: background-color .15s ease;
}

.bbs-sl-card:hover,
.bbs-sl-card:focus-visible {
	background: #f8f8f8;
	outline: 0;
}

.bbs-sl-card.has-no-photo {
	grid-template-columns: 1fr;
}

.bbs-sl-card-body {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	flex-direction: column;
}

.bbs-sl-card h3 {
	margin: 0 0 5px !important;
	color: #111;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.bbs-sl-card p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0 0 8px !important;
	color: #5e5e5e;
	font: inherit;
	font-size: 11px;
	line-height: 1.4;
}

.bbs-sl-distance {
	display: inline-block;
	margin: -3px 0 7px;
	color: #777;
	font-size: 11px;
}

.bbs-sl-card-photo {
	display: block;
	width: 96px;
	height: 104px;
	align-self: center;
	border-radius: 8px;
	object-fit: cover;
}

.bbs-sl-panel-footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	min-height: 46px;
	padding: 9px 14px;
	border-top: 1px solid #ededed;
	background: #fff;
	color: #6b6b6b;
	font-size: 10px;
	line-height: 1.3;
}

.bbs-sl-info-icon {
	display: inline-grid;
	flex: 0 0 15px;
	place-items: center;
	width: 15px;
	height: 15px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
}

.bbs-sl-empty {
	margin: 0 !important;
	padding: 28px 18px !important;
	color: #666;
	font-size: 13px;
	text-align: center;
}

.bbs-sl-panel-open {
	position: absolute;
	z-index: 2;
	top: 86px;
	left: 24px;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(33, 38, 45, .18);
	color: #111;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.bbs-sl-panel:not(.is-closed) ~ .bbs-sl-panel-open {
	display: none;
}

.bbs-sl-locator.is-searching .bbs-sl-search::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 2px solid #ddd;
	border-top-color: var(--bbs-sl-primary);
	border-radius: 50%;
	animation: bbs-sl-spin .7s linear infinite;
}

.bbs-sl-infowindow {
	display: flex;
	max-width: 280px;
	gap: 10px;
	padding: 3px;
	color: #111;
	font-family: inherit;
}

.bbs-sl-infowindow > div {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
}

.bbs-sl-infowindow-photo {
	width: 76px;
	height: 76px;
	border-radius: 7px;
	object-fit: cover;
}

.bbs-sl-infowindow strong {
	font-size: 14px;
}

.bbs-sl-infowindow span {
	margin: 3px 0 7px;
	color: #666;
	font-size: 11px;
}

.bbs-sl-infowindow .bbs-sl-directions {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 7px 11px;
	border-radius: 4px;
	background: var(--bbs-sl-primary);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
}

.bbs-sl-infowindow .bbs-sl-directions:hover {
	filter: brightness(.9);
}

.bbs-sl-setup-message {
	display: grid;
	place-items: center;
	padding: 30px;
	border: 1px dashed #bbb;
	box-shadow: none;
	text-align: center;
}

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

@media (max-width: 600px) {
	.bbs-sl-locator {
		min-height: 620px;
		border-radius: 12px;
	}

	.bbs-sl-search {
		top: 14px;
		left: 14px;
		width: calc(100% - 28px);
	}

	.bbs-sl-panel {
		top: auto;
		right: 14px;
		bottom: 14px;
		left: 14px;
		width: auto;
		max-height: 52%;
		border-radius: 14px;
	}

	.bbs-sl-panel.is-closed {
		transform: translateY(20px);
	}

	.bbs-sl-panel-open {
		top: auto;
		bottom: 14px;
		left: 14px;
	}

	.bbs-sl-card {
		grid-template-columns: minmax(0, 1fr) 82px;
		min-height: 118px;
		padding: 13px;
	}

	.bbs-sl-card-photo {
		width: 82px;
		height: 90px;
	}
}
