/* Visited map — tuned to Carpe Diem (teal #046380, accent #c93, Open Sans) */

.visited-map-page #content.visited-map-content {
	min-height: 0;
	padding: 0 0 40px;
	box-sizing: border-box;
}

.visited-map-post {
	background: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	text-align: left !important;
}

.visited-map-header {
	padding: 8px 20px 16px 0;
}

.visited-map-title {
	font-variant: small-caps;
	font-weight: normal;
	font-size: 30px;
	color: #046380;
	margin: 0 0 8px;
	line-height: 1.15;
}

.visited-map-summary {
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #666;
	margin: 0;
	max-width: 46em;
}

.visited-map-summary .visited-map-count {
	white-space: nowrap;
}

.visited-map-count-num {
	color: #046380;
	font-weight: 600;
}

.visited-map {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 280px;
	background: #f7f9fa;
	border-top: 1px solid #d9e2e6;
	border-bottom: 1px solid #d9e2e6;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	overflow: hidden;
}

.visited-map-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	color: #8F8F8F;
}

.visited-map-controls {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	border: 1px solid #046380;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(4, 99, 128, 0.12);
}

.visited-map-controls button {
	width: 34px;
	height: 32px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(4, 99, 128, 0.2);
	border-radius: 0;
	background: #fff;
	color: #046380;
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.visited-map-controls button:last-child {
	border-bottom: 0;
}

.visited-map-controls button:hover {
	background: #046380;
	color: #fff;
}

.visited-map-controls button:focus {
	outline: 2px solid #c93;
	outline-offset: -2px;
}

.visited-map svg {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
}

.visited-map svg:active {
	cursor: grabbing;
}

.visited-map .country {
	stroke: #c5d0d6;
	stroke-width: 0.4;
	vector-effect: non-scaling-stroke;
	transition: fill 160ms ease;
	cursor: pointer;
}

.visited-map .country.is-visited {
	cursor: pointer;
}

.visited-map .country.is-visited:hover,
.visited-map .country.is-hover {
	fill: #c93 !important;
}

.visited-map .microstate {
	cursor: pointer;
	pointer-events: all;
}

.visited-map .microstate:hover,
.visited-map .microstate.is-hover {
	fill: #c93 !important;
}

.visited-map-tooltip {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, calc(-100% - 10px));
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #d9e2e6;
	box-shadow: 0 2px 8px rgba(4, 99, 128, 0.12);
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	color: #333;
	white-space: nowrap;
	transition: opacity 120ms ease;
}

.visited-map-tooltip.is-below {
	transform: translate(-50%, 12px);
}

.visited-map-tooltip.is-visible {
	opacity: 1;
}

/* Continent / country list — packed columns, vertical names for scan/hover */
.visited-map-list {
	column-count: 3;
	column-gap: 28px;
	padding: 28px 20px 12px 0;
	box-sizing: border-box;
}

.visited-map-continent {
	break-inside: avoid;
	margin: 0 0 26px;
}

.visited-map-continent-title {
	font-variant: small-caps;
	font-weight: normal;
	font-size: 17px;
	color: #046380;
	margin: 0 0 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid #d9e2e6;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.visited-map-continent-count {
	font-family: "Open Sans", sans-serif;
	font-variant: normal;
	font-size: 12px;
	color: #8F8F8F;
}

.visited-map-countries {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
}

.visited-map-countries li {
	margin: 0 0 3px;
	padding: 0;
}

.visited-map-countries li[data-country-id] {
	cursor: pointer;
}

.visited-map-countries li.is-active,
.visited-map-countries li[data-country-id]:hover {
	color: #c93;
}

.visited-map-entry {
	padding: 24px 20px 0 0;
}

.visited-map-edit {
	padding: 0 20px;
	font-size: 12px;
	color: #666;
}

@media (max-width: 900px) {
	.visited-map-header,
	.visited-map-list,
	.visited-map-entry,
	.visited-map-edit {
		padding-left: 12px;
		padding-right: 12px;
	}

	.visited-map-title {
		font-size: 24px;
	}

	.visited-map {
		min-height: 220px;
	}

	.visited-map-list {
		column-count: 2;
		column-gap: 20px;
		padding-top: 22px;
	}
}

@media (max-width: 560px) {
	.visited-map-list {
		column-count: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.visited-map .country {
		transition: none;
	}
}
