/*
 * Styles til sognegraenserv3.php (moderniseret sognegrænsekort).
 * Popup-klasserne (.info, .zoomlink, .infolink m.fl.) er overført fra
 * css/sognegraenser.css, så popups ligner v2.
 */

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: Tahoma, Geneva, Arial, Verdana, Helvetica, sans-serif;
}

#map {
	width: 100%;
	height: 100%;
}

/* ---------- Popup-indhold (InfoWindow) ---------- */

.info {
	font-size: 1.0em;
	overflow: hidden;
	height: 135px;
	min-height: 135px;
	width: 156px;
	min-width: 156px;
}
.info.small {
	height: 80px;
	min-height: 80px;
}
.info.medium {
	height: 95px;
	min-height: 95px;
}
.info.large {
	height: 110px;
	min-height: 110px;
}
.info.kirke {
	width: 250px;
	height: auto;
}
.info.no-img {
	width: 156px;
}

.navigering {
	margin: 10px 0 0 0;
	padding-bottom: 10px;
}

span.infoheader {
	font-size: 1.2em;
	margin: 5px 0;
	white-space: nowrap;
}

.h1_link {
	text-decoration: none;
	cursor: pointer;
}
.h1_link:hover {
	text-decoration: underline;
}

a.headerlink {
	text-decoration: none;
	color: #000;
}
a.headerlink:hover {
	text-decoration: underline;
}

span.head2 {
	font-size: 1.0em;
	font-weight: normal;
	margin: 0 0 5px 0;
}

.kirke_adresse {
	float: left;
	font-size: 0.8em;
	height: 60px;
	min-height: 60px;
	width: 100px;
	max-width: 100px;
	overflow: hidden;
}

.kirke_img {
	float: right;
	height: 80px;
	min-height: 80px;
	padding: 0 0 5px 8px;
	vertical-align: top;
}

.zoomlink,
.infolink {
	color: #003862;
	font-size: 0.9em;
	vertical-align: bottom;
	text-decoration: underline;
	cursor: pointer;
}

.navicon {
	margin-left: 4px;
	vertical-align: bottom;
	border: 0;
}

/* ---------- Floating panel ---------- */

#sg-panel {
	position: fixed;
	top: 12px;
	right: 12px;
	width: 260px;
	max-height: calc(100vh - 24px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	z-index: 10;
	overflow: hidden;
}

#sg-panel[hidden] {
	display: none;
}

.sg-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	background: #003862;
	color: #fff;
	cursor: move;
	user-select: none;
	touch-action: none; /* pointer events skal styre træk, ikke scroll */
}

.sg-panel-title {
	font-size: 0.95em;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sg-panel-toggle {
	flex: none;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.sg-panel-toggle:hover {
	background: rgba(255, 255, 255, 0.35);
}

.sg-panel-body {
	overflow-y: auto;
	padding: 6px 0;
}

#sg-panel.collapsed .sg-panel-body {
	display: none;
}

.sg-panel-body .contentlink {
	display: block;
	padding: 3px 10px;
	font-size: 0.85em;
}
.sg-panel-body .contentlink:hover {
	background: #eef3f8;
}

.sg-panel-body .sg-list-header {
	display: block;
	padding: 5px 10px 3px 10px;
	font-size: 1.0em;
	font-weight: bold;
}

.sg-panel-body .sg-back {
	display: block;
	padding: 3px 10px 6px 10px;
	font-size: 0.8em;
}

/* Mobil: dock i bunden, fuld bredde, sammenklappet som udgangspunkt */
@media (max-width: 600px) {
	#sg-panel {
		top: auto !important;
		left: 0 !important;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 45vh;
		border-radius: 6px 6px 0 0;
	}
	.sg-panel-header {
		cursor: default;
	}
}
