/*
 * BCG Zigarren-Karte
 *
 * Schrift, Textfarbe und Akzentfarbe kommen vom Theme. Das Skript der Karte liest
 * Hintergrund, Text- und Akzentfarbe der Umgebung aus und setzt die Variablen
 * --bcg-surface, --bcg-text, --bcg-accent und --bcg-on-accent am Container.
 * Die Werte hier sind nur die Ausgangswerte bis dahin.
 */

.bcg-map,
.bcg-place,
.bcg-postbox {
	--bcg-accent: var(--bcg-accent-user, var(--ast-global-color-0, #7a4b22));
	--bcg-on-accent: #fff;
	--bcg-surface: #fff;
	--bcg-text: currentColor;
	--bcg-line: rgba(128, 128, 128, 0.32);
	--bcg-soft: rgba(128, 128, 128, 0.09);
	--bcg-muted: currentColor;
	--bcg-radius: 4px;
	--bcg-map-height: 560px;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.bcg-map,
	.bcg-place,
	.bcg-postbox {
		--bcg-line: color-mix(in srgb, currentColor 17%, transparent);
		--bcg-soft: color-mix(in srgb, currentColor 6%, transparent);
		--bcg-muted: color-mix(in srgb, currentColor 68%, transparent);
	}
}

.bcg-map {
	container-type: inline-size;
	margin-block: 1.5em;
	text-align: left;
}

.bcg-map *,
.bcg-map *::before,
.bcg-map *::after {
	box-sizing: border-box;
}

.bcg-map [hidden] {
	display: none !important;
}

/* Schaltflächen, die wie Text oder Listeneinträge aussehen sollen, vom Button-Stil des Themes lösen. */
.bcg-map .bcg-chip,
.bcg-map .bcg-item__btn,
.bcg-map .bcg-map__reset,
.bcg-map .bcg-map__revoke,
.bcg-map .bcg-locate__btn {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	text-decoration: none;
	min-height: 0;
	width: auto;
	cursor: pointer;
}

.bcg-map .bcg-chip:focus-visible,
.bcg-map .bcg-item__btn:focus-visible,
.bcg-map .bcg-map__reset:focus-visible,
.bcg-map .bcg-map__revoke:focus-visible,
.bcg-map .bcg-locate__btn:focus-visible,
.bcg-map .bcg-btn:focus-visible {
	outline: 2px solid var(--bcg-accent);
	outline-offset: 2px;
}

/* ----- Filterleiste ----- */

.bcg-map__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8em 1.5em;
	margin-bottom: 0.9em;
}

.bcg-map__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
}

.bcg-map .bcg-chip {
	padding: 0.42em 0.9em;
	border: 1px solid var(--bcg-line);
	border-radius: 99px;
	font-size: 0.92em;
	line-height: 1.3;
	white-space: nowrap;
}

.bcg-map .bcg-chip:hover {
	border-color: var(--bcg-accent);
	background: none;
	color: inherit;
}

.bcg-map .bcg-chip.is-active,
.bcg-map .bcg-chip.is-active:hover {
	border-color: var(--bcg-accent);
	background: var(--bcg-accent);
	color: var(--bcg-on-accent);
}

.bcg-chip__n {
	margin-left: 0.2em;
	font-size: 0.86em;
	opacity: 0.7;
}

.bcg-map__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em 1.2em;
}

.bcg-map .bcg-map__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	font-size: 0.92em;
	font-weight: inherit;
	cursor: pointer;
}

.bcg-map .bcg-map__toggle input {
	margin: 0;
	accent-color: var(--bcg-accent);
}

.bcg-map .bcg-map__search {
	width: 15em;
	max-width: 100%;
	margin: 0;
	font-size: 0.92em;
}

:where(.bcg-map) :where(.bcg-map__search) {
	padding: 0.45em 0.8em;
	border: 1px solid var(--bcg-line);
	border-radius: var(--bcg-radius);
	background: transparent;
	color: inherit;
	font-family: inherit;
}

/* ----- Liste und Karte ----- */

.bcg-map__body {
	display: grid;
	grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
	height: var(--bcg-map-height);
	border: 1px solid var(--bcg-line);
	border-radius: var(--bcg-radius);
	overflow: hidden;
}

.bcg-map--nolist .bcg-map__body {
	grid-template-columns: minmax(0, 1fr);
}

