/* Events map (libs/js/events_map.js), first used on /events/geolocate/ (Steve, 2026-11-17). Colours from colors.css. */

.ts-events-map {
	width: 100%;
	height: 250px;
	border: 1px solid var(--grey-pentadic);
	border-radius: 4px;
	background-color: var(--grey-tetradic);
}

/* The filter box that holds the map (list_common.tpl adds --with-map): flush with the green h1 above it
   (h1.block has margin -20px -20px 30px in custom.css) and with the sides of the white content area.
   Its 20px padding keeps the map the same distance from the white edge as the page content. */
.ts-event-filters.ts-event-filters--with-map {
	margin: -30px -20px 20px;
	padding: 20px;
	border-width: 0 0 1px;
	border-radius: 0;
	box-shadow: none;
}
.ts-event-filters--with-map .ts-filter-controls + .ts-events-map-section {
	margin-top: 20px;
}
.ts-event-filters--with-map .ts-events-map-section .help-block {
	margin-bottom: 0;
}

/* The pop-up when a marker is clicked */
.ts-map-info {
	max-width: 260px;
	color: var(--grey-primary);
}
.ts-map-info-place {
	margin-bottom: 6px;
}
.ts-map-info-events {
	margin: 0;
	max-height: 200px;
	overflow-y: auto;
}
.ts-map-info-events li + li {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--grey-tertiary);
}
