.vpf-map {
	--vpf-oeffentlich: #ffe658;
	--vpf-privat: #f0a202;
	--vpf-online: #6fbf73;
	--vpf-past: #c9cbc6;
	position: relative;
	max-width: none;
	min-height: 78vh;
}

/* Gewollte Abstände nach Theme-Reset in theme-safe.css. */
.vpf-map__count {
	margin: 0 0 0.35rem !important;
}

.vpf-map__note {
	margin: 0 0 0.65rem !important;
	line-height: 1.35 !important;
}

.vpf-map__filter-label {
	margin: 0.65rem 0 0.2rem !important;
	line-height: 1.3 !important;
}

.vpf-map__filter-hint {
	margin: 0.35rem 0 0 !important;
	line-height: 1.35 !important;
}

.vpf-map__search {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	gap: 0.2rem !important;
}

.vpf-map__search input {
	margin: 0 !important;
	padding: 0.55rem 0.7rem !important;
}

.vpf-map__chips {
	margin: 0.45rem 0 0 !important;
	gap: 0.35rem !important;
}

.vpf-map__more {
	margin: 0.45rem 0 0 !important;
}

.vpf-map__more label,
.vpf-map__date-field {
	display: grid !important;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	align-items: center;
	column-gap: 0.5rem;
	margin: 0.4rem 0 0 !important;
}

.vpf-map__date-caption {
	display: block;
	line-height: 1.3;
}

.vpf-chip,
.vpf-map__reset,
.vpf-map__filters,
.vpf-map__switch button {
	margin: 0 !important;
	padding: 0.35rem 0.8rem !important;
	line-height: 1.3 !important;
}

.vpf-map__reset {
	padding-inline: 0.2rem !important;
}

.vpf-map__card [data-vpf-geo] {
	margin: 0.85rem 0 0 !important;
	padding: 0.55rem 0.7rem !important;
}

.vpf-map__list summary {
	margin: 0.85rem 0 0.15rem !important;
}

.vpf-map__layout {
	display: grid;
	grid-template-columns: 22rem minmax(0, 1fr);
	min-height: 78vh;
	gap: 0;
}

.vpf-map__list {
	overflow: auto;
	max-height: 78vh;
	padding: 1.35rem 1.1rem 1.35rem 1.35rem;
	background: #f7f6f1;
}

.vpf-map__count {
	font-size: 1.15rem;
	font-weight: 650;
}

.vpf-map__list summary {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	list-style: none;
	padding: 0.35rem 0;
	cursor: pointer;
}

.vpf-map__list summary::-webkit-details-marker {
	display: none;
}

.vpf-map__list summary::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	margin-left: auto;
	border-right: 2px solid #464a47;
	border-bottom: 2px solid #464a47;
	transform: rotate(-45deg);
	flex: none;
}

.vpf-map__list details[open] > summary::after {
	transform: rotate(45deg) translate(-2px, -2px);
}

.vpf-map__pip {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	flex: none;
	background: var(--vpf-oeffentlich);
}

.vpf-map__pip--privat {
	background: var(--vpf-privat);
}

.vpf-map__pip--online {
	background: var(--vpf-online);
}

.vpf-map__list summary h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1.3;
	color: inherit;
}

.vpf-map__amount {
	font-size: 0.8rem;
	font-weight: 650;
	color: #3d4450;
}

.vpf-map__entry {
	border-bottom: 1px solid #e4e2da;
}

.vpf-map__item {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 10px;
	padding: 0.75rem 0.35rem 0.35rem;
	color: #1c1f1e;
	font: inherit;
	cursor: pointer;
}

.vpf-map__item:hover {
	background: rgba(255, 230, 88, 0.45);
}

.vpf-map__item strong {
	display: block;
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.3;
}

.vpf-map__when,
.vpf-map__place {
	display: block;
	margin-top: 0.15rem;
	color: #3d4450;
	font-size: 0.82rem;
	line-height: 1.35;
}