.bcg-map__list-wrap {
	position: relative;
	min-height: 0;
	overflow-y: auto;
	border-right: 1px solid var(--bcg-line);
}

.bcg-map .bcg-map__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bcg-map .bcg-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--bcg-line);
	list-style: none;
}

.bcg-map .bcg-item__btn {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: center;
	gap: 0.85em;
	width: 100%;
	padding: 0.8em 1em 0.8em calc(1em - 3px);
	border-left: 3px solid transparent;
	line-height: 1.35;
}

.bcg-map .bcg-item__btn:hover,
.bcg-map .bcg-item__btn:focus {
	background: var(--bcg-soft);
	color: inherit;
}

.bcg-map .bcg-item__btn:focus-visible {
	outline-offset: -2px;
}

.bcg-map .bcg-item.is-active .bcg-item__btn {
	border-left-color: var(--bcg-accent);
	background: var(--bcg-soft);
}

.bcg-map .bcg-item__img {
	display: block;
	width: 56px;
	height: 56px;
	max-width: none;
	border-radius: var(--bcg-radius);
	background: var(--bcg-soft);
	object-fit: cover;
}

.bcg-item__img--none {
	position: relative;
}

.bcg-item__img--none::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bcg-muted);
	opacity: 0.55;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath fill-rule='evenodd' d='M14 1.5C7.1 1.5 1.5 7.04 1.5 13.87 1.5 22.9 14 34.5 14 34.5s12.5-11.6 12.5-20.63C26.5 7.04 20.9 1.5 14 1.5zm0 7.9a4.4 4.4 0 110 8.8 4.4 4.4 0 010-8.8z'/%3E%3C/svg%3E") center / 18px 23px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath fill-rule='evenodd' d='M14 1.5C7.1 1.5 1.5 7.04 1.5 13.87 1.5 22.9 14 34.5 14 34.5s12.5-11.6 12.5-20.63C26.5 7.04 20.9 1.5 14 1.5zm0 7.9a4.4 4.4 0 110 8.8 4.4 4.4 0 010-8.8z'/%3E%3C/svg%3E") center / 18px 23px no-repeat;
}

.bcg-item__text {
	display: block;
	min-width: 0;
}

.bcg-item__title {
	display: block;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bcg-item__addr {
	display: block;
	margin-top: 0.15em;
	color: var(--bcg-muted);
	font-size: 0.86em;
}

.bcg-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0.6em;
	margin-top: 0.35em;
	color: var(--bcg-muted);
	font-size: 0.8em;
}

.bcg-item__reports {
	padding: 0.05em 0.6em;
	border-radius: 99px;
	background: var(--bcg-accent);
	color: var(--bcg-on-accent);
	font-weight: 600;
}

.bcg-map .bcg-map__more {
	display: none;
	appearance: none;
	width: 100%;
	margin: 0;
	padding: 0.95em 1em;
	border: 0;
	border-radius: 0;
	background: var(--bcg-soft);
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	cursor: pointer;
}

.bcg-map .bcg-map__more:hover,
.bcg-map .bcg-map__more:focus {
	background: var(--bcg-soft);
	color: var(--bcg-accent);
}

.bcg-map .bcg-map__more:focus-visible {
	outline: 2px solid var(--bcg-accent);
	outline-offset: -2px;
}

.bcg-map .bcg-map__none {
	margin: 0;
	padding: 1.2em 1em;
	color: var(--bcg-muted);
	font-size: 0.92em;
}

.bcg-map .bcg-map__reset,
.bcg-map .bcg-map__revoke {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.bcg-map .bcg-map__reset:hover,
.bcg-map .bcg-map__revoke:hover {
	background: none;
	color: var(--bcg-accent);
}

.bcg-map__canvas-wrap {
	position: relative;
	min-width: 0;
	min-height: 0;
	background: var(--bcg-soft);
}

.bcg-map__canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
}

