/* frontend.css - Version 1.12.4 */
.hm-plugin-wrap {
	--hm-accent: #6366f1;
	--hm-accent-bg: rgba(99, 102, 241, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #374151;
	max-width: 1300px;
	margin: 0 auto;
	box-sizing: border-box;
}
.hm-plugin-wrap *,
.hm-plugin-wrap *::before,
.hm-plugin-wrap *::after {
	box-sizing: border-box;
}
.hm-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}
.hm-top h1 {
	margin: 0;
	font-size: 30px;
	letter-spacing: -0.5px;
	color: #111827;
	line-height: 1.2;
}
.hm-sub {
	margin: 8px 0 0;
	font-size: 14px;
	color: #6b7280;
}
.hm-chips {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.hm-chip {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 18px;
	text-align: center;
	min-width: 96px;
}
.hm-chip span {
	display: block;
	font-size: 11.5px;
	color: #6b7280;
}
.hm-chip b {
	font-size: 17px;
	color: #111827;
}
.hm-chip-pr,
.hm-chip-medal {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease, border-color 0.15s ease;
	user-select: none;
}
.hm-chip-pr:hover,
.hm-chip-medal:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 10;
}
.hm-chip-medal.is-active {
	background: var(--hm-accent-bg);
	border-color: var(--hm-accent);
}
.hm-chip-medal.is-active span,
.hm-chip-medal.is-active b {
	color: var(--hm-accent);
}
.hm-hr {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 22px 0;
}
.hm-filter-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
	background: var(--hm-accent-bg);
	border: 1px solid var(--hm-accent);
	color: var(--hm-accent);
	padding: 10px 16px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 13px;
}
.hm-filter-bar.is-active {
	display: flex;
}
#hm-filter-label {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.35;
}
.hm-filter-reset {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0 !important;
	max-width: fit-content;
	white-space: nowrap;
	background: #fff !important;
	border: 1px solid var(--hm-accent) !important;
	color: var(--hm-accent) !important;
	border-radius: 6px !important;
	padding: 4px 10px !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}
