/* ==========================================================================
   DFB Geografi Widget
   ========================================================================== */

/* --- Steds-liste --------------------------------------------------------- */

.dfb-geo-list {
	margin: 0;
	padding: 0;
}

.dfb-geo-place-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 0;
	border-bottom: 1px solid rgba(0,0,0,.06);
}

.dfb-geo-place-row:last-child {
	border-bottom: none;
}

.dfb-geo-place-btn {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: var(--bb-oxblod, #8b1a1a);
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgba(139,26,26,.3);
	text-underline-offset: 2px;
}

.dfb-geo-place-btn:hover,
.dfb-geo-place-btn:focus-visible {
	color: var(--bb-link-hover, #5e1111);
	text-decoration-color: currentColor;
}

.dfb-geo-verse-ref {
	font-size: .82em;
	color: #888;
	white-space: nowrap;
	flex-shrink: 0;
}

.dfb-geo-type-badge {
	font-size: .72em;
	background: rgba(139,26,26,.08);
	color: var(--bb-oxblod, #8b1a1a);
	padding: 1px 5px;
	border-radius: 3px;
	white-space: nowrap;
	flex-shrink: 0;
}

.dfb-geo-loading {
	color: #888;
	font-style: italic;
	margin: 0;
	padding: 4px 0;
}

.dfb-geo-empty {
	color: #888;
	font-style: italic;
	margin: 0;
	padding: 4px 0;
}

/* --- Vis alle-knap ------------------------------------------------------- */

.dfb-geo-actions {
	padding: 8px 0 2px;
}

.dfb-geo-show-all {
	display: block;
	width: 100%;
	padding: 7px 12px;
	background: var(--bb-oxblod, #8b1a1a);
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: .85em;
	cursor: pointer;
	transition: background .15s;
}

.dfb-geo-show-all:hover,
.dfb-geo-show-all:focus-visible {
	background: var(--bb-link-hover, #5e1111);
}

/* --- Popup overlay ------------------------------------------------------- */

.dfb-geo-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dfb-geo-popup {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0,0,0,.25);
	width: 100%;
	max-width: 720px;
	padding: 20px;
	position: relative;
	animation: dfbGeoFadeIn .2s ease;
}

@keyframes dfbGeoFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dfb-geo-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
}

.dfb-geo-close:hover {
	color: #000;
}

.dfb-geo-popup-title {
	margin: 0 0 4px;
	font-size: 1.25em;
	color: var(--bb-oxblod, #8b1a1a);
}

.dfb-geo-popup-meta {
	margin: 0 0 12px;
	font-size: .88em;
	color: #888;
}

.dfb-geo-map {
	border-radius: 6px;
	overflow: hidden;
	height: 420px;
}

.dfb-geo-credit {
	margin: 8px 0 0;
	font-size: .72em;
	color: #aaa;
	text-align: right;
}

.dfb-geo-credit a {
	color: #999;
}

/* --- Lag-vælger ---------------------------------------------------------- */

.dfb-geo-map .leaflet-control-layers {
	border: 1px solid #d8d0c3;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	background: #faf7f2;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	font-size: 13px;
	color: #2d3748;
}
.dfb-geo-map .leaflet-control-layers-toggle {
	width: 32px;
	height: 32px;
	background-size: 18px 18px;
}
.dfb-geo-map .leaflet-control-layers-base label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 0;
	cursor: pointer;
}
.dfb-geo-map .leaflet-control-layers-base input[type="radio"] {
	accent-color: #8b1a1a;
}

/* --- Region-polygon ------------------------------------------------------ */

.dfb-geo-region-label {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 13px;
	font-weight: 600;
	font-style: italic;
	color: #8b1a1a;
	text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff;
	white-space: nowrap;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 600px) {
	.dfb-geo-popup {
		max-width: 100%;
		padding: 14px;
	}
	.dfb-geo-map {
		height: 300px;
	}
}
