/* ==========================================================================
   Be Part of Berlin – Immobilien
   Farben aus theme.json (mit Fallbacks, falls ein anderes Theme aktiv ist).
   ========================================================================== */
:root {
	--bpob-primary: var(--wp--preset--color--primary, #4d7070);
	--bpob-primary-dark: var(--wp--preset--color--primary-dark, #2d4242);
	--bpob-dark: var(--wp--preset--color--dark, #273839);
	--bpob-text: var(--wp--preset--color--body-text, #737373);
	--bpob-heading: var(--wp--preset--color--heading, #272530);
	--bpob-light: var(--wp--preset--color--light, #f7f7f7);
	--bpob-border: #e4e4e4;
	--bpob-radius: 3px;
}

.bpob-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

.bpob-button,
.bpob-search__submit,
.bpob-map__accept {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--bpob-radius);
	background: var(--bpob-primary);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s;
}
.bpob-button:hover,
.bpob-button:focus-visible,
.bpob-map__accept:hover { background: var(--bpob-primary-dark); color: #fff; }

/* --------------------------------------------------------------------------
   Suche
   -------------------------------------------------------------------------- */
.bpob-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: var(--bpob-radius);
	background: var(--bpob-primary);
	font-size: 13px;
	color: var(--bpob-heading);
}
.bpob-search-wrap--bar { position: relative; z-index: 5; max-width: 1140px; margin-inline: auto; }
.bpob-search-wrap--bar .bpob-search { box-shadow: 0 6px 24px rgb(0 0 0 / .15); }

.bpob-search__field { position: relative; display: flex; align-items: center; flex: 1 1 130px; min-width: 0; margin: 0; }
.bpob-search__field > .bpob-icon { position: absolute; left: 8px; color: var(--bpob-primary); pointer-events: none; z-index: 1; }
.bpob-search__field select { padding-left: 32px; }

.bpob-search__control {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 34px;
	padding: 0 28px 0 10px;
	border: 0;
	border-radius: var(--bpob-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23737373' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 6px center / 16px;
	color: var(--bpob-heading);
	font: inherit;
	appearance: none;
	cursor: pointer;
}
summary.bpob-search__control { list-style: none; background-image: none; position: relative; }
summary.bpob-search__control::-webkit-details-marker { display: none; }
summary.bpob-search__control .bpob-icon:first-child { color: var(--bpob-primary); }
.bpob-search__chevron { position: absolute; right: 6px; width: 16px; height: 16px; color: var(--bpob-text); }

.bpob-search__range { position: relative; flex: 1 1 110px; min-width: 0; }
.bpob-search__range.is-active summary { box-shadow: inset 0 -3px 0 var(--bpob-primary-dark); }
.bpob-search__popover {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	display: grid;
	gap: 8px;
	width: max(100%, 190px);
	padding: 12px;
	border-radius: var(--bpob-radius);
	background: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / .18);
}
.bpob-search__popover label { display: grid; grid-template-columns: 2.5em 1fr; align-items: center; gap: 8px; margin: 0; }
.bpob-search__popover input { width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--bpob-border); border-radius: var(--bpob-radius); font: inherit; }

.bpob-search__marketing { display: grid; gap: 2px; margin: 0; padding: 0 6px; border: 0; color: #fff; font-size: 12px; }
.bpob-search__marketing label { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.bpob-search__marketing input { width: 14px; height: 14px; margin: 0; accent-color: #fff; }

.bpob-search__submit { flex: 0 0 auto; height: 34px; padding: 0 22px; background: var(--bpob-dark); }
.bpob-search__submit:hover { background: #000; }
.bpob-search__reset { border: 0; background: none; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.bpob-search__reset:hover { text-decoration: underline; }

/* Panel-Variante (Übersichtsseite): 3-spaltiges Raster */
.bpob-search--panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; padding: 14px; }
.bpob-search--panel .bpob-search__marketing { grid-auto-flow: column; justify-content: start; gap: 18px; }
.bpob-search--panel .bpob-search__reset { justify-self: end; }
.bpob-search--panel .bpob-search__submit { width: 100%; }

@media (max-width: 900px) {
	.bpob-search--bar { display: grid; grid-template-columns: 1fr 1fr; }
	.bpob-search--bar .bpob-search__submit { grid-column: 1 / -1; }
	.bpob-search--panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.bpob-search--bar, .bpob-search--panel { grid-template-columns: 1fr; }
	.bpob-search--panel .bpob-search__reset { justify-self: start; }
}

/* --------------------------------------------------------------------------
   Übersicht mit Karte
   -------------------------------------------------------------------------- */
/* Wie Altsystem: Karte und Liste füllen den Viewport unter dem Header, die Liste scrollt intern. */
.bpob-archive { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: calc(100vh - var(--bpob-header-height, 0px)); min-height: 480px; }
.bpob-archive__map { position: relative; min-height: 0; background: #0b1316; }
/* iframemanager setzt div[data-service] auf all:unset + inline-block + 16:9 (::before) – volle Höhe erzwingen. */
#bpob-map.bpob-map { display: block; width: 100%; height: 100%; min-width: 0; }
#bpob-map.bpob-map::before { display: none; }
.bpob-archive__list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bpob-archive__toggle { display: none; }
.bpob-map__consent {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 14px;
	height: 100%;
	padding: 24px;
	color: #fff;
	font-size: 13px;
	text-align: center;
}
.bpob-map__consent p { max-width: 340px; margin: 0; }
.bpob-map__consent a { color: #8fd3ff; }
.bpob-map__accept { background: #0a6ae0; }
.bpob-map__accept:hover { background: #0857b8; }
.bpob-map__notice { display: grid; place-content: center; height: 100%; margin: 0; color: #fff; }
.bpob-map__revoke { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 8px; border: 0; border-radius: 2px; background: rgb(255 255 255 / .9); font-size: 11px; cursor: pointer; }
.bpob-map-info a { display: block; max-width: 220px; color: var(--bpob-heading); font-weight: 700; text-decoration: none; }
.bpob-map-info p { margin: 4px 0 0; font-size: 12px; }

.bpob-archive__list { padding: 24px clamp(16px, 2.5vw, 36px) 48px; }
.bpob-archive__title { margin: 0 0 18px; color: var(--bpob-heading); font-size: 38px; font-weight: 400; line-height: 1.2; text-align: center; }
.bpob-archive__count { margin: 18px 0 0; font-size: 13px; }
.bpob-archive__empty { margin: 24px 0 0; padding: 16px; background: var(--bpob-light); }
.bpob-archive__items { display: grid; }

.bpob-card--row { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--bpob-border); }
.bpob-card--row[hidden] { display: none; }
.bpob-card--row .bpob-card__media { position: relative; display: block; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bpob-light); }
.bpob-card--row .bpob-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bpob-card--row:hover .bpob-card__media img { transform: scale(1.04); }
.bpob-card__badge { position: absolute; inset: auto 0 0; padding: 6px 10px; background: rgb(0 0 0 / .45); color: #fff; font-size: 12px; }
.bpob-card__badge strong { font-weight: 400; margin-left: 6px; }
.bpob-card--row .bpob-card__title { margin: 0 0 12px; font-size: 21px; font-weight: 400; line-height: 1.3; text-transform: uppercase; }
.bpob-card--row .bpob-card__title a { color: var(--bpob-heading); text-decoration: none; }
.bpob-card--row .bpob-card__title a:hover { color: var(--bpob-primary); }
.bpob-card__address { display: flex; gap: 8px; margin: 0 0 14px; font-size: 15px; }
.bpob-card__address .bpob-icon { color: var(--bpob-primary); margin-top: 2px; }
.bpob-card__facts { display: grid; gap: 2px; margin: 0 0 18px; font-size: 13px; color: var(--bpob-heading); }
.bpob-card__facts div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.bpob-card__facts dt, .bpob-card__facts dd { margin: 0; }

@media (max-width: 1100px) {
	.bpob-card--row { grid-template-columns: 1fr; gap: 16px; }
}
/* Mobil (wie Altsystem < 991 px): entweder Karte oder Liste, fixierter Umschalt-Button. */
@media (max-width: 990px) {
	.bpob-archive { grid-template-columns: 1fr; }
	.bpob-archive[data-view="map"] .bpob-archive__list,
	.bpob-archive[data-view="list"] .bpob-archive__map { display: none; }
	.bpob-archive__toggle {
		position: fixed; left: 50%; bottom: 2rem; z-index: 99;
		display: block; width: max-content; padding: 1rem 1.5rem;
		border: 1px solid #fff; border-radius: 5px; background: #4d7070; color: #fff;
		font: inherit; font-size: 16px; line-height: 1.2; cursor: pointer; transform: translateX(-50%);
	}
	.bpob-archive__toggle:hover, .bpob-archive__toggle:focus-visible { background: var(--bpob-primary-dark, #2d4242); }
}

/* --------------------------------------------------------------------------
   Slider (allgemein)
   -------------------------------------------------------------------------- */
.bpob-slider { --per-view: 3; --gap: 20px; position: relative; }
.bpob-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bpob-slider__track::-webkit-scrollbar { display: none; }
.bpob-slider__track:focus-visible { outline: 2px solid var(--bpob-primary); outline-offset: 4px; }
.bpob-slider__slide { scroll-snap-align: start; min-width: 0; margin: 0; }
.bpob-slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.bpob-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9c9c9; cursor: pointer; }
.bpob-slider__dots button[aria-current="true"] { background: var(--bpob-heading); }
.bpob-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bpob-heading);
	border-radius: 50%;
	background: rgb(255 255 255 / .85);
	color: var(--bpob-heading);
	cursor: pointer;
	transform: translateY(-50%);
}
.bpob-slider__arrow:hover { background: #fff; }
.bpob-slider__arrow--prev { left: -64px; }
.bpob-slider__arrow--next { right: -64px; }
@media (max-width: 1280px) {
	.bpob-slider__arrow--prev { left: 8px; }
	.bpob-slider__arrow--next { right: 8px; }
}
@media (max-width: 900px) { .bpob-slider { --per-view: 2; } }
@media (max-width: 600px) { .bpob-slider { --per-view: 1.15; } }

/* Karten im Slider */
.bpob-card--tile { display: flex; }
.bpob-card--tile .bpob-card__link { display: flex; flex-direction: column; width: 100%; background: var(--bpob-light); color: var(--bpob-text); text-decoration: none; }
.bpob-card--tile .bpob-card__media { display: block; aspect-ratio: 16 / 12; overflow: hidden; }
.bpob-card--tile .bpob-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bpob-card--tile:hover .bpob-card__media img { transform: scale(1.04); }
.bpob-card--tile .bpob-card__body { display: grid; flex: 1; align-content: start; gap: 10px; padding: 22px 24px; text-align: center; }
.bpob-card--tile .bpob-card__title { color: var(--bpob-heading); font-size: 15px; line-height: 1.35; text-transform: uppercase; }
.bpob-card--tile .bpob-card__address { justify-content: center; margin: 0; font-size: 13px; }
.bpob-card--tile .bpob-card__price { color: var(--bpob-heading); font-size: 18px; }
.bpob-card__meta { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 8px; background: var(--bpob-primary); color: #fff; font-size: 11px; text-align: center; }
.bpob-card__meta > span { display: grid; justify-items: center; gap: 6px; }
.bpob-card__meta .bpob-icon { width: 26px; height: 26px; }

/* Team-Slider (Kontaktseite) */
.bpob-slider--team { --gap: 0px; max-width: 1040px; margin-inline: auto; }
.bpob-team-card { display: flex; flex-direction: column; background: var(--bpob-dark); }
.bpob-team-card img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: top; background: #e7e5e5; }
.bpob-team-card figcaption { display: grid; gap: 4px; padding: 18px 20px 22px; color: #fff; font-size: 13px; }
.bpob-team-card strong { font-size: 17px; }
.bpob-team-card__role { margin-bottom: 10px; color: #b8cc6c; font-size: 15px; }
.bpob-team-card a { color: #8ec7c7; text-decoration: none; }
.bpob-team-card a[href^="tel"] { color: #fff; }

/* --------------------------------------------------------------------------
   Detailseite
   -------------------------------------------------------------------------- */
.bpob-details { max-width: 1040px; margin: 0 auto; padding: 60px 0 40px; }
.bpob-details__title { margin: 0 0 24px; color: var(--bpob-heading); font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.45; text-transform: uppercase; }
.bpob-details__summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.bpob-details__address { display: flex; gap: 8px; margin: 0; font-size: 16px; }
.bpob-details__address .bpob-icon { color: var(--bpob-primary); }
.bpob-details__price { margin: 2px 0 0; color: var(--bpob-heading); font-size: 22px; }
.bpob-details__price small { font-size: 14px; color: var(--bpob-text); }
.bpob-details__meta { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.bpob-details__meta li { display: grid; justify-items: center; gap: 8px; }
.bpob-details__meta .bpob-icon { width: 30px; height: 30px; color: var(--bpob-heading); }

.bpob-gallery { margin-bottom: 40px; }
.bpob-gallery__main { --per-view: 1; --gap: 0px; border: 1px solid var(--bpob-border); background: #fff; }
.bpob-gallery__main .bpob-slider__slide { display: grid; place-items: center; aspect-ratio: 3 / 2; background: #fff; }
.bpob-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.bpob-gallery__main .bpob-slider__arrow--prev { left: 12px; }
.bpob-gallery__main .bpob-slider__arrow--next { right: 12px; }
.bpob-gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.bpob-gallery__thumb { padding: 0; border: 0; background: none; opacity: .55; cursor: pointer; transition: opacity .2s; }
.bpob-gallery__thumb.is-active, .bpob-gallery__thumb:hover { opacity: 1; }
.bpob-gallery__thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }

.bpob-details__texts { max-width: 800px; }
.bpob-details__section { margin-bottom: 44px; font-size: 15px; line-height: 1.75; }
.bpob-details__heading { margin: 0 0 26px; color: var(--bpob-heading); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.bpob-details__heading::after { content: ""; display: block; width: 50px; height: 3px; margin-top: 8px; background: var(--bpob-primary); }
.bpob-details__address-list { margin: 0; }
.bpob-details__address-list div { display: flex; gap: 6px; }
.bpob-details__address-list dt { color: var(--bpob-heading); font-weight: 700; }
.bpob-details__address-list dd { margin: 0; }

.bpob-tabs { margin: 20px 0 70px; border: 1px solid #ddd; }
.bpob-tabs__list { display: flex; flex-wrap: wrap; background: #e7e7e7; }
.bpob-tabs__list button { padding: 18px 20px; border: 0; background: none; color: var(--bpob-heading); font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.bpob-tabs__list button[aria-selected="true"] { background: var(--bpob-primary); color: #fff; }
.bpob-tabs__list button:focus-visible { outline: 2px solid var(--bpob-dark); outline-offset: -4px; }
.bpob-tabs__panel { padding: 16px 20px 28px; }
.bpob-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.bpob-facts { width: 100%; border-collapse: collapse; font-size: 12px; }
.bpob-facts th, .bpob-facts td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.bpob-facts th { width: 50%; color: var(--bpob-heading); font-weight: 700; }
.bpob-facts td { color: var(--bpob-primary); font-weight: 700; }

.bpob-agent__inner { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.bpob-agent__photo img, .bpob-agent__placeholder { display: block; width: 100%; aspect-ratio: 5 / 4; height: auto; object-fit: cover; background: #d9dcdf; }
.bpob-agent__placeholder { background: #d9dcdf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='4' fill='%23adb3b9'/%3E%3Cpath d='M4 22a8 8 0 0 1 16 0' fill='%23adb3b9'/%3E%3C/svg%3E") no-repeat center 80% / 70%; }
.bpob-agent__info p { margin: 0; }
.bpob-agent__name { color: #000; font-size: 20px; font-weight: 700; }
.bpob-agent__company { margin: 6px 0 8px !important; color: var(--bpob-primary); font-weight: 700; }
.bpob-agent__line { font-size: 13px; }
.bpob-agent__line a { color: inherit; text-decoration: none; }
.bpob-agent__bio { margin-top: 14px; font-size: 15px; line-height: 1.75; }

@media (max-width: 781px) {
	.bpob-details { padding-top: 36px; }
	.bpob-facts-grid { grid-template-columns: 1fr; }
	.bpob-agent__inner { grid-template-columns: 1fr; }
	.bpob-agent__photo { max-width: 220px; }
	.bpob-gallery__thumbs { grid-auto-columns: calc((100% - 20px) / 3); }
}

/* Suchleiste: Kaufen/Mieten nicht abschneiden */
.bpob-search--bar .bpob-search__marketing { flex: 0 0 auto; white-space: nowrap; }
.bpob-search--bar .bpob-search__range { flex: 1 1 100px; }
.bpob-search *, .bpob-search *::before, .bpob-search *::after, .bpob-archive *, .bpob-details * { box-sizing: border-box; }
summary.bpob-search__control { background-color: #fff; white-space: nowrap; overflow: hidden; }
.bpob-search__marketing { min-width: max-content; }
.bpob-search__marketing input { accent-color: var(--bpob-dark); }
.bpob-facts-grid { align-items: start; }

/* Typografie wie im Original (gemessen) */
.bpob-search { font-size: 16px; }
.bpob-search__control { height: 40px; }
.bpob-search__submit { height: 40px; font-size: 15px; letter-spacing: 1.3px; }
.bpob-search__marketing { font-size: 14px; }
.bpob-button { padding: 20px 40px; font-size: 15px; letter-spacing: 1.3px; }
.bpob-card--row .bpob-card__title { font-size: 22px; }
.bpob-card__address { font-size: 18px; }
.bpob-card__facts { font-size: 16px; }
.bpob-card--tile .bpob-card__title { font-size: 17px; }
.bpob-card--tile .bpob-card__address { font-size: 15px; }
.bpob-card--tile .bpob-card__price { font-size: 22px; }
.bpob-card__meta { font-size: 13px; }
.bpob-team-card figcaption { font-size: 15px; }
.bpob-team-card strong { font-size: 19px; }
.bpob-details__title { font-size: clamp(26px, 3.2vw, 38px); }
.bpob-details__address { font-size: 20px; }
.bpob-details__price { font-size: 25px; }
.bpob-details__meta { font-size: 14px; }
.bpob-details__section { font-size: 18px; line-height: 1.7; }
.bpob-details__heading { font-size: 30px; }
.bpob-tabs__list button { font-size: 14px; }
.bpob-facts { font-size: 16px; }
.bpob-agent__name { font-size: 23px; font-weight: 600; }
.bpob-agent__line { font-size: 16px; }
.bpob-agent__bio { font-size: 18px; line-height: 1.7; }

/* ==========================================================================
   Runde 3 – Abgleich mit dem Original
   ========================================================================== */
/* Original-Icons */
.bpob-icon { width: auto; height: 1.2em; }
.bpob-search__field > .bpob-icon,
summary.bpob-search__control .bpob-icon:not(.bpob-search__chevron) { height: 17px; width: 20px; }
.bpob-card__address .bpob-icon--pin, .bpob-details__address .bpob-icon--pin, .bpob-card__address .bpob-icon--card-pin { height: 18px; width: 13px; margin-top: 3px; }
.bpob-details__meta .bpob-icon { width: 34px; height: 26px; }
.bpob-card__meta .bpob-icon { width: 28px; height: 22px; }
.bpob-slider__arrow { border: 0; background: transparent; width: 44px; height: 44px; }
.bpob-slider__arrow .bpob-icon { width: 44px; height: 44px; }
.bpob-gallery__main .bpob-slider__arrow { background: rgb(255 255 255 / .8); border-radius: 50%; }

/* Bezirkskarte neben "Alle Bezirke" */
.bpob-search__field:has(.bpob-search__mapbtn) .bpob-combo,
.bpob-search__field:has(.bpob-search__mapbtn) > select { flex: 1; border-radius: var(--bpob-radius) 0 0 var(--bpob-radius); }
.bpob-search__field:has(.bpob-search__mapbtn) .bpob-combo__button { border-radius: var(--bpob-radius) 0 0 var(--bpob-radius); border-right: 1px solid var(--bpob-primary); }
.bpob-search__mapbtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 0 var(--bpob-radius) var(--bpob-radius) 0; background: #fff; cursor: pointer; }
.bpob-search__mapbtn .bpob-icon { width: 12px; height: 18px; }
.bpob-search__mapbtn:hover { background: #eef3f3; }
.bpob-district-map { width: min(90vw, 800px); max-height: 90vh; padding: 15px; border: 0; border-radius: 5px; box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.bpob-district-map::backdrop { background: rgb(0 0 0 / .7); }
.bpob-district-map img { display: block; width: 100%; height: auto; }
.bpob-district-map__close { position: absolute; top: 15px; right: 15px; width: 25px; height: 25px; padding: 0; border: 0; background: none; cursor: pointer; }
.bpob-district-map__close::before, .bpob-district-map__close::after { content: ""; position: absolute; top: 11px; left: 0; width: 25px; height: 2px; background: var(--bpob-primary); }
.bpob-district-map__close::before { transform: rotate(45deg); }
.bpob-district-map__close::after { transform: rotate(-45deg); }

/* Durchsuchbare Auswahlfelder */
.bpob-combo { position: relative; flex: 1; min-width: 0; }
.bpob-combo__native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.bpob-combo__button { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; padding-left: 34px; }
.bpob-combo__panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: max(100%, 240px); padding: 8px; border-radius: var(--bpob-radius); background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.bpob-combo__search { width: 100%; height: 36px; margin-bottom: 6px; padding: 0 10px; border: 1px solid var(--bpob-border); border-radius: var(--bpob-radius); font: inherit; }
.bpob-combo__search:focus { border-color: var(--bpob-primary); outline: none; }
.bpob-combo__list { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.bpob-combo__list li { padding: 6px 10px; border-radius: 2px; cursor: pointer; }
.bpob-combo__list li.is-active, .bpob-combo__list li:hover { background: var(--bpob-primary); color: #fff; }
.bpob-combo__list li[aria-selected="true"] { font-weight: 700; }
.bpob-combo__empty { margin: 6px 10px; color: var(--bpob-text); font-size: 14px; }

/* Makler-Foto auf der Detailseite im Hochformat (nicht beschneiden).
   Team-Slider (Kontakt) behält bewusst 4/5 wie im Original. */
.bpob-agent__photo img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* Freitexte unverändert als Fließtext (wie im Altsystem) */
.bpob-details__text { white-space: normal; }
