/* ── Scrollytelling Map – Styles ─────────────────────────── */

.stm-widget {
	display: flex;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #e2e2e2;
	font-family: inherit;
	position: relative;
}

/* MAP PANEL */
.stm-map-panel {
	position: sticky;
	top: 0;
	flex-shrink: 0;
	background: #d0e8f2;
	overflow: hidden;
	height: 100%;
}

.stm-map-container {
	width: 100%;
	height: 100%;
}

/* Leaflet tile attribution override */
.stm-map-container .leaflet-control-attribution {
	font-size: 9px;
	opacity: 0.7;
}

/* Active location badge on map */
.stm-map-badge {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #185FA5;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s;
}
.stm-map-badge.stm-badge-visible {
	opacity: 1;
}

/* SCROLL PANEL */
.stm-scroll-panel {
	overflow-y: auto;
	height: 100%;
	background: #fff;
	scroll-behavior: smooth;
}

.stm-scroll-panel::-webkit-scrollbar {
	width: 4px;
}
.stm-scroll-panel::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

/* STOP CARD */
.stm-stop-card {
	border-bottom: 1px solid #f0f0f0;
	border-left: 3px solid transparent;
	cursor: pointer;
	transition: background 0.3s ease, border-left-color 0.3s ease;
	min-height: 140px;
}

.stm-stop-card:hover {
	background: #f8f8f8;
}

.stm-stop-card.stm-active {
	background: #f2f7fd;
	border-left-color: #185FA5;
}

.stm-stop-img {
	width: 100%;
	height: 160px;
	background-size: cover;
	background-position: center;
}

.stm-stop-inner {
	padding: 18px 20px;
}

.stm-stop-label {
	font-size: 11px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 5px;
}

.stm-stop-name {
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 8px;
	line-height: 1.3;
}

.stm-stop-desc {
	font-size: 13px;
	color: #555;
	line-height: 1.65;
}

.stm-scroll-spacer {
	height: 200px;
}

/* Leaflet custom marker */
.stm-map-pin {
	width: 22px;
	height: 22px;
	background: #185FA5;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	transition: background 0.3s, transform 0.3s;
}

.stm-map-pin.stm-pin-active {
	background: #e63c2f;
	transform: rotate(-45deg) scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
	.stm-widget {
		flex-direction: column;
		height: auto !important;
	}
	.stm-map-panel {
		width: 100% !important;
		height: 300px;
		position: relative;
	}
	.stm-scroll-panel {
		width: 100% !important;
		height: 400px;
	}
}
