﻿@charset "UTF-8";

html,
body {
	margin: 0;
	padding: 0;
	background-color: #f3f4f6;
	font-family: Arial, Verdana, Helvetica, sans-serif;
	color: #000000;
}

a {
	font-size: 13px;
	color: #0066cc;
}

a:visited,
a:hover,
a:active {
	font-size: 13px;
	color: #0066cc;
	text-decoration: none;
}

h1 {
	color: #000000;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 10px 0;
}

h2 {
	color: #000000;
	font-size: 22px;
	line-height: 1.2;
	margin: 25px 0 10px 0;
}

h3 {
	color: #000000;
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 10px 0;
	font-weight: 700;
}

p {
	color: #000000;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 14px 0;
}

:root {
	--map-height: 760px;
	--side-width: 300px;
	--legend-icon-size: 16px;
}

.viewer-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	box-sizing: border-box;
}

.viewer-shell {
	background: #ffffff;
	border: 1px solid #d8dde3;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.viewer-header {
	padding: 24px 28px 20px 28px;
	border-bottom: 1px solid #d8dde3;
	background: #ffffff;
}

.viewer-header p {
	margin: 0;
	max-width: 900px;
}

.viewer-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 28px 28px 28px;
}

/* ---------- CONFLICT ---------- */

.conflict-host {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.conflict-host .widget-hoverbox {
	display: block;
	width: 100%;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #d8dde3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.conflict-host .widget-hoverbox-title {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e3e7eb;
}

.conflict-host .widget-hoverbox-title h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.conflict-host .widget-hoverbox-sub h3 {
	margin: 18px 0 10px 0;
}

.conflict-host .widget-hoverbox-sub p {
	margin-bottom: 14px;
}

/* ---------- LAYOUT ---------- */
.map-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--side-width);
	gap: 24px;
}

.widget-hoverbox-sub .mdi-alert-circle-outline {
	display: none;
  }
  
  /* Sørg for ens venstrekant */
  .widget-hoverbox-sub {
	padding-left: 0;
  }
.map-stage {
	height: var(--map-height);
}
.info-section a {
	font-size: inherit;
	font-family: inherit;
	color: #0066cc;
	text-decoration: underline;
  }
#map {
	width: 100%;
	height: 100%;
	border: 1px solid #d8dde3;
	background: #eef2f5;
}
/* Afsnit */
.widget-hoverbox-sub p {
	margin-bottom: 12px;
	line-height: 1.5;
  }
  
  /* Overskrifter */
  .widget-hoverbox-sub h2 {
	margin-top: 24px;
	margin-bottom: 8px;
  }
  .widget-hoverbox-sub a {
	font-size: inherit;
  }
  /* Første element skal ikke have top-margin */
  .widget-hoverbox-sub > *:first-child {
	margin-top: 0;
  }

/* ---------- LAYERSWITCH ---------- */

.layerswitch-host {
	height: var(--map-height);
	background: #ffffff;
	border: 1px solid #d8dde3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	padding: 0px;
	overflow: auto;
}

/* fjern collapse UI fra Septima */
.layerswitch-host .widget-layerswitch-header,
.layerswitch-host .widget-control-header,
.layerswitch-host .chevron {
	display: none !important;
}

/* sørg for alt altid er åbent */
.layerswitch-host details {
	display: block;
	margin: 4px 0 0 0;
}

.layerswitch-host details summary {
	display: block;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.35;
	margin: 0 0 0px 0;
}

.layerswitch-host details summary::-webkit-details-marker {
	display: inline;
}

/* ---------- IKONER ---------- */

.layerswitch-host svg {
	width: var(--legend-icon-size) !important;
	height: var(--legend-icon-size) !important;
	min-width: var(--legend-icon-size);
	min-height: var(--legend-icon-size);
	shape-rendering: crispEdges;
	vertical-align: top;
}

.layerswitch-host svg line,
.layerswitch-host svg rect {
	shape-rendering: crispEdges;
}

/* ---------- LEGEND (DIN HTML) ---------- */

/* den YDRE wrapper i legend */
.layerswitch-host details > div[style*="flex-direction:column"] {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin-top: 8px !important;
}

/* de INDRE rækker i legend */
.layerswitch-host details > div[style*="flex-direction:column"] > div[style*="display:flex"] {
	display: grid !important;
	grid-template-columns: var(--legend-icon-size) 1fr;
	column-gap: 8px;
	align-items: start !important;
	margin: 0 !important;
}

/* ikon i hver række */
.layerswitch-host details > div[style*="flex-direction:column"] > div[style*="display:flex"] > svg {
	width: var(--legend-icon-size) !important;
	height: var(--legend-icon-size) !important;
	min-width: var(--legend-icon-size) !important;
	min-height: var(--legend-icon-size) !important;
	display: block !important;
	margin-top: 2px;
}

/* tekst i hver række */
.layerswitch-host details > div[style*="flex-direction:column"] > div[style*="display:flex"] > span {
	display: block !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}
/* pil på fold-ud */
.layerswitch-host details summary {
	position: relative;
	padding-left: 18px;
	cursor: pointer;
}

/* selve pilen */
.layerswitch-host details summary::before {
	content: "▸";
	position: absolute;
	left: 0;
	top: -4px;
	font-size: 20px;
	transition: transform 0.2s ease;
}

/* når den er åben */
.layerswitch-host details[open] summary::before {
	transform: rotate(90deg);
}
/* ---------- TEKST ---------- */

.layerswitch-host span,
.layerswitch-host label {
	font-size: 13px;
	line-height: 1.4;
}

/* ---------- MOBIL ---------- */

@media (max-width: 900px) {
	.map-layout {
		grid-template-columns: 1fr;
	}

	.map-stage,
	.layerswitch-host {
		height: 640px;
	}
}
.conflict-host a,
.conflict-host a:visited,
.conflict-host a:hover,
.conflict-host a:active,
.widget-hoverbox a,
.widget-hoverbox a:visited,
.widget-hoverbox a:hover,
.widget-hoverbox a:active,
.widget-hoverbox-sub a,
.widget-hoverbox-sub a:visited,
.widget-hoverbox-sub a:hover,
.widget-hoverbox-sub a:active {
	color: #0066cc !important;
	text-decoration: underline !important;
}
.conflict-host a,
.conflict-host a *,
.widget-hoverbox a,
.widget-hoverbox a *,
.widget-hoverbox-sub a,
.widget-hoverbox-sub a * {
	color: #0066cc !important;
	fill: #0066cc !important;
}