.vpf-map__url {
	display: inline-block;
	margin: 0 0 0.7rem 0.35rem;
	color: #2f5d34;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.vpf-map__note,
.vpf-map__filter-hint {
	font-size: 0.85rem;
}

.vpf-map__filter-label {
	font-size: 0.95rem;
	font-weight: 650;
}

.vpf-map__filter-hint,
.vpf-map__note {
	color: #3d4450;
}

.vpf-map__stage {
	position: relative;
	container-type: inline-size;
	min-width: 0;
	min-height: 78vh;
	width: 100%;
}

.vpf-map__canvas {
	width: 100%;
	height: 78vh;
	border-radius: 0;
	overflow: hidden;
}

.vpf-map__card {
	position: absolute;
	z-index: 500;
	top: 0.75rem;
	left: 0.75rem;
	width: min(22rem, calc(100% - 4.5rem));
	max-height: calc(100% - 9.5rem);
	overflow: auto;
	padding: 0.9rem 1rem;
	background: #f7f6f1;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	box-shadow: 0 8px 18px rgba(20, 24, 33, 0.12);
	font-size: 0.95rem;
	line-height: 1.35;
}

.vpf-map__search-label {
	font-weight: 600;
}

.vpf-map__search input,
.vpf-map__card [data-vpf-geo] {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	padding: 0.55rem 0.7rem;
	background: #fff;
	color: inherit;
	font: inherit;
}

.vpf-map__search input {
	font-size: 1em;
}

.vpf-map__card [data-vpf-geo] {
	width: auto;
	margin-top: 0.85rem;
	border: 0;
	border-radius: 5px;
	background: #ffe658;
	color: #464a47;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 0.82rem;
	cursor: pointer;
}

.vpf-map__more .vpf-date {
	display: block;
	width: 100%;
	max-width: 10.5rem;
	margin: 0 !important;
}

.vpf-map__more .vpf-date input[type="text"] {
	width: 100%;
	margin: 0 !important;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	padding: 0.3rem 2.2rem 0.3rem 0.45rem;
	font: inherit;
	font-size: 1em;
}

.vpf-map__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.vpf-chip,
.vpf-map__reset,
.vpf-map__switch button,
.vpf-map__filters {
	border: 1px solid #d8d8d4;
	background: #fff;
	border-radius: 5px;
	padding: 0.35rem 0.8rem;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.vpf-chip:hover,
.vpf-map__switch button:hover,
.vpf-map__filters:hover,
.vpf-map__card [data-vpf-geo]:hover {
	background: #fff8d4;
}

.vpf-chip.is-selected,
.vpf-map__switch button[aria-pressed="true"],
.vpf-map__filters[aria-expanded="true"] {
	background: #ffe658;
	color: #464a47;
	border-color: #ffe658;
}

.vpf-map__reset {
	border: 0;
	background: transparent;
	padding-inline: 0.2rem;
}

.vpf-map__suggestions {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
}

.vpf-map__suggestions li {
	padding: 0.35rem 0;
	cursor: pointer;
}

.vpf-map__legend {
	position: absolute;
	z-index: 500;
	right: 0.75rem;
	bottom: 3.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	list-style: none;
	margin: 0 !important;
	padding: 0.55rem 0.85rem 0.55rem 1.15rem !important;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	box-shadow: 0 8px 24px rgba(20, 24, 33, 0.12);
	font-size: 0.85rem;
	line-height: 1.35 !important;
}

.vpf-map__legend li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 !important;
	padding: 0.05rem 0 0.05rem 0.15rem !important;
	line-height: 1.35 !important;
}

.vpf-legend__pin {
	display: grid;
	place-items: center;
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: currentColor;
}

.vpf-legend__horse {
	display: block;
	width: 12px;
	height: 8px;
	background-color: #464a47;
	-webkit-mask: url("../image/vfp-pferd-maske.png") center / contain no-repeat;
	mask: url("../image/vfp-pferd-maske.png") center / contain no-repeat;
}

.vpf-legend__pin--oeffentlich {
	color: var(--vpf-oeffentlich);
}

.vpf-legend__pin--privat {
	color: var(--vpf-privat);
}

.vpf-legend__pin--online {
	color: var(--vpf-online);
}

.vpf-legend__pin--past {
	color: var(--vpf-past);
}

.vpf-map__attribution,
.vpf-map .leaflet-control-attribution {
	font-size: 11px;
	line-height: 1.35;
	background: rgba(255, 255, 255, 0.92);
}

.vpf-map .leaflet-bottom {
	z-index: 430;
}

.vpf-map__attribution {
	position: absolute;
	z-index: 430;
	right: 0.5rem;
	bottom: 0.25rem;
	margin: 0;
	padding: 0.1rem 0.3rem;
}

.vpf-map .marker-cluster-small,
.vpf-map .marker-cluster-medium,
.vpf-map .marker-cluster-large {
	background-color: rgba(255, 230, 88, 0.45);
}

.vpf-map .marker-cluster-small div,
.vpf-map .marker-cluster-medium div,
.vpf-map .marker-cluster-large div {
	background-color: #ffe658;
	color: #464a47;
	font-family: inherit;
}

.vpf-map .leaflet-container,
.vpf-map .leaflet-control-zoom-in,
.vpf-map .leaflet-control-zoom-out {
	font-family: inherit;
}

.leaflet-gl-layer {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
}

.leaflet-div-icon.vpf-pin {
	background: transparent;
	border: 0;
}

.vpf-pin__badge {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	background-color: currentColor;
	box-shadow: 0 2px 6px rgba(20, 24, 33, 0.28);
}

.vpf-pin__horse {
	display: block;
	width: 30px;
	height: 18px;
	background-color: #464a47;
	-webkit-mask: url("../image/vfp-pferd-maske.png") center / contain no-repeat;
	mask: url("../image/vfp-pferd-maske.png") center / contain no-repeat;
}

.vpf-pin__badge--oeffentlich {
	color: var(--vpf-oeffentlich);
}

.vpf-pin__badge--privat {
	color: var(--vpf-privat);
}

.vpf-pin__badge--online {
	color: var(--vpf-online);
}

.vpf-pin__badge--past {
	color: var(--vpf-past);
}

.vpf-map__panel {
	position: absolute;
	z-index: 700;
	top: 0.75rem;
	right: 3.25rem;
	width: min(22rem, calc(100% - 4.75rem));
	max-height: calc(100% - 4.75rem);
	overflow: auto;
	background: #fff;
	border: 1px solid #9aa198;
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(20, 24, 33, 0.28);
}

.vpf-map__panel[hidden] {
	display: none;
}

.vpf-detail {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	overflow-wrap: anywhere;
	padding: 0.9rem 1rem 0.85rem;
	background: #fff;
	color: #141821;
	border-radius: 7px;
	box-shadow: none;
	font-size: 1rem;
	line-height: 1.45;
}

.vpf-detail header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.vpf-detail__tools {
	display: flex;
	align-items: center;
	flex: none;
	gap: 0.45rem;
}

.vpf-detail h2 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.25;
	font-weight: 650;
}