.hm-tag-factbox {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--hm-accent);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}
.hm-tag-factbox-v14 {
	background: #e5e7eb;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 24px 28px;
	margin: 0 auto;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	width: 80%;
}
.hm-tag-factbox-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.hm-tag-factbox-content h3 {
	font-size: 1.5rem !important;
	font-weight: 700;
	margin: 0 0 12px 0 !important;
	color: #111827;
	text-align: center;
}
.hm-tag-factbox-content p {
	font-size: 1rem;
	color: #374151;
	margin: 0 !important;
	line-height: 1.5;
	text-align: left;
	white-space: pre-wrap;
}
.hm-tag-factbox-btns {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	flex-shrink: 0;
}
.hm-tag-btn {
	flex-shrink: 0;
	display: inline-block;
	background: var(--hm-accent, #6366f1);
	border: 1px solid transparent;
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.15s;
}
.hm-tag-btn:hover {
	filter: brightness(1.1);
	color: #fff !important;
}
.hm-cols {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.hm-left-col {
	flex: 0 0 350px;
	width: 350px;
}
.hm-right-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
	min-width: 0;
}
.hm-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	min-width: 0;
}
.hm-card-h {
	background: #fafafc;
	border-bottom: 1px solid #e5e7eb;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.hm-card-h b {
	font-size: 11px;
	letter-spacing: 0.09em;
	color: #6b7280;
}
.hm-sort-btn {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	font-size: 12px;
	color: var(--hm-accent) !important;
	cursor: pointer;
	font-weight: 600;
	box-shadow: none !important;
}
.hm-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: 640px;
	overflow-y: auto;
}
.hm-list li {
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid #e5e7eb;
	list-style: none !important;
}
/* V1.5 Manuel højde-gribebjælke i bunden af venstre kolonne */
.hm-list-resizer {
	height: 14px;
	background: #fafafc;
	border-top: 1px solid #e5e7eb;
	cursor: ns-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	transition: background-color 0.15s ease;
}
.hm-list-resizer::after {
	content: "";
	width: 32px;
	height: 4px;
	border-top: 1.5px solid #9ca3af;
	border-bottom: 1.5px solid #9ca3af;
}
.hm-list-resizer:hover,
.hm-list-resizer.is-dragging {
	background: #f3f4f6;
}
.hm-list-resizer:hover::after,
.hm-list-resizer.is-dragging::after {
	border-color: var(--hm-accent);
}
.hm-list-btn {
	width: 100%;
	text-align: left;
	background: transparent !important;
	border: 0 !important;
	border-left: 4px solid transparent !important;
	padding: 11px 20px !important;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-family: inherit;
	color: inherit !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.hm-list-btn:hover {
	background: #fafafc !important;
}
.hm-list-btn.is-selected {
	background: var(--hm-accent-bg) !important;
	border-left-color: var(--hm-accent) !important;
}
.hm-list-top-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.hm-race-num {
	display: inline-block;
	background: #e5e7eb;
	color: #374151;
	font-size: 10.5px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 5px;
}
.hm-list-btn.is-selected .hm-race-num {
	background: var(--hm-accent);
	color: #fff;
}
.hm-race-num.is-milestone,
.hm-list-btn.is-selected .hm-race-num.is-milestone {
	background: linear-gradient(135deg, #fde047 0%, #eab308 100%) !important;
	color: #422006 !important;
	border: 1px solid #ca8a04;
	box-shadow: 0 1px 3px rgba(202, 138, 4, 0.35);
}
.hm-list-btn .hm-d {
	font-size: 11.5px;
	color: #6b7280;
}
.hm-list-btn.is-selected .hm-d {
	color: var(--hm-accent);
	font-weight: 600;
}
.hm-list-btn .hm-t {
	font-size: 14.5px;
	color: #374151;
	margin-top: 3px;
}
.hm-list-btn.is-selected .hm-t {
	color: #111827;
	font-weight: 700;
}
.hm-list-btn .hm-c {
	color: #6b7280;
	font-size: 17px;
}
.hm-det-h {
	background: #fafafc;
	border-bottom: 1px solid #e5e7eb;
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.hm-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	color: var(--hm-accent);
}
.hm-det-h h2 {
	margin: 8px 0 10px;
	font-size: 26px;
	color: #111827;
	letter-spacing: -0.4px;
	line-height: 1.2;
}
.hm-meta {
	font-size: 13px;
	color: #6b7280;
}
.hm-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.hm-badge {
	background: #ecfaf0 !important;
	border: 1px solid #a8d6b4 !important;
	color: #227a3e !important;
	border-radius: 14px !important;
	padding: 5px 14px !important;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.hm-badge:hover,
.hm-badge.is-active {
	background: #227a3e !important;
	color: #fff !important;
	border-color: #227a3e !important;
}
.hm-body {
	padding: 24px 32px 28px;
}
.hm-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.hm-stats.hm-stats-3 {
	grid-template-columns: repeat(3, 1fr);
}
.hm-stat {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 18px;
}
.hm-stat span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	color: #6b7280;
}
.hm-stat b {
	font-size: 22px;
	color: #111827;
}
.hm-lbl {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: #6b7280;
	margin: 28px 0 12px;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 8px;
}
.hm-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.hm-link {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 11px 14px;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	min-width: 0;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hm-link:hover {
	border-color: var(--hm-accent);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
.hm-ico {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	overflow: hidden;
}
.hm-ico svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.hm-ico img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hm-link-txt {
	min-width: 0;
	flex: 1;
	overflow: hidden;
}
.hm-link-txt b {
	display: flex;
	align-items: center;
	font-size: 13.5px;
	line-height: 1.3;
	min-height: 18px;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hm-link-txt span {
	line-height: 1.3;
}
.hm-link-txt span {
	display: block;
	font-size: 11.5px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hm-arr {
	margin-left: auto;
	color: #6b7280;
	flex: 0 0 auto;
	font-size: 14px;
}
.hm-media-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	gap: 16px;
	align-items: stretch;
}
.hm-media-card {
	background: #fafafc !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	padding: 10px !important;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: inherit !important;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hm-media-card:hover {
	border-color: var(--hm-accent) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.hm-media-thumb {
	width: 100%;
	height: 140px;
	background: #eceef5;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}
.hm-media-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hm-media-tag {
	position: absolute;
	top: 7px;
	left: 7px;
	background: rgba(17, 24, 39, 0.78);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: 0.04em;
}
.hm-media-card.is-medal .hm-media-tag {
	background: var(--hm-accent);
}
.hm-media-cap {
	margin-top: 9px;
	font-size: 12px;
	color: #374151;
	line-height: 1.4;
}
.hm-nomedia {
	background: #f3f4f6;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
	padding: 20px;
	font-size: 13px;
	color: #6b7280;
	text-align: center;
}

/* Lightbox Fullscreen */
dialog.hm-lightbox {
	border: 0;
	border-radius: 0;
	padding: 0;
	max-width: 100vw;
	width: 100vw;
	height: 100vh;
	max-height: 100vh;
	background: transparent;
	margin: 0;
}
dialog.hm-lightbox::backdrop {
	background: rgba(17, 24, 39, 0.92);
}
.hm-dialog-header {
	position: fixed;
	top: 20px;
	left: 24px;
	right: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	z-index: 20;
	pointer-events: none;
}
.hm-dialog-header strong {
	font-size: 16px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	pointer-events: auto;
}
.hm-dialog-header button {
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.16) !important;
	border: 0 !important;
	color: #fff !important;
	width: 42px;
	height: 42px;
	border-radius: 50% !important;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hm-dialog-header button:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}
.hm-lb-stage {
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 70px 24px 60px;
	cursor: pointer;
}
.hm-lb-stage img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	cursor: default;
}
.hm-lb-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18) !important;
	border: 0 !important;
	width: 48px;
	height: 48px;
	border-radius: 50% !important;
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	z-index: 20;
}
.hm-lb-nav:hover {
	background: rgba(255, 255, 255, 0.35) !important;
}
.hm-lb-prev {
	left: 24px;
}
.hm-lb-next {
	right: 24px;
}
.hm-lb-cap {
	position: fixed;
	bottom: 22px;
	left: 24px;
	right: 24px;
	font-size: 14px;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
	pointer-events: none;
}

@media (max-width: 960px) {
	.hm-links {
		grid-template-columns: 1fr;
	}
	.hm-lb-prev {
		left: 10px;
	}
	.hm-lb-next {
		right: 10px;
	}
}

@media (max-width: 768px) {
	.hm-stats.hm-stats-3 {
		grid-template-columns: 1fr;
	}
	.hm-cols {
		flex-direction: column;
	}
	.hm-left-col {
		flex: none;
		width: 100%;
	}
	.hm-tag-factbox-v14 {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	.hm-list-resizer {
		display: none;
	}
}

/* --- Løberute Leaflet-kort --- */
.hm-route-map {
	height: 380px;
	width: 100%;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	background: #f3f4f6;
	z-index: 1;
	overflow: hidden;
	position: relative;
}

.hm-route-loading {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #6b7280;
}

.hm-route-source {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 8px;
	text-align: right;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.hm-route-map {
		height: 300px;
	}
}