/* Hinweis auf Handys und Tablets, wenn jemand die Karte mit einem Finger verschieben will. */
.bcg-map__gesture {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.05em;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.bcg-map__gesture.is-visible {
	opacity: 1;
}

/* ----- Hinweis vor dem Laden der Karte ----- */

.bcg-map__consent {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.2em;
	background-image:
		linear-gradient(var(--bcg-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--bcg-line) 1px, transparent 1px);
	background-size: 64px 64px;
	background-position: center;
}

.bcg-map__consent-inner {
	max-width: 30em;
	padding: 1.4em 1.6em;
	border: 1px solid var(--bcg-line);
	border-radius: var(--bcg-radius);
	background: var(--bcg-surface);
	text-align: center;
}

.bcg-map .bcg-map__consent-inner p {
	margin: 0 0 1.1em;
	font-size: 0.92em;
	line-height: 1.5;
}

.bcg-map .bcg-btn,
.bcg-place a.bcg-btn {
	display: inline-block;
	padding: 0.7em 1.5em;
	border: 0;
	border-radius: var(--bcg-radius);
	background: var(--bcg-accent);
	color: var(--bcg-on-accent);
	font-family: inherit;
	font-size: inherit;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.bcg-map .bcg-btn:hover,
.bcg-place a.bcg-btn:hover {
	background: var(--bcg-accent);
	color: var(--bcg-on-accent);
	filter: brightness(0.92);
}

/* ----- Leaflet an das Theme anpassen ----- */

.bcg-map .leaflet-container {
	background: var(--bcg-surface);
	color: var(--bcg-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.45;
}

.bcg-map[data-tiles="dezent"] .leaflet-tile-pane {
	filter: grayscale(0.9) contrast(0.92) brightness(1.04);
}

.bcg-map[data-tiles="sepia"] .leaflet-tile-pane {
	filter: grayscale(1) sepia(0.45) contrast(0.93) brightness(1.02);
}

.bcg-map[data-tiles="dunkel"] .leaflet-tile-pane {
	filter: invert(1) hue-rotate(180deg) grayscale(0.55) brightness(0.92) contrast(0.88);
}

.bcg-map[data-tiles="dunkel"] .leaflet-container {
	background: #1c1c1c;
}

.bcg-map .leaflet-bar {
	border: 1px solid var(--bcg-line);
	border-radius: var(--bcg-radius);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.bcg-map .leaflet-bar a,
.bcg-map .leaflet-bar a:hover,
.bcg-map .leaflet-bar a:focus,
.bcg-map .bcg-locate__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-bottom: 1px solid var(--bcg-line);
	border-radius: 0;
	background: var(--bcg-surface);
	color: var(--bcg-text);
	font: 400 20px/1 Arial, Helvetica, sans-serif;
	text-decoration: none;
}

.bcg-map .leaflet-bar a:last-child,
.bcg-map .bcg-locate__btn {
	border-bottom: 0;
}

.bcg-map .leaflet-bar a.leaflet-disabled {
	opacity: 0.45;
}

.bcg-map .leaflet-control-attribution {
	background: var(--bcg-surface);
	color: var(--bcg-text);
	font-size: 11px;
	opacity: 0.88;
}

.bcg-map .leaflet-control-attribution a {
	color: inherit;
	text-decoration: underline;
}

/* ----- Marker ----- */

.bcg-pin-wrap,
.bcg-cluster-wrap {
	border: 0;
	background: none;
}

.bcg-pin {
	display: block;
	width: 28px;
	height: 36px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
	transform-origin: 50% 100%;
	transition: transform 0.15s ease-out;
}

.bcg-pin svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.bcg-pin__body {
	fill: var(--bcg-surface);
	stroke: var(--bcg-accent);
	stroke-width: 2.6;
}

.bcg-pin__dot {
	fill: var(--bcg-accent);
}

.bcg-pin--lit .bcg-pin__body,
.bcg-legend-pin--lit .bcg-pin__body {
	fill: var(--bcg-accent);
	stroke: var(--bcg-surface);
	stroke-width: 1.6;
}

.bcg-pin--lit .bcg-pin__dot,
.bcg-legend-pin--lit .bcg-pin__dot {
	fill: var(--bcg-on-accent);
}

.bcg-pin.is-active {
	transform: scale(1.28);
}

.leaflet-marker-icon:focus-visible .bcg-pin {
	transform: scale(1.28);
}

.bcg-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 2.5px solid var(--bcg-accent);
	border-radius: 50%;
	background: var(--bcg-surface);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	color: var(--bcg-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.bcg-me {
	fill: #1a73e8;
	fill-opacity: 1;
	stroke: #fff;
	stroke-width: 3;
}

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

.bcg-map .bcg-popup .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: var(--bcg-radius);
	background: var(--bcg-surface);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
	color: var(--bcg-text);
	overflow: hidden;
}

.bcg-map .bcg-popup .leaflet-popup-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.bcg-map .bcg-popup .leaflet-popup-tip {
	background: var(--bcg-surface);
	box-shadow: none;
}

.bcg-map .bcg-popup a.leaflet-popup-close-button {
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bcg-surface);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	color: var(--bcg-text);
	font: 400 20px/27px Arial, Helvetica, sans-serif;
	text-align: center;
	text-decoration: none;
}

.bcg-map .bcg-pop__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 112px;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.bcg-map .bcg-popup--compact .bcg-pop__img {
	height: 76px;
}

.bcg-map .bcg-popup .leaflet-popup-scrolled {
	border: 0;
}

.bcg-pop__body {
	padding: 14px 16px 16px;
}

.bcg-map .bcg-pop__cats {
	margin: 0 0 2px;
	color: var(--bcg-muted);
	font-size: 12px;
}

.bcg-map .bcg-pop__title {
	margin: 0 0 4px;
	padding: 0 30px 0 0;
	color: var(--bcg-text);
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.bcg-map .bcg-pop__img + .bcg-pop__body .bcg-pop__title {
	padding-right: 0;
}

.bcg-map .bcg-pop__addr {
	margin: 0;
}

.bcg-map .bcg-pop__smoking {
	margin: 6px 0 0;
	color: var(--bcg-muted);
	font-size: 12.5px;
}

.bcg-map .bcg-pop__text {
	margin: 10px 0 0;
}

.bcg-map .bcg-pop__sub {
	margin: 14px 0 0;
	color: var(--bcg-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.bcg-map .bcg-pop__posts {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.bcg-map .bcg-pop__posts li {
	margin: 0;
	padding: 7px 0;
	border-top: 1px solid var(--bcg-line);
	list-style: none;
}

.bcg-map .bcg-pop a {
	color: var(--bcg-text);
	text-decoration: underline;
	text-decoration-color: var(--bcg-accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}

.bcg-map .bcg-pop__posts a {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.bcg-pop__date {
	display: block;
	margin-top: 1px;
	color: var(--bcg-muted);
	font-size: 12px;
}

.bcg-map .bcg-pop__actions {
	position: sticky;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 14px -16px -16px;
	padding: 11px 16px 13px;
	border-top: 1px solid var(--bcg-line);
	background: var(--bcg-surface);
}

.bcg-map .bcg-pop a.bcg-pop__route {
	padding: 6px 12px;
	border-radius: var(--bcg-radius);
	background: var(--bcg-accent);
	color: var(--bcg-on-accent);
	font-weight: 600;
	text-decoration: none;
}

/* ----- Fußzeile ----- */

.bcg-map__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 1.5em;
	margin-top: 0.7em;
	color: var(--bcg-muted);
	font-size: 0.86em;
}

.bcg-map .bcg-map__legend,
.bcg-map .bcg-map__status {
	margin: 0;
}

.bcg-map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.3em;
}

.bcg-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.bcg-legend-pin {
	flex: none;
	width: 13px;
	height: 17px;
	overflow: visible;
}

.bcg-map .bcg-map__revoke {
	margin-left: auto;
	font-size: inherit;
}

.bcg-map-empty {
	padding: 1em 1.2em;
	border: 1px dashed rgba(128, 128, 128, 0.5);
}

/* ----- Schmale Bereiche: Karte oben, Liste darunter ----- */

@media (max-width: 781px) {
	.bcg-map__body {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.bcg-map__canvas-wrap {
		order: -1;
		height: min(62vh, 440px, var(--bcg-map-height));
	}

	.bcg-map--nolist .bcg-map__canvas-wrap {
		height: min(75vh, var(--bcg-map-height));
	}

	/* Liste läuft mit der Seite mit (kein eigener Scrollbereich, in dem man hängen bleibt). */
	.bcg-map__list-wrap {
		overflow: visible;
		border-top: 1px solid var(--bcg-line);
		border-right: 0;
	}

	.bcg-map:not(.bcg-map--expanded) .bcg-item.is-extra {
		display: none;
	}

	.bcg-map .bcg-map__more {
		display: block;
	}

	.bcg-map__body {
		overflow: visible;
	}

	.bcg-map__canvas-wrap {
		border-radius: var(--bcg-radius) var(--bcg-radius) 0 0;
		overflow: hidden;
	}

	.bcg-map--single .bcg-map__canvas-wrap {
		height: min(50vh, var(--bcg-map-height));
	}

	.bcg-map__tools,
	.bcg-map .bcg-map__search {
		width: 100%;
	}

	.bcg-map .bcg-map__revoke {
		margin-left: 0;
	}
}

@container (max-width: 700px) {
	.bcg-map__body {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.bcg-map__canvas-wrap {
		order: -1;
		height: min(62vh, 440px, var(--bcg-map-height));
	}

	.bcg-map--nolist .bcg-map__canvas-wrap {
		height: min(75vh, var(--bcg-map-height));
	}

	/* Liste läuft mit der Seite mit (kein eigener Scrollbereich, in dem man hängen bleibt). */
	.bcg-map__list-wrap {
		overflow: visible;
		border-top: 1px solid var(--bcg-line);
		border-right: 0;
	}

	.bcg-map:not(.bcg-map--expanded) .bcg-item.is-extra {
		display: none;
	}

	.bcg-map .bcg-map__more {
		display: block;
	}

	.bcg-map__body {
		overflow: visible;
	}

	.bcg-map__canvas-wrap {
		border-radius: var(--bcg-radius) var(--bcg-radius) 0 0;
		overflow: hidden;
	}

	.bcg-map--single .bcg-map__canvas-wrap {
		height: min(50vh, var(--bcg-map-height));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcg-pin {
		transition: none;
	}
}

/* ----- Detailseite eines Ortes ----- */

.bcg-place {
	margin-top: 2em;
}

.bcg-place__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 2em;
	margin: 0 0 1.5em;
	padding: 0;
	border-top: 1px solid var(--bcg-line);
}

.bcg-place__facts > div {
	padding: 0.75em 0;
	border-bottom: 1px solid var(--bcg-line);
}

.bcg-place__facts dt {
	margin: 0;
	color: var(--bcg-muted);
	font-size: 0.82em;
	font-weight: inherit;
}

.bcg-place__facts dd {
	margin: 0;
}

.bcg-place__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em 1.5em;
	margin: 0 0 1.5em;
}

.bcg-place__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 2em 0;
}

.bcg-place__gallery a {
	display: block;
	overflow: hidden;
	border-radius: var(--bcg-radius);
	aspect-ratio: 4 / 3;
}

.bcg-place__gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bcg-place__heading {
	margin: 2em 0 0.6em;
}

.bcg-place__posts {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bcg-line);
	list-style: none;
}

.bcg-place__posts li {
	margin: 0;
	border-bottom: 1px solid var(--bcg-line);
	list-style: none;
}

.bcg-place__posts a {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 0.8em 0;
	text-decoration: none;
}

.bcg-place__posts img {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: var(--bcg-radius);
	object-fit: cover;
}

.bcg-place__post-title {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.bcg-place__posts time {
	display: block;
	margin-top: 0.2em;
	color: var(--bcg-muted);
	font-size: 0.85em;
}

/* ----- Orts-Box unter Blogbeiträgen ----- */

.bcg-postbox {
	margin: 2.5em 0 1em;
	padding-top: 1.4em;
	border-top: 1px solid var(--bcg-line);
}

.bcg-postbox .bcg-postbox__heading {
	margin: 0 0 0.8em;
	font-size: 1.2em;
}

.bcg-postbox__item {
	padding: 0.9em 0;
	border-top: 1px solid var(--bcg-line);
}

.bcg-postbox__item:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.bcg-postbox .bcg-postbox__name {
	margin: 0;
	font-weight: 700;
}

.bcg-postbox .bcg-postbox__addr,
.bcg-postbox .bcg-postbox__note {
	margin: 0.1em 0 0;
}

.bcg-postbox .bcg-postbox__note {
	color: var(--bcg-muted);
	font-size: 0.9em;
}

.bcg-postbox .bcg-postbox__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.4em;
	margin: 0.5em 0 0;
}

/* ----- Seitenkopf der Kartenseite -----
 *
 * Maße nach den vorhandenen Seitenköpfen der Webseite (z. B. „Über uns“),
 * gemessen bei 1488 px Fensterbreite: Titel 55 px, Unterzeile 20 px mit 14 px
 * Abstand, Titel beginnt 221 px unter dem Seitenanfang (die Kopfzeile liegt
 * darüber), 150 px Abstand nach unten. Ab 1200 px Breite gelten diese Werte,
 * auf schmaleren Bildschirmen schrumpfen sie fließend mit.
 */

.bcg-hero {
	--bcg-hero-header: 0px;
	--bcg-hero-top: clamp(48px, 8vw, 100px);
	position: relative;
	box-sizing: border-box;
	max-width: none !important;
	padding: max(var(--bcg-hero-top), calc(var(--bcg-hero-header) + 40px)) 20px clamp(60px, 16.7px + 11.11vw, 150px);
	background-position: center;
	background-size: cover;
	text-align: center;
}

/* Kopfzeile liegt über dem Inhalt (transparente Kopfzeile): Platz dafür mit einrechnen. */
.bcg-hero--under-header,
.ast-theme-transparent-header .bcg-hero:not([data-fit]) {
	--bcg-hero-top: clamp(128px, 83.2px + 11.48vw, 221px);
}

.bcg-hero__inner {
	position: relative;
	max-width: 920px;
	margin: 0 auto;
}

.bcg-hero .bcg-hero__title {
	margin: 0;
	padding: 0;
	font-size: clamp(30px, 18px + 3.09vw, 55px);
	line-height: 1.3;
	text-align: center;
}

.bcg-hero .bcg-hero__sub {
	margin: clamp(10px, 8.1px + 0.49vw, 14px) 0 0;
	padding: 0;
	font-size: clamp(16px, 14.1px + 0.49vw, 20px);
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
}

/* Mit Hintergrundbild: Band über die volle Breite, Bild abgedunkelt, helle Schrift. */
.bcg-hero--image {
	background-repeat: no-repeat;
}

.bcg-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bcg-hero-overlay, rgb(10, 8, 4));
	opacity: var(--bcg-hero-dim, 0.6);
}

/* Eigenes Bild mit dunkler Abdunklung: helle Schrift. Übernommene Köpfe behalten die Schriftfarbe der Seite. */
.bcg-hero--light-text,
.bcg-hero--light-text .bcg-hero__title {
	color: #fff;
}

/* Der Seitenkopf ersetzt den Standardtitel des Themes. */
body.bcg-has-hero .entry-header,
body.bcg-has-hero .ast-single-entry-banner,
body.bcg-has-hero .wp-block-post-title {
	display: none;
}

/* Astra mit transparenter Kopfzeile: oberen Abstand des Inhalts entfernen, der Kopf beginnt ganz oben. */
body.bcg-has-hero.ast-theme-transparent-header.ast-plain-container #primary {
	margin-top: 0;
}

/* ----- Region-Schalter (Berlin & Umland / Ganz Deutschland) ----- */

.bcg-map .bcg-map__areas {
	flex-wrap: nowrap;
}

/* Bewertung der Mitglieder im Fenster eines Ortes (ab 1.8.0, mit dem Plugin „BCG Mitglieder“) */
.bcg-pop__rating { margin: 0 0 6px; color: var(--bcg-accent, var(--ast-global-color-0, #b8862f)); font-weight: 600; }

/* Gemerkte Orte der Mitglieder: Stern an der Nadel und in der Liste (ab 1.10.0, mit dem Plugin „BCG Mitglieder“) */
.bcg-pin { position: relative; }
.bcg-pin__star { position: absolute; top: -9px; right: -10px; width: 19px; height: 19px; border-radius: 50%; background: var(--bcg-accent, #b8862f); color: var(--bcg-on-accent, #fff); border: 1.5px solid var(--bcg-surface, #fff); font: 700 11px/16px system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: center; }
[dir="rtl"] .bcg-pin__star { right: auto; left: -10px; }
.bcg-item--fav .bcg-item__title::before { content: '\2605\00a0'; color: var(--bcg-accent, #b8862f); }

/* ----- Regionen (ab 1.11.0): Orte außerhalb der gewählten Region werden erst bei Bedarf nachgeladen ----- */

.bcg-map.is-fetching .bcg-map__areas .bcg-chip.is-active {
	opacity: 0.65;
	cursor: progress;
}

.bcg-map.is-fetching .bcg-map__status::after {
	content: '';
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-inline-start: 0.5em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -0.1em;
	animation: bcg-dreh 0.8s linear infinite;
}

@keyframes bcg-dreh {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcg-map.is-fetching .bcg-map__status::after {
		animation: none;
	}
}

/* Verweis auf den Eintrag bei der Quelle („Eintrag bei …“) */
.bcg-map .bcg-pop a.bcg-pop__src {
	color: var(--bcg-muted);
	font-size: 12px;
}

@media (max-width: 782px) {
	.bcg-map .bcg-map__areas {
		flex-wrap: wrap;
	}
}
