.vg-map-container {
	max-width: 100%;
}

.vg-map {
	width: 100%;
	border-radius: 8px;
	z-index: 1;
}

.vg-map-error {
	padding: 16px;
	background: #fdecea;
	color: #c0392b;
	border-radius: 6px;
}

/* --- Filterbjælke --- */
.vg-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.vg-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	background: #fff;
	color: #333 !important;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: all .15s ease;
}

.vg-filter-btn .vg-filter-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.vg-filter-btn .vg-filter-icon svg * {
	stroke: currentColor;
}

.vg-filter-btn .vg-filter-icon i {
	font-size: 13px;
	line-height: 1;
}

.vg-filter-btn:hover {
	border-color: var(--vg-cat-color, #999);
}

.vg-filter-btn.is-active {
	background: var(--vg-cat-color, #2b6cb0);
	border-color: var(--vg-cat-color, #2b6cb0);
	color: #fff !important;
}

/* --- Markører --- */
.vg-marker-wrapper {
	background: transparent;
	border: none;
}

.vg-marker {
	width: 34px;
	height: 34px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
	border: 2px solid #fff;
	position: relative;
}

.vg-marker-icon {
	transform: rotate(45deg);
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.vg-marker-icon svg {
	width: 100%;
	height: 100%;
}

.vg-marker-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vg-marker-icon i {
	font-size: 16px;
	line-height: 1;
}

.vg-marker-ad {
	box-shadow: 0 0 0 3px #d68910, 0 2px 6px rgba(0,0,0,.35);
}

.vg-marker-ad-dot {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 12px;
	height: 12px;
	background: #d68910;
	border: 2px solid #fff;
	border-radius: 50%;
	transform: rotate(45deg);
}

/* --- Popup-kort --- */
.leaflet-popup-content-wrapper {
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0 !important;
	width: 380px !important;
	max-width: 90vw !important;
}

.leaflet-popup {
	max-width: 90vw !important;
}

.vg-popup {
	font-family: inherit;
}

.vg-popup * {
	box-sizing: border-box;
}

.vg-popup-ad-badge {
	background: #d68910;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 4px 10px;
}

.vg-popup-gallery {
	position: relative;
	overflow: hidden;
	background: #eef0f2;
}

.vg-popup-main-image {
	width: 100%;
	max-height: 260px;
	object-fit: contain;
	display: block;
	background: #eef0f2;
}

.vg-popup-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.vg-popup-slider-btn:hover {
	background: rgba(0,0,0,.65);
}

.vg-popup-slider-prev {
	left: 8px;
}

.vg-popup-slider-next {
	right: 8px;
}

.vg-popup-slider-dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.vg-popup-slider-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255,255,255,.6);
	box-shadow: 0 0 0 1px rgba(0,0,0,.25);
	cursor: pointer;
}

.vg-popup-slider-dot.is-active {
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,.45);
}

.vg-popup-title {
	font-size: 16px;
	margin: 12px 12px 2px;
}

.vg-popup-text {
	font-size: 13px;
	line-height: 1.5;
	margin: 0 12px 10px;
	max-height: 120px;
	overflow-y: auto;
}

.vg-popup-contact {
	font-size: 13px;
	line-height: 1.7;
	margin: 0 12px 10px;
}

.vg-popup-contact a {
	color: inherit;
}

.vg-popup-link {
	display: block;
	text-align: center;
	background: #222;
	color: #fff !important;
	text-decoration: none;
	padding: 10px;
	font-size: 13px;
	font-weight: 600;
}

.vg-popup-link:hover {
	background: #444;
}

/* --- Rutevejledning (gå/cykel/bil) --- */
.vg-directions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.vg-directions a,
.vg-directions button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	color: #333;
	background: #f0f2f4;
	border: none;
	border-radius: 999px;
	padding: 4px 10px;
	cursor: pointer;
	font-family: inherit;
}

.vg-directions a:hover,
.vg-directions button:hover {
	background: #e2e6ea;
}

.vg-popup-directions {
	margin: 0 12px 12px;
}

.vg-list-item .vg-directions {
	margin-top: 2px;
}

/* --- Rute-info-banner (viser afstand/tid, eller status, over kortet) --- */
.vg-route-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 14px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: #eef0f2;
	color: #333;
	font-size: 13px;
	font-weight: 600;
}

.vg-route-banner.is-ok {
	background: #e6f4ea;
	color: #1e6b34;
}

.vg-route-banner.is-error {
	background: #fdecea;
	color: #a12b1f;
	font-weight: 500;
}

.vg-route-banner-close {
	border: none;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0 2px;
}

/* --- Kategori-listesider --- */
.vg-list-empty {
	opacity: .7;
}

.vg-list-group {
	margin-bottom: 24px;
}

.vg-list-group-title {
	font-size: 20px;
	margin: 0 0 10px;
}

.vg-list {
	--vg-list-columns: 3;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--vg-list-columns), 1fr);
	gap: 4px 32px;
}

.vg-list-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5;
}

.vg-list-item-name {
	font-weight: 600;
}

.vg-list-item-address {
	color: #666;
	font-size: 14px;
}

.vg-list-item-map-link {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 2px;
}

.vg-list-item-map-link:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.vg-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.vg-list {
		grid-template-columns: 1fr;
	}
}

/* --- Hærvejen rute-toggles --- */
.vg-route-toggle-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.vg-route-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--vg-route-color, #999);
	border-radius: 999px;
	background: #fff;
	color: var(--vg-route-color, #333) !important;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: all .15s ease;
}

.vg-route-toggle-btn.is-active {
	background: var(--vg-route-color, #2b6cb0);
	color: #fff !important;
}

