.lca-voyage-map-wrap {
	margin: 0 0 1.5rem;
}

.lca-voyage-map-heading {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.lca-voyage-map {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	background: #dbeafe;
}

.lca-voyage-continuous-route-layer {
	pointer-events: none;
	z-index: 390;
}

.lca-voyage-continuous-route-layer svg {
	overflow: visible;
}

.lca-voyage-map-error {
	padding: 1rem;
	border-left: 4px solid #c0392b;
	background: #fdecea;
	color: #611a15;
}

.lca-voyage-map-route-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.lca-voyage-map-route-legend-top {
	margin: 0 0 0.75rem;
}

.lca-voyage-map-multi-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 0 0 0.75rem;
}

.lca-voyage-map-compare-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.875rem;
	color: #333;
	cursor: pointer;
}

.lca-voyage-map-recenter-view {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.lca-voyage-map-recenter-view:hover,
.lca-voyage-map-recenter-view:focus {
	border-color: #1a4b7c;
	outline: 2px solid rgba(26, 75, 124, 0.25);
	outline-offset: 1px;
}

.lca-voyage-map-route-legend-item.is-active .lca-voyage-map-route-toggle {
	border-color: #1a4b7c;
	font-weight: 600;
}

.lca-voyage-map-route-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.lca-voyage-map-route-toggle:hover,
.lca-voyage-map-route-toggle:focus {
	border-color: #1a4b7c;
	outline: 2px solid rgba(26, 75, 124, 0.25);
	outline-offset: 1px;
}

.lca-voyage-map-route-legend-item.is-off .lca-voyage-map-route-toggle {
	opacity: 0.45;
}

.lca-voyage-map-route-swatch {
	width: 1rem;
	height: 0.35rem;
	border-radius: 2px;
	flex-shrink: 0;
}

.lca-voyage-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: #444;
}

.lca-voyage-map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.lca-voyage-map-legend-item::before {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
}

.lca-voyage-map-legend-route::before {
	width: 1.5rem;
	height: 0.2rem;
	border-radius: 0;
	background: #1a4b7c;
}

.lca-voyage-map-legend-noteworthy::before {
	background: #c0392b;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lca-voyage-map-legend-start::before {
	background: #2e7d32;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lca-voyage-map-legend-end::before {
	background: #6a1b9a;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.lca-voyage-map-legend-direction::before {
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 9px solid var(--lca-direction-color, #1a4b7c);
	border-radius: 0;
	background: transparent;
}

.lca-voyage-map-legend-port::before {
	background: #1a4b7c;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px rgba(26, 75, 124, 0.35);
}

.lca-voyage-route-arrow {
	display: block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 9px solid var(--lca-direction-color, #1a4b7c);
	opacity: 0.95;
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85));
}

.lca-voyage-port-icon-wrap {
	background: transparent;
	border: 0;
}

.lca-voyage-port-marker {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.lca-voyage-port-marker-ring {
	position: absolute;
	left: 0;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border: 2px solid rgba(26, 75, 124, 0.45);
	border-radius: 999px;
}

.lca-voyage-port-marker-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #1a4b7c;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.lca-voyage-port-marker-label {
	display: inline-block;
	max-width: 11rem;
	padding: 0.1rem 0.4rem;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.92);
	color: #1a4b7c;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lca-voyage-endpoint-icon-wrap,
.lca-voyage-direction-icon-wrap {
	background: transparent;
	border: 0;
}

.lca-voyage-direction-icon-wrap {
	cursor: pointer;
}

.lca-voyage-endpoint-icon {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
	white-space: nowrap;
}

.lca-voyage-route-dash {
	display: block;
	width: 14px;
	height: 4px;
	margin: 0 auto;
	border-radius: 2px;
	opacity: 0.95;
	box-shadow: 0 0 1px rgba(255, 255, 255, 0.85);
	cursor: pointer;
}

.lca-voyage-map-tiles-error::after {
	content: "Map tiles could not be loaded. Re-upload plugin v1.2.3+ and hard refresh. If this persists, OpenStreetMap may be blocked by your network.";
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: #611a15;
	background: rgba(253, 236, 234, 0.95);
	border-top: 1px solid rgba(192, 57, 43, 0.25);
}

.lca-voyage-map-hint {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #666;
	font-style: italic;
}

.lca-voyage-route-line {
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

.lca-voyage-popup .leaflet-popup-content-wrapper {
	border-radius: 6px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
	padding-top: 8px;
}

.lca-voyage-popup a.leaflet-popup-close-button {
	width: 48px;
	height: 48px;
	font: 32px/48px Tahoma, Verdana, sans-serif;
	color: #042B4A;
}

.lca-voyage-popup a.leaflet-popup-close-button:hover,
.lca-voyage-popup a.leaflet-popup-close-button:focus {
	color: #042B4A;
	opacity: 0.8;
}

.lca-voyage-popup .leaflet-popup-content {
	margin: 0;
	padding: 16px 52px 16px 20px;
	min-width: min(400px, calc(100vw - 3rem));
	max-width: min(540px, calc(100vw - 3rem));
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(26, 75, 124, 0.45) rgba(0, 0, 0, 0.08);
}

.lca-voyage-popup .leaflet-popup-content::-webkit-scrollbar {
	width: 10px;
}

.lca-voyage-popup .leaflet-popup-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
}

.lca-voyage-popup .leaflet-popup-content::-webkit-scrollbar-thumb {
	background: rgba(26, 75, 124, 0.45);
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.85);
}

.lca-voyage-popup-content {
	font-size: 0.925rem;
	line-height: 1.55;
}

.lca-voyage-popup-title {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.lca-voyage-popup-body {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lca-voyage-popup-body p {
	margin: 0 0 0.5rem;
}

.lca-voyage-popup-body p:last-child {
	margin-bottom: 0;
}

.lca-voyage-popup-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.lca-voyage-popup-image-wrap {
	margin: 0 0 0.5rem;
}

.lca-voyage-popup-gallery {
	margin: 0 0 0.75rem;
}

.lca-voyage-popup-gallery-stage {
	margin-bottom: 0.5rem;
}

.lca-voyage-popup-gallery-link {
	display: block;
}

.lca-voyage-popup-gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.lca-voyage-gallery-prev,
.lca-voyage-gallery-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: #fff;
	color: #1a4b7c;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.lca-voyage-gallery-prev:hover,
.lca-voyage-gallery-next:hover,
.lca-voyage-gallery-prev:focus,
.lca-voyage-gallery-next:focus {
	background: #eef4fa;
	outline: none;
}

.lca-voyage-gallery-count {
	min-width: 3.5rem;
	font-size: 0.82rem;
	color: #555;
	text-align: center;
}