.vpf-detail p {
	margin: 0;
	line-height: 1.45;
}

.vpf-detail img {
	display: block;
	max-width: 8rem;
	height: auto;
	border-radius: 8px;
}

.vpf-detail__facts {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.vpf-detail__when,
.vpf-detail__where,
.vpf-detail__who,
.vpf-detail__text {
	font-size: 1em;
}

.vpf-detail__when,
.vpf-detail__where,
.vpf-detail__who {
	color: #3d4450;
}

.vpf-detail__art {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
	color: #464a47;
}

.vpf-detail__art-dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--vpf-oeffentlich);
	flex: none;
}

.vpf-detail__art--privat .vpf-detail__art-dot {
	background: var(--vpf-privat);
}

.vpf-detail__art--online .vpf-detail__art-dot {
	background: var(--vpf-online);
}

.vpf-detail__close {
	flex: none;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: #fff8d4;
	color: inherit;
	font: inherit;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.vpf-detail__url {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.vpf-detail__url span {
	font-size: 0.95em;
	color: #3d4450;
}

.vpf-detail__url a {
	overflow-wrap: anywhere;
	color: #464a47;
	font-weight: 700;
}

.vpf-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.15rem;
	padding-top: 0.85rem;
	border-top: 1px solid #e6e9ef;
}

.vpf-detail__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0.3rem 0.6rem;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.vpf-detail__share-url {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	padding: 0.4rem 0.75rem;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.85rem;
}

.vpf-detail__action:hover,
.vpf-detail__close:hover {
	filter: brightness(0.96);
}

@container (max-width: 48rem) {
	.vpf-map__panel {
		position: absolute;
		top: auto;
		right: 0.75rem;
		bottom: 3.25rem;
		left: 0.75rem;
		width: auto;
		max-height: min(70%, 28rem);
		z-index: 700;
	}

	.vpf-detail__close {
		width: 2.75rem;
		height: 2.75rem;
	}
}

.vpf-map__toolbar,
.vpf-map__switch,
.vpf-map__filters {
	display: none;
}

.vpf-map .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.vpf-map :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 720px) {
	.vpf-map {
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		min-height: 20rem;
		height: 100vh;
		height: 100dvh;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
	}

	.vpf-map__layout {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		height: auto;
	}

	.vpf-map__stage {
		display: flex;
		flex-direction: column;
		order: -1;
		flex: 1;
		min-height: 0;
		height: auto;
		width: 100%;
	}

	.vpf-map__canvas {
		flex: 1;
		width: 100%;
		height: auto;
		min-height: 0;
		border-radius: 0;
	}

	.vpf-map__card {
		position: relative;
		top: auto;
		left: auto;
		order: -1;
		flex: none;
		width: auto;
		max-height: none;
		margin: 0.75rem 0.75rem 0;
		overflow: visible;
		z-index: 700;
	}

	.vpf-map__toolbar {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin-top: 0.75rem;
	}

	.vpf-map__filters,
	.vpf-map__switch {
		display: flex;
	}

	.vpf-map__filters {
		align-items: center;
		min-height: 2.75rem;
	}

	.vpf-map__switch {
		margin-left: auto;
	}

	.vpf-map__switch button {
		min-height: 2.75rem;
		border-radius: 0;
	}

	.vpf-map__switch button:first-child {
		border-radius: 5px 0 0 5px;
	}

	.vpf-map__switch button + button {
		margin-left: -1px !important;
		border-radius: 0 5px 5px 0;
	}

	.vpf-map__filters-panel {
		display: none;
		max-height: min(55dvh, 20rem);
		margin-top: 0.75rem;
		overflow: auto;
		overscroll-behavior: contain;
	}

	.vpf-map.is-filters-open .vpf-map__filters-panel {
		display: block;
	}

	.vpf-map__more label,
	.vpf-map__date-field {
		display: grid !important;
		grid-template-columns: 1fr;
		align-items: stretch;
		row-gap: 0.35rem;
		column-gap: 0;
	}

	.vpf-map__more .vpf-date {
		display: block;
		width: 100%;
		max-width: none;
	}

	.vpf-map__more .vpf-date input[type="text"] {
		width: 100%;
		margin: 0 !important;
		font-size: 1rem;
	}

	.vpf-map__search input {
		font-size: 1rem;
	}

	.vpf-map__card [data-vpf-geo] {
		width: 100%;
		min-height: 2.75rem;
	}

	.vpf-map__legend {
		left: 0.75rem;
		right: auto;
		bottom: 0.75rem;
		display: grid;
		flex-direction: unset;
		grid-template-columns: auto auto;
		column-gap: 0.65rem;
		row-gap: 0.2rem;
		max-width: calc(100% - 5.5rem);
		padding: 0.5rem 0.75rem 0.5rem 1rem !important;
	}

	.vpf-map__list {
		display: none;
		overscroll-behavior: contain;
	}

	.vpf-map.is-list .vpf-map__layout {
		height: 100%;
	}

	.vpf-map.is-list .vpf-map__stage {
		flex: 0 0 auto;
		height: auto;
		min-height: 0;
	}

	.vpf-map.is-list .vpf-map__canvas,
	.vpf-map.is-list .vpf-map__legend {
		display: none;
	}

	.vpf-map.is-list .vpf-map__card {
		margin: 0.5rem 0.75rem 0;
		padding: 0.65rem 0.75rem;
	}

	.vpf-map.is-list .vpf-map__list {
		display: block;
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		flex: 1 1 auto;
		min-height: 58dvh;
		max-height: none;
		overflow: auto;
		border-radius: 0;
		background: #fff;
		padding: 0.6rem 1rem 1rem;
		z-index: 1;
	}

	.vpf-map.is-list .vpf-map__note {
		display: none;
	}

	.vpf-map.is-list .vpf-map__panel {
		position: relative;
		inset: auto;
		width: auto;
		max-height: 14rem;
		margin: 0.5rem 0.75rem 0;
		overflow: auto;
		z-index: 2;
	}

	.vpf-map .leaflet-top,
	.vpf-map .leaflet-bottom {
		z-index: 450;
	}

	.vpf-map .leaflet-top.leaflet-right {
		top: auto;
		bottom: 2rem;
	}

	.vpf-map .leaflet-bar a {
		width: 44px;
		height: 44px;
		line-height: 44px;
	}
}

@media (pointer: coarse) {
	.vpf-chip,
	.vpf-map__reset,
	.vpf-map__switch button,
	.vpf-map__filters {
		min-height: 2.75rem;
	}

	.vpf-detail__close {
		width: 2.75rem;
		height: 2.75rem;
	}

	.vpf-map .leaflet-bar a {
		width: 44px;
		height: 44px;
		line-height: 44px;
	}

	.vpf-map__search input,
	.vpf-map__more input,
	.vpf-detail__share-url {
		font-size: 1rem;
	}
}
