/* Stop Hubs – Interactive Map  v1.2.0 */
.sh-map-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
	max-width: 100%;
}

/* ---- Filter buttons ---- */
.sh-map-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	justify-content: center;
}

.sh-map-filter-btn {
	padding: 8px 20px;
	border: 2px solid #1a9b9b;
	border-radius: 50px;
	background: #fff;
	color: #1a9b9b;
	font-size: .88em;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.sh-map-filter-btn:hover { background: #e8f7f7; }
.sh-map-filter-btn.active { background: #1a9b9b; color: #fff; }

.sh-map-legend {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: -4px 0 14px;
	color: #4b5563;
	font-size: .82em;
	font-weight: 600;
}

.sh-map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sh-map-legend-pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #fff;
	font-size: .78em;
	font-weight: 800;
	line-height: 1;
}

.sh-map-legend-pin--pickup {
	background: #5c2d6e;
}

/* ---- Map canvas ---- */
.sh-map-canvas {
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	background: #f3f4f6;
}

/* ---- Info Panel (sidebar overlay) ---- */
.sh-map-info-panel {
	position: absolute;
	top: 60px;
	right: 0;
	width: 320px;
	max-height: calc(100% - 80px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: 0 8px 32px rgba(0,0,0,.14);
	z-index: 10;
	padding: 20px;
	box-sizing: border-box;
}

.sh-map-info-panel[hidden] { display: none; }

.sh-info-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.4em;
	cursor: pointer;
	color: #6b7280;
	line-height: 1;
	padding: 0;
}
.sh-info-close:hover { color: #111; }

/* ---- Info content ---- */
.sh-info-hub-label {
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #1a9b9b;
	margin-bottom: 4px;
}

.sh-info-hub-label--pickup {
	color: #5c2d6e;
}

.sh-info-route-badge {
	display: inline-block;
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: #1a9b9b;
	color: #fff;
	padding: 2px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
}

.sh-info-route-badge--pickup {
	background: #5c2d6e;
}

.sh-info-name {
	font-size: 1.25em;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
	padding-right: 24px;
}

.sh-info-address {
	font-size: .85em;
	color: #6b7280;
	margin: 0 0 12px;
}

.sh-info-section-label {
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #6b7280;
	margin: 14px 0 6px;
}

.sh-info-times {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.sh-info-note {
	font-size: .82em;
	color: #4b5563;
	margin: -2px 0 8px;
	line-height: 1.45;
}

.sh-info-time-pill {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: .82em;
	font-weight: 500;
	background: #fff;
}

.sh-info-nearby {
	font-size: .85em;
	color: #374151;
	margin: 0;
}

.sh-info-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.sh-info-logo-link { display: inline-flex; }
.sh-info-logo {
	max-height: 44px;
	max-width: 90px;
	object-fit: contain;
}

.sh-info-map-btn {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 10px;
	text-align: center;
	background: #1a9b9b;
	color: #fff !important;
	border-radius: 0;
	text-decoration: none !important;
	font-size: .88em;
	font-weight: 600;
	transition: background .2s;
}
.sh-info-map-btn:hover { background: #147a7a; }

/* ---- No API key notice ---- */
.sh-map-no-key {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 0;
	padding: 20px;
	font-size: .9em;
	text-align: center;
}
.sh-map-no-key code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .95em;
}

@media (max-width: 600px) {
	.sh-map-info-panel {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		width: 100%;
		max-height: 55vh;
		border-radius: 0;
	}
}
