/* Frontend — Store Locator POU
   Brand: #845311 · Font: Raleway
*/

:root {
	--slp-brand: #845311;
	--slp-brand-dark: #6a420d;
	--slp-brand-soft: rgba(132, 83, 17, 0.1);
	--slp-ink: #2a2118;
	--slp-muted: #6b5e4f;
	--slp-line: rgba(132, 83, 17, 0.14);
	--slp-font: "Raleway", system-ui, sans-serif;
}

.slp-map-wrapper {
	width: 100%;
	height: var(--slp-map-height, 500px);
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #efe8de;
	box-shadow: 0 1px 2px rgba(42, 33, 24, 0.06), 0 8px 24px rgba(42, 33, 24, 0.08);
}

.slp-locator {
	width: 100%;
	font-family: var(--slp-font);
}

.slp-search {
	position: relative;
	z-index: 5;
	margin-bottom: 12px;
	max-width: 420px;
}

.slp-search__field {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	min-height: 48px;
	background: #fffefb;
	border: 1px solid var(--slp-line);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(42, 33, 24, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slp-search.is-matched .slp-search__field,
.slp-search__field:focus-within {
	border-color: rgba(132, 83, 17, 0.45);
	box-shadow: 0 0 0 3px var(--slp-brand-soft), 0 4px 14px rgba(42, 33, 24, 0.08);
}

.slp-search__icon {
	flex-shrink: 0;
	color: var(--slp-brand);
	opacity: 0.85;
}

.slp-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: var(--slp-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--slp-ink);
	padding: 12px 0;
}

.slp-search__input::placeholder {
	color: var(--slp-muted);
	font-weight: 400;
	opacity: 0.85;
}

.slp-search__input::-webkit-search-decoration,
.slp-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.slp-search__clear {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: var(--slp-brand-soft);
	color: var(--slp-brand);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.slp-search__clear:hover {
	background: var(--slp-brand);
	color: #fff;
}

.slp-search__results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fffefb;
	border: 1px solid var(--slp-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(42, 33, 24, 0.14);
	max-height: 280px;
	overflow: auto;
	z-index: 20;
}

.slp-search__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.12s ease;
}

.slp-search__item:hover,
.slp-search__item.is-active {
	background: var(--slp-brand-soft);
}

.slp-search__item-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--slp-ink);
}

.slp-search__item-meta {
	font-size: 12px;
	font-weight: 500;
	color: var(--slp-muted);
}

.slp-search__empty {
	padding: 12px;
	font-size: 13px;
	color: var(--slp-muted);
	font-weight: 500;
}

.slp-map {
	width: 100%;
	height: 100%;
	z-index: 1;
	font-family: var(--slp-font);
}

/* ——— Pin ——— */
.slp-marker {
	background: transparent !important;
	border: none !important;
}

.slp-marker__wrap {
	position: relative;
	width: 32px;
	height: 42px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	filter: drop-shadow(0 3px 6px rgba(42, 33, 24, 0.35));
	transition: transform 0.2s ease;
}

.slp-marker:hover .slp-marker__wrap,
.slp-marker.is-active .slp-marker__wrap {
	transform: translateY(-3px) scale(1.06);
}

.slp-marker__pin {
	display: block;
	width: 28px;
	height: 28px;
	background: linear-gradient(145deg, #9a6418 0%, var(--slp-brand) 55%, var(--slp-brand-dark) 100%);
	border: 2.5px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	position: relative;
}

.slp-marker__pin::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: #fff;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px rgba(132, 83, 17, 0.25);
}

/* ——— Pop-up Leaflet ——— */
.slp-leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow:
		0 4px 6px rgba(42, 33, 24, 0.04),
		0 16px 40px rgba(42, 33, 24, 0.16);
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--slp-line);
	background: #fffefb;
}

.slp-leaflet-popup .leaflet-popup-content {
	margin: 0;
	font-family: var(--slp-font);
	font-size: 13.5px;
	line-height: 1.5;
	min-width: 200px;
	max-width: 280px;
	color: var(--slp-ink);
}

.slp-leaflet-popup .leaflet-popup-tip-container {
	margin-top: -1px;
}

.slp-leaflet-popup .leaflet-popup-tip {
	background: #fffefb;
	box-shadow: none;
	border: 1px solid var(--slp-line);
	border-top: none;
	border-left: none;
}

.slp-leaflet-popup a.leaflet-popup-close-button {
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--slp-muted);
	background: var(--slp-brand-soft);
	border-radius: 50%;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.slp-leaflet-popup a.leaflet-popup-close-button:hover {
	background: var(--slp-brand);
	color: #fff;
}

.slp-popup {
	padding: 0;
}

.slp-popup__header {
	padding: 16px 40px 12px 16px;
	background: linear-gradient(180deg, rgba(132, 83, 17, 0.08) 0%, transparent 100%);
	border-bottom: 1px solid var(--slp-line);
}

.slp-popup__name {
	font-family: var(--slp-font);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
	line-height: 1.35;
	margin: 0;
	color: var(--slp-brand);
}

.slp-popup__body {
	padding: 12px 16px 16px;
}

.slp-popup__address {
	margin: 0 0 4px;
	color: var(--slp-muted);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.45;
}

.slp-popup__row {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--slp-line);
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.slp-popup__label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slp-brand);
	opacity: 0.75;
	margin-bottom: 1px;
}

.slp-popup__value {
	color: var(--slp-ink);
	font-weight: 500;
	white-space: pre-line;
}

.slp-popup a {
	color: var(--slp-brand);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
	transition: color 0.15s ease;
}

.slp-popup a:hover {
	color: var(--slp-brand-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.slp-popup__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.slp-popup__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: var(--slp-brand-soft);
	color: var(--slp-brand-dark);
	border: 1px solid rgba(132, 83, 17, 0.18);
}

.slp-popup__badge.is-no {
	background: rgba(42, 33, 24, 0.05);
	color: var(--slp-muted);
	border-color: rgba(42, 33, 24, 0.08);
}
