/* Travel Map (wordpress/mu-plugins/travel-map.php): the look of the old
   Nomad World Map. White frame, map, and under it one stop at a time. */

.travel-map {
	margin-bottom: 20px;
	border: 3px solid #fff;
	background: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.travel-map__map {
	height: 350px;
}

.travel-map__map img {
	max-width: none !important;
	box-shadow: none !important;
}

.travel-map__label {
	font-weight: bold;
}

.travel-map__stops {
	position: relative;
	margin: 20px 0;
	min-height: 115px;
}

.travel-map__stops ol {
	margin: 0 15% !important;
	padding: 0;
	list-style: none;
}

.travel-map__stops li {
	display: none;
	margin: 0 !important;
	list-style: none !important;
}

.travel-map__stops li.is-active {
	display: flow-root;
}

.travel-map__thumb {
	float: left;
	width: 64px;
	height: 64px;
	margin: 0 15px 10px 0;
	border-radius: 50%;
	background: #e5e5e5;
	object-fit: cover;
}

.travel-map__stops h3 {
	margin: 0;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
}

.travel-map__stops h3 a:hover {
	text-decoration: none;
}

.travel-map__stops h3 span {
	display: block;
	font-size: 14px;
	font-weight: normal;
}

.travel-map__stops p {
	margin: 10px 0 0;
}

.travel-map__stops .travel-map__dates {
	margin: 0;
	font-size: 14px;
}

/* .travel-map in front: themes style every <button> (Sparkling: red, dark
   on hover), and this must win over their :hover and :focus too. */
.travel-map .travel-map__prev,
.travel-map .travel-map__next {
	position: absolute;
	top: 30px;
	width: 10%;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.travel-map .travel-map__prev:hover,
.travel-map .travel-map__prev:focus,
.travel-map .travel-map__next:hover,
.travel-map .travel-map__next:focus {
	background: none;
}

.travel-map .travel-map__prev:focus-visible,
.travel-map .travel-map__next:focus-visible {
	outline: 2px solid #888;
}

.travel-map__prev {
	left: 0;
}

.travel-map__next {
	right: 0;
}

/* Chevrons, as in the old graphic. */
.travel-map__prev::before,
.travel-map__next::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border: solid #888;
	border-width: 0 3px 3px 0;
}

.travel-map__prev::before {
	transform: rotate(135deg);
}

.travel-map__next::before {
	transform: rotate(-45deg);
}

.travel-map__prev:hover::before,
.travel-map__next:hover::before {
	border-color: #333;
}

/* No thumbnails on phones (as the blog's own CSS did for the old map). */
@media (max-width: 500px) {
	.travel-map__stops ol {
		margin: 0 12% !important;
	}

	.travel-map__thumb {
		display: none;
	}
}

/* Overview map (home page): one line per trip, the legend under the map. */
.travel-map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 12px 15px !important;
	padding: 0;
	list-style: none;
}

.travel-map__legend li {
	margin: 0 !important;
	list-style: none !important;
}

.travel-map__swatch {
	display: inline-block;
	width: 24px;
	height: 4px;
	margin-right: 8px;
	border-radius: 2px;
	vertical-align: middle;
}

.travel-map--overview .leaflet-interactive {
	cursor: pointer;
}
