/* =========================================================================
   Riverside – ImmoMakler Archiv (Portfolio-Karten) · UIkit / YOOtheme Pro
   Layout kommt von UIkit-Utility-Klassen im Markup, dieses CSS gibt nur
   die Marken-Optik (Farben, Badge, Preis, Button) und Feinschliff.
   ========================================================================= */

/* Archiv-Container nicht künstlich begrenzen */
.immomakler-archive {
	max-width: 100%;
}

/* Archiv-Titel ("Immobilienangebot") + Subtitle ("Kauf, Wohnen") über der
   Suchmaske ausblenden. Trifft NUR den ImmoMakler-Archivtitel – die Hero-
   Überschrift im Seitenkopf ist .uk-heading-small und bleibt erhalten. */
.immomakler-archive .archive-title,
.immomakler-archive .archive-subtitle {
	display: none !important;
}

/* Gleiche Kartenhöhe je Reihe → Preis/Button-Footer bündig unten.
   1) UIkit-Flex-Grid erzwingen, falls die alte ImmoMakler-CSS noch ein
      display:grid auf .properties legt (das würde uk-grid überstimmen).
   2) Jede .property-Spalte wird zur Flex-Spalte und auf Reihenhöhe gestreckt.
   3) Die Karte füllt die Spalte komplett; ihr internes uk-margin-auto-top
      schiebt den Footer ans untere Ende. */
.properties.uk-grid {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
}
.properties .property {
	display: flex;
	flex-direction: column;
}
.properties .property > .property-container {
	flex: 1 1 auto;
	width: 100%;
}
.riverside-card.uk-card {
	height: 100%;
}

/* Gleicher Abstand zwischen den Kacheln in alle Richtungen:
   horizontal über den UIkit-Gutter (margin-left/padding-left), vertikal über
   row-gap (wirkt auch ohne UIkit-JS und doppelt sich nicht mit .uk-grid-margin).
   Wert zentral über --rv-gap steuerbar. */
.properties.uk-grid {
	--rv-gap: 35px;
	margin-left: calc(var(--rv-gap) * -1);
	row-gap: var(--rv-gap);
}
.properties.uk-grid > * {
	padding-left: var(--rv-gap);
}
.properties.uk-grid > .uk-grid-margin {
	margin-top: 0;
}

/* Theme-Abstände am .property-Wrapper neutralisieren, damit nur der
   Grid-Gutter (--rv-gap) den Abstand bestimmt. */
.immomakler-archive .property {
	padding-top: 0;
}
.immomakler-archive .immomakler-boxed .property {
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ---- Marken-Variablen ---- */
.riverside-card {
	--rv-blue:      #1e6e96; /* Primär-Blau (Button, Preis) */
	--rv-blue-dark: #185a7b; /* Button Hover */
	--rv-ink:       #1c1f24; /* Titel */
	--rv-muted:     #8a929b; /* Ort, Stats, Label */
	--rv-line:      #e7eaee; /* Trennlinie */
	--rv-chip:      #f1f4f6; /* Hintergrund der Stat-Badges */
	--rv-radius:    18px;
}

/* ---- Card-Shell (überschreibt uk-card-default) ---- */
.riverside-card.uk-card.uk-card-default {
	position: relative;               /* Bezugspunkt für das Klick-Overlay */
	isolation: isolate;               /* eigener Stacking-Context: Buttons sicher über dem Overlay */
	background: #ffffff;
	border: none !important;
	border-radius: var(--rv-radius);
	box-shadow: 0 12px 30px rgba(20, 40, 60, .10);
	overflow: hidden;
	height: 100%;
	cursor: pointer;
	transition: box-shadow .2s ease, transform .2s ease;
}
/* Leichter Hover-Effekt für die ganze Karte */
.riverside-card.uk-card.uk-card-default:hover {
	box-shadow: 0 18px 40px rgba(20, 40, 60, .16);
	transform: translateY(-3px);
}
.riverside-card:hover .property-title { color: var(--rv-blue); }
.riverside-card:hover .property-details-btn { background: #d3e6f4; }

/* Ganze Karte klickbar: unsichtbarer Link-Layer über der kompletten Karte.
   Liegt per hohem z-index über allen Inhalten und fängt jeden Klick ab. */
.riverside-card .card-link {
	position: absolute;
	inset: 0;
	z-index: 5;
	overflow: hidden;
	text-indent: -9999px;
	background: transparent;
}

/* ---- Thumbnail + Badge ---- */
.riverside-card .property-thumbnail {
	line-height: 0;
}
.riverside-card .property-thumbnail .thumbnail,
.riverside-card .property-thumbnail a.thumbnail {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.riverside-card .property-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.riverside-card .property-type-badge {
	display: inline-block;
	padding: 8px 12px;
	background: #ffffff9e;
	color: #102430;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 12px;
	box-shadow: none;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(4px);
	        backdrop-filter: blur(4px);
}

/* ---- Textbereich (uk-card-body) ---- */
/* Hohe Spezifität, um die Theme-Regel (0,4,1) sicher zu überstimmen. */
.immomakler-archive .immomakler-boxed .property-container.riverside-card .property-details.uk-card-body {
	padding: 0 30px 30px 30px;
}

.riverside-card .property-subtitle {
	color: #091a24;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
.riverside-card .property-subtitle .glyphicon { display: none; }

.riverside-card .property-title.uk-card-title {
	color: var(--rv-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}
.riverside-card .property-title a {
	color: inherit;
	text-decoration: none;
}
.riverside-card .property-title a:hover { color: var(--rv-blue); }

/* ---- Stats: Icon + Text ---- */
.riverside-card .property-data {
	gap: 8px 18px;
}
.riverside-card .property-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rv-ink);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.riverside-card .stat-icon {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	color: inherit;                        /* gleiche Farbe wie die Zahl */
	background-color: currentColor;
	-webkit-mask: var(--stat-icon) no-repeat center / contain;
	        mask: var(--stat-icon) no-repeat center / contain;
}

/* ---- Footer: Preis + Button ---- */
.riverside-card .property-footer {
	gap: 14px 16px;
	padding-top: 22px;
}

/* Footer zuverlässig am unteren Kartenrand – Flex-Kette explizit absichern,
   falls die UIkit-Flex-Klassen vom Theme überstimmt werden. */
.properties .property-container.riverside-card {
	display: flex;
	flex-direction: column;
}
.properties .property-container.riverside-card .property-details.uk-card-body {
	flex: 1 1 auto;
	min-height: 0;
}
.properties .property-container.riverside-card .property-bottom {
	margin-top: auto;
}

.riverside-card .property-price {
	min-width: 0;
}
.riverside-card .price-label {
	color: #091a24;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.riverside-card .price-value {
	color: #102430;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}
.riverside-card .price-secondary {
	margin-top: 3px;
	color: var(--rv-muted);
	font-size: 12px;
	font-weight: 500;
}

/* Details-Button: runder Kreis mit Pfeil-Icon */
.riverside-card .property-details-btn {
	position: relative;
	z-index: 6;                       /* über dem Karten-Overlay: eigener Link */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e3eff8;
	color: #102430;
	text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}
.riverside-card .property-details-btn:hover,
.riverside-card .property-details-btn:focus {
	background: #d3e6f4;
	color: #102430;
	transform: translateY(-1px);
}
.riverside-card .property-details-btn .btn-icon {
	display: block;
	width: 20px;
	height: 20px;
}

/* CTA-Gruppe (Merken + Pfeil) über dem Klick-Overlay, damit beide klickbar
   bleiben und nicht die ganze Karte auslösen. */
.riverside-card .property-cta {
	position: relative;
	z-index: 6;
	gap: 10px;
}

/* Merken-Button (aus dem ImmoMakler-Merkzettel-Hook) als Kreis wie der Pfeil.
   Der eigentliche Button/Link wird vom Merkzettel-Modul gerendert – wir stylen
   nur die Hülle und blenden den Text ("merken") aus, das Icon bleibt sichtbar. */
.riverside-card .property-watchlist > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #102430;
	font-size: 0;                 /* blendet den Text "merken" aus */
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease;
}
/* Theme-/Bootstrap-Hintergrund (.btn-default) und der gepunktete Fokus-Ring
   (.btn:active:focus { outline: thin dotted }) in allen Zuständen entfernen.
   !important, weil Bootstrap dieselbe Spezifität hat. */
.riverside-card .property-watchlist > *,
.riverside-card .property-watchlist > *:hover,
.riverside-card .property-watchlist > *:focus,
.riverside-card .property-watchlist > *:focus-visible,
.riverside-card .property-watchlist > *:active {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
/* Hover: kein Hintergrund, nur leichtes Vergrößern – das Herz spiegelt dadurch
   immer den echten Merk-Status (Outline = nicht gemerkt, gefüllt = gemerkt). */
.riverside-card .property-watchlist > *:hover .wl-heart,
.riverside-card .property-watchlist > *:focus .wl-heart {
	transform: scale(1.12);
}
/* Herz-Icons als <img> (Plugin-Glyphicon + Text "merken" bleiben via font-size:0 aus).
   Standard: heart.svg (Outline). Gemerkt: heart-fill.svg. */
.riverside-card .property-watchlist .wl-icon {
	display: inline-flex;
}
.riverside-card .property-watchlist .wl-heart {
	display: block;
	width: 20px;
	height: 20px;
	transition: transform .18s ease;
}
.riverside-card .property-watchlist .wl-heart--on {
	display: none;
}

/* Gemerkt = das Plugin-Glyphicon ist NICHT mehr "glyphicon-unchecked"
   (egal wie die aktive Klasse genau heißt) → gefülltes Herz zeigen. */
.riverside-card .property-watchlist .in-cart:not(.glyphicon-unchecked) ~ .wl-icon .wl-heart--off {
	display: none;
}
.riverside-card .property-watchlist .in-cart:not(.glyphicon-unchecked) ~ .wl-icon .wl-heart--on {
	display: block;
}

/* ---- Responsive Feinschliff (unter UIkit-Breakpoint S = 640px) ---- */
@media (max-width: 639px) {
	.immomakler-archive .immomakler-boxed .property-container.riverside-card .property-details.uk-card-body { padding: 0 20px 20px 20px; }
}


/* =========================================================================
   Riverside – ImmoMakler Suchmaske / Filter (#immomakler-search)
   Stylt das Plugin-Suchformular ins Riverside-Design (siehe Mockup).
   ========================================================================= */
#immomakler-search {
	--rv-blue:      #1e6e96;
	--rv-blue-dark: #185a7b;
	--rv-ink:       #1c1f24;
	--rv-muted:     #8a929b;
	--rv-line:      #e7eaee;
	--rv-chip:      #f2f4f6;

	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 12px 30px rgba(20, 40, 60, .10);
	padding: 26px 30px;
}

/* "● SUCHE"-Label oben (der dynamische "Umkreis …"-Teil kommt vom Plugin,
   nicht per CSS – siehe Hinweis). */
#immomakler-search-form::before {
	content: "\25CF\00A0\00A0Suche";
	display: block;
	margin-bottom: 18px;
	color: var(--rv-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Bootstrap-Grid im Formular neutralisieren – wir nutzen Flex + gap */
#immomakler-search-form { padding: 0; }
#immomakler-search .row { margin: 0; padding: 0; }
#immomakler-search .search-radius { padding: 0; }
#immomakler-search [class*="col-"] { padding: 0; float: none; width: auto; }
/* Bootstrap-Clearfix-Pseudoelemente (.row::before/::after) im Flex-Container
   ausblenden – sonst zählen sie als Flex-Items und verhindern, dass die Pills
   die Reihe voll ausfüllen (~24px Rest). */
#immomakler-search .row::before,
#immomakler-search .row::after { content: none; display: none; }

#immomakler-search .search-taxonomies {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
}
#immomakler-search .search-radius { margin-bottom: 20px; }

/* ---- Dropdown-Pills (bootstrap-select) ---- */
/* flex-basis: 0 → alle 4 Pills exakt gleich breit und über die volle Zeile
   verteilt. width:auto überschreibt die feste Inline-Breite von bootstrap-select. */
#immomakler-search .search-taxonomies > .bootstrap-select {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
#immomakler-search .search-taxonomies > .bootstrap-select > .dropdown-toggle {
	width: 100%;
}
#immomakler-search .bootstrap-select > .dropdown-toggle,
#immomakler-search .bootstrap-select > .dropdown-toggle.btn-default {
	display: flex;
	align-items: center;
	min-height: 48px;
	height: auto;
	padding: 10px 20px;
	background: var(--rv-chip);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--rv-ink);
	font-size: 15px;
	box-shadow: none;
}
#immomakler-search .bootstrap-select > .dropdown-toggle:hover,
#immomakler-search .bootstrap-select > .dropdown-toggle:focus,
#immomakler-search .bootstrap-select.open > .dropdown-toggle {
	background: #e9edf1;
	box-shadow: none;
	outline: none;
}
#immomakler-search .bootstrap-select > .dropdown-toggle .filter-option {
	flex: 1 1 auto;
	text-align: left;
}
#immomakler-search .bootstrap-select > .dropdown-toggle .bs-caret { color: var(--rv-muted); }
#immomakler-search .bootstrap-select.disabled > .dropdown-toggle { opacity: .55; }

/* Nur das ÄUSSERE Menü bekommt Rahmen/Schatten … */
#immomakler-search .bootstrap-select > .dropdown-menu {
	margin-top: 6px;
	padding: 6px;
	background: #ffffff;
	border: 1px solid var(--rv-line);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(20, 40, 60, .14);
	overflow: hidden;
}
/* … das INNERE (verschachtelte) Menü ist rahmen-/schattenlos (der „Rahmen im Dropdown"). */
#immomakler-search .bootstrap-select .dropdown-menu.inner,
#immomakler-search .bootstrap-select .inner {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
/* Einträge */
#immomakler-search .bootstrap-select .dropdown-menu li a {
	padding: 9px 14px;
	border-radius: 8px;
	color: var(--rv-ink);
	white-space: normal;
}
#immomakler-search .bootstrap-select .dropdown-menu li a:hover,
#immomakler-search .bootstrap-select .dropdown-menu li a:focus,
#immomakler-search .bootstrap-select .dropdown-menu li a.hover {
	background: var(--rv-chip);
	color: var(--rv-ink);
}
#immomakler-search .bootstrap-select .dropdown-menu li.selected a,
#immomakler-search .bootstrap-select .dropdown-menu li.active a {
	background: #e3eff8;
	color: var(--rv-blue);
}

/* ---- Umkreis: Ort-Feld + km-Dropdown ---- */
#immomakler-search .immomakler-search-center {
	display: flex;
	gap: 12px;
	align-items: stretch;
}
#immomakler-search .immomakler-ac-wrap { position: relative; flex: 1 1 auto; }
#immomakler-search #immomakler-radiussearch-center {
	width: 100%;
	height: 48px;
	padding: 10px 20px 10px 48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a929b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.686-6-10a6 6 0 0 1 12 0c0 4.314-6 10-6 10z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E") 18px center / 18px no-repeat, var(--rv-chip);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--rv-ink);
	font-size: 15px;
	box-shadow: none;
}
#immomakler-search .immomakler-search-radius { flex: none; width: auto; }
#immomakler-search .immomakler-ac-list {
	position: absolute;
	z-index: 20;
	width: 100%;
	margin: 4px 0 0;
	padding: 6px;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--rv-line);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(20, 40, 60, .12);
}

/* ---- Aktionsleiste ---- */
#immomakler-search #immomakler-search-advanced {
	margin: 0;
	padding-top: 20px;
	background: none;
	border: 0;
	border-top: 1px solid var(--rv-line);
	border-radius: 0;
	box-shadow: none;
}
#immomakler-search #immomakler-search-advanced .panel-heading {
	padding: 0;
	background: none;
	border: 0;
}
#immomakler-search .search-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}

/* Suchen-Button */
#immomakler-search .immomakler-submit.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--rv-blue);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	box-shadow: none;
}
#immomakler-search .immomakler-submit.btn-primary:hover,
#immomakler-search .immomakler-submit.btn-primary:focus { background: var(--rv-blue-dark); color: #fff; }

/* Merkliste-Pill */
#immomakler-search .immomakler-cart-button.btn-default {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	background: #ffffff;
	border: 1px solid var(--rv-line);
	border-radius: 999px;
	color: var(--rv-ink);
	font-size: 15px;
	box-shadow: none;
}
#immomakler-search .immomakler-cart-button.btn-default:hover { background: var(--rv-chip); }
#immomakler-search .immomakler-cart-button::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: url(/wp-content/uploads/2026/07/heart.svg) center / contain no-repeat;
}
#immomakler-search .cart-count-badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--rv-ink);
	border-radius: 999px;
	color: #ffffff;
	font-size: 12px;
	line-height: 20px;
}

/* Reset-Link */
#immomakler-search #immomakler-search-reset.btn {
	padding: 8px 6px;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--rv-muted);
	text-decoration: underline;
	box-shadow: none;
}
#immomakler-search #immomakler-search-reset.btn:hover { color: var(--rv-ink); }

/* Objekt-ID – rechts */
#immomakler-search .search-for-id {
	display: flex;
	align-items: center;
	width: 240px;
	max-width: 240px;
	margin-left: auto;
	padding: 0 6px 0 18px;
	background: var(--rv-chip);
	border-radius: 999px;
}
#immomakler-search .search-for-id .form-control {
	flex: 1 1 auto;
	width: auto;
	height: 46px;
	padding: 0 8px;
	background: transparent;
	border: 0;
	color: var(--rv-ink);
	font-size: 15px;
	box-shadow: none;
}
#immomakler-search .search-for-id .input-group-btn { display: flex; width: auto; }
#immomakler-search .search-for-id .input-group-btn .btn {
	padding: 8px;
	background: transparent;
	border: 0;
	color: var(--rv-muted);
	box-shadow: none;
}

#immomakler-search ::placeholder { color: var(--rv-muted); opacity: 1; }

/* Responsive */
@media (max-width: 767px) {
	#immomakler-search { padding: 20px; border-radius: 18px; }
	#immomakler-search .search-taxonomies > .bootstrap-select { flex: 1 1 100%; }
	#immomakler-search .immomakler-search-center { flex-wrap: wrap; }
	#immomakler-search .immomakler-search-radius { width: 100%; }
	#immomakler-search .search-for-id { width: 100%; max-width: none; margin-left: 0; }
}


/* =========================================================================
   Riverside – Suchprofil / Suchauftrag (Aufklappbox) · DARK
   #immomakler-search-agents-panel
   ========================================================================= */
#immomakler-search-agents-panel {
	--rv-dark:  #17384a;  /* dunkler Slate-Ton (Header-Look) */

	margin-top: 30px;
	padding: 10px 10px !important;   /* Original-Skin überschreibt sonst */
	background: var(--rv-dark);
	border: 0 !important;   /* Original-Skin erzwingt sonst einen 3px-Rahmen */
	border-radius: 24px !important;
	box-shadow: none;
	overflow: hidden;
	color: #ffffff;
}

/* ---- Kopf / Toggle ---- */
/* !important, weil die Original-Skin-CSS panel-heading auf Weiß und den Toggle
   auf display:block zwingt (sonst weißer Text auf weißem Grund = leere Box). */
#immomakler-search-agents-panel .panel-heading {
	padding: 0;
	background: none !important;
	border: 0;
}
#immomakler-search-agents-panel .immomakler-search-agents-panel-toggle {
	display: flex !important;
	align-items: center;
	gap: 14px;
	padding: 20px 26px;
	cursor: pointer;
	color: #ffffff;
	font-size: 15px;
	font-weight: 400;
}
/* Bell im Kreis */
#immomakler-search-agents-panel .searchagent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #ffffff;
	font-size: 15px;
}
/* Glocke bimmelt alle 2s kurz (nur das Glocken-Zeichen, Schwung von oben) */
@keyframes rv-bell-ring {
	0%   { transform: rotate(0); }
	3%   { transform: rotate(22deg); }
	7%   { transform: rotate(-18deg); }
	11%  { transform: rotate(15deg); }
	15%  { transform: rotate(-12deg); }
	19%  { transform: rotate(8deg); }
	23%  { transform: rotate(-5deg); }
	27%  { transform: rotate(2deg); }
	30%, 100% { transform: rotate(0); }
}
#immomakler-search-agents-panel .searchagent-icon.glyphicon-bell::before {
	display: inline-block;
	transform-origin: top center;
	animation: rv-bell-ring 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	#immomakler-search-agents-panel .searchagent-icon.glyphicon-bell::before { animation: none; }
}
/* Chevron durch "Suchprofil anlegen →" ersetzen */
#immomakler-search-agents-panel .searchagent-icon-open { display: none; }
#immomakler-search-agents-panel .immomakler-search-agents-panel-toggle::after {
	content: "Suchprofil anlegen →";
	margin-left: auto;
	color: #ffffff;
	font-weight: 500;
	white-space: nowrap;
}
#immomakler-search-agents-panel .immomakler-search-agents-panel-toggle[aria-expanded="true"]::after {
	content: "Schließen ↑";
}

/* ---- Body (dunkel) ---- */
#immomakler-search-agents-panel .panel-body {
	padding: 26px 26px 26px;
	background: transparent !important;   /* Original-Skin setzt sonst Weiß */
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .85);
}
#immomakler-search-agents-panel #immomakler-search-agents.row { margin: 0; }
#immomakler-search-agents-panel .panel-body .col-sm-12 { padding: 0; color: inherit; }
#immomakler-search-agents-panel .form-row { margin-top: 14px; }
#immomakler-search-agents-panel a { color: #9ecbe6; }

/* Checkboxen */
#immomakler-search-agents-panel .form-check label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}
#immomakler-search-agents-panel .form-check input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #4aa3d4;
}

/* E-Mail-Feld (Pill, hell auf dunkel) – nur das echte Feld, nicht der Honeypot */
#immomakler-search-agents-panel .immomakler-searchagents-email {
	display: flex;
	align-items: center;
	max-width: 440px;
	padding-left: 14px;
	background: rgba(255, 255, 255, .1);
	border-radius: 999px;
	overflow: hidden;
}
#immomakler-search-agents-panel .immomakler-searchagents-email .input-group-addon {
	padding: 0 6px 0 0;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, .6);
}
#immomakler-search-agents-panel .immomakler-searchagents-email .form-control {
	height: 46px;
	padding: 0 14px 0 8px;
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: 15px;
	box-shadow: none;
}
#immomakler-search-agents-panel .immomakler-searchagents-email .form-control::placeholder {
	color: rgba(255, 255, 255, .55);
}
/* Spamschutz-Feld (Honeypot) versteckt lassen */
#immomakler-search-agents-panel .immomakler-searchagent-email-repeat {
	display: none !important;
}

/* Submit-Button (hell auf dunkel) */
#immomakler-search-agents-panel #immomakler-create-search-agent button[type="submit"] {
	margin-top: 16px;
	padding: 12px 24px;
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	color: #163a47;
	font-size: 15px;
	font-weight: 600;
	box-shadow: none;
}
#immomakler-search-agents-panel #immomakler-create-search-agent button[type="submit"]:hover {
	background: #e3eff8;
	color: #163a47;
}


/* =========================================================================
   Riverside – Ergebnis-Zeile (Anzahl + Sortierung)
   .paginator  →  Trennstriche weg, Sortierung als Pill wie die Filter oben
   ========================================================================= */
.immomakler-archive .paginator.row {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 14px 0;
	border-top: 0 !important;
	border-bottom: 0 !important;
}
.immomakler-archive .paginator .num-posts {
	width: auto;
	color: #1c1f24;
	font-size: 15px;
}
.immomakler-archive .paginator .pages-nav {
	display: flex;
	justify-content: flex-end;
	width: auto;
	margin-left: auto;
}

/* Sortierung "Neueste zuerst" als Pill-Badge (wie die Filter-Dropdowns oben) */
.immomakler-order-by .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	background: #f2f4f6;
	border-radius: 999px;
	color: #1c1f24;
	font-size: 14px;
	cursor: pointer;
}
.immomakler-order-by .dropdown-toggle:hover { background: #e9edf1; }
.immomakler-order-by .dropdown-toggle .caret { color: #8a929b; }

/* Sortier-Menü passend zu den Filter-Menüs */
.immomakler-order-by .dropdown-menu {
	margin-top: 6px;
	padding: 6px;
	border: 1px solid #e7eaee;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(20, 40, 60, .14);
}
.immomakler-order-by .dropdown-menu li a {
	padding: 8px 14px;
	border-radius: 8px;
	color: #1c1f24;
}
.immomakler-order-by .dropdown-menu li a:hover { background: #f2f4f6; }
.immomakler-order-by .dropdown-menu li.disabled a,
.immomakler-order-by .dropdown-menu li.active a {
	background: #e3eff8;
	color: #1e6e96;
}


/* =========================================================================
   Riverside – Immobilien-Detailansicht (Einzelobjekt)
   Layout-Gerüst: Header · Galerie · Eckdaten · 2-Spalten · Anfrage
   ========================================================================= */
.rv-single {
	--rv-blue:  #1e6e96;
	--rv-ink:   #1c1f24;
	--rv-muted: #8a929b;
	--rv-line:  #e7eaee;
	--rv-chip:  #f2f4f6;

	max-width: 1200px;
	margin: 0 auto;
	color: var(--rv-ink);
}

/* ---- Header ---- */
.rv-single-header { margin-bottom: 24px; }
.rv-single-headrow {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}
.rv-single-headinfo { flex: 1 1 320px; min-width: 0; }
.rv-single .property-title {
	margin: 8px 0;
	color: var(--rv-ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
}
.rv-single .property-title a { color: inherit; text-decoration: none; }
.rv-single .property-subtitle { color: var(--rv-muted); font-size: 16px; }
.rv-single-headprice { flex: none; text-align: right; }
.rv-price-label {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
	font-weight: 600;
	color: var(--rv-muted);
}
.rv-price-value { font-size: 28px; font-weight: 700; color: var(--rv-blue); line-height: 1.1; }
.rv-single-actions { margin-top: 18px; }

/* ---- Galerie (volle Breite erzwingen – Swiper bringt sonst eine schmale Breite mit) ---- */
.rv-single-gallery { margin-bottom: 24px; border-radius: 18px; overflow: hidden; }
.rv-single-gallery,
.rv-single .immomakler-gallery,
.rv-single .immomakler-gallery__main,
.rv-single .immomakler-gallery__thumbs,
.rv-single .immomakler-gallery .swiper {
	width: 100% !important;
	max-width: 100% !important;
}

/* Galerie: Bild-Ecken abrunden (auch wenn per Shortcode in YOOtheme eingebunden) */
.immomakler-gallery__main .swiper-slide,
.immomakler-gallery__main .swiper-slide img {
	border-radius: 20px;
}
.immomakler-gallery__main .swiper-slide { overflow: hidden; }
.immomakler-gallery__thumbs .swiper-slide,
.immomakler-gallery__thumbs .swiper-slide img {
	border-radius: 16px;
}
.immomakler-gallery__thumbs .swiper-slide { overflow: hidden; }

/* ---- Eckdaten-Leiste (Layout via UIkit uk-grid) ---- */
.rv-single-facts { margin: 0 0 30px; }
.rv-fact {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: var(--rv-chip);
	border-radius: 14px;
}
.rv-fact-icon {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #e3eff8;
}
.rv-fact-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 22px;
	background: var(--rv-blue);
	-webkit-mask: var(--icon) center / contain no-repeat;
	        mask: var(--icon) center / contain no-repeat;
}
.rv-fact-label { font-size: 13px; color: var(--rv-muted); }
.rv-fact-value { margin-top: 2px; font-size: 20px; font-weight: 700; color: var(--rv-ink); }

/* ---- 2-Spalten-Layout (via UIkit uk-grid: content = uk-width-expand, sidebar = uk-width-1-3@m) ---- */
.rv-single-body { align-items: flex-start; }   /* Sidebar nicht auf volle Höhe strecken → sticky wirkt */
.rv-single-sidebar { position: sticky; top: 20px; }
@media (max-width: 767px) {
	.rv-single-sidebar { position: static; }
}

/* ---- Panels → saubere Riverside-Cards (überschreibt Bootstrap) ---- */
.rv-single .panel {
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid var(--rv-line);
	border-radius: 16px;
	box-shadow: none;
	overflow: hidden;
}
.rv-single .panel-heading {
	padding: 20px 24px 0;
	background: none;
	border: 0;
	color: var(--rv-ink);
	font-size: 18px;
	font-weight: 700;
}
.rv-single .panel-title { font-size: 18px; font-weight: 700; color: var(--rv-ink); }
.rv-single .panel-body { padding: 16px 24px 24px; }

/* Beschreibung als Fließtext */
.rv-single .property-description p { margin: 0 0 14px; line-height: 1.7; }

/* ---- Anfrageformular ---- */
.rv-single-inquiry { margin-top: 30px; }

/* ---- Panel-Überschriften (Content-Spalte: große H2 mit Trennlinie) ---- */
.rv-single .panel-heading { padding: 24px 24px 0; background: none; border: 0; }
.rv-single .panel-body { padding: 16px 24px 24px; }
.rv-single .panel-heading h2 {
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rv-line);
	font-size: 22px;
	font-weight: 700;
	color: var(--rv-ink);
}

/* ---- Label/Wert-Zeilen (Objektdaten, Kontakt, Energie) ---- */
.rv-single .list-group { margin: 0; padding: 0; box-shadow: none; }
.rv-single .list-group-item {
	padding: 11px 0;
	background: none;
	border: 0;
	border-top: 1px solid var(--rv-line);
}
.rv-single .list-group-item:first-child { border-top: 0; }
.rv-single .list-group-item .row { display: flex; align-items: baseline; margin: 0; gap: 16px; }
.rv-single .list-group-item .dt {
	flex: 1 1 auto; width: auto; padding: 0;
	color: var(--rv-muted); font-size: 14px;
}
.rv-single .list-group-item .dd {
	flex: none; width: auto; padding: 0;
	text-align: right; font-weight: 600; font-size: 14px; color: var(--rv-ink);
}

/* ---- Sidebar-Karten: kleine Label-Überschrift statt großer H2 ---- */
.rv-single .property-contact .panel-heading h2,
.rv-single .property-details .panel-heading h2 {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rv-muted);
}

/* ---- Ansprechpartner-Karte: DUNKEL ---- */
/* !important, weil die Skin-CSS den Panel-Hintergrund per !important auf Weiß setzt. */
.rv-single .property-contact.panel {
	background: #17384a !important;
	border: 0 !important;
	color: #ffffff;
}
.rv-single .property-contact .panel-heading h2 { color: rgba(255, 255, 255, .55); }
.rv-single .property-contact .list-group-item { border-top-color: rgba(255, 255, 255, .14); }
.rv-single .property-contact .dt { color: rgba(255, 255, 255, .55); }
.rv-single .property-contact .dd { color: #ffffff; }
.rv-single .property-contact a { color: #9ecbe6; }
.rv-single .property-contact .contact-photo img { border-radius: 50%; }
.rv-single .property-contact .property-contact-form-cta-button {
	display: block;
	margin-top: 16px;
	padding: 14px 20px;
	background: var(--rv-blue);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	font-weight: 600;
	text-align: center;
	box-shadow: none;
}
.rv-single .property-contact .property-contact-form-cta-button:hover { background: #185a7b; }

/* ---- Ausstattung als Raster ---- */
.rv-single .property-features .list-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2px 20px;
}
.rv-single .property-features .list-group-item {
	border: 0;
	padding: 8px 0;
	color: var(--rv-ink);
	font-size: 14px;
}

/* ---- Aktions-Buttons als Pills ---- */
.rv-single .property-actions.btn-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
}
.rv-single .property-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 11px 20px;
	border-radius: 999px !important;
	font-size: 14px;
	font-weight: 600;
	box-shadow: none;
}
.rv-single .property-actions .btn-default {
	background: #ffffff;
	border: 1px solid var(--rv-line);
	color: var(--rv-ink);
}
.rv-single .property-actions .btn-default:hover { background: var(--rv-chip); }
.rv-single .property-actions .btn-primary {
	background: var(--rv-blue);
	border: 0;
	color: #ffffff;
}
.rv-single .property-actions .btn-primary:hover { background: #185a7b; }

/* Prev/Next-Navigation dezent */
.rv-single .property-navigation.btn-group { margin-left: 10px; }

/* ---- Energieausweis-Skala: volle Breite + Wipe-Animation ---- */
/* Breite + Zentrierung (greift auch ohne Animations-Wrapper) */
.epass-diagram-container,
.wee-epass {
	text-align: center;
}
.epass-diagram-container .immomakler-epass-svg,
.wee-epass .immomakler-epass-svg {
	width: 100%;
	height: auto;
	max-width: 600px;   /* Breite begrenzen; für volle Breite: none */
	display: block;
	margin-left: auto;  /* horizontal zentrieren */
	margin-right: auto;
}

/* Wipe-Animation von links nach rechts – nur mit .wee-epass-Wrapper
   (uk-scrollspy setzt beim Sichtbarwerden die Klasse .wee-epass--in). */
.wee-epass .immomakler-epass-svg {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 1.3s cubic-bezier(.22, 1, .36, 1);
}
.wee-epass.wee-epass--in .immomakler-epass-svg {
	clip-path: inset(0 0 0 0);
}

/* "Endenergieverbrauch 153,00 kWh/(m²·a)" über der Skala ausblenden */
.immomakler-epass-svg .epass-svg-label,
.immomakler-epass-svg .epass-svg-value,
.immomakler-epass-svg .epass-svg-unit {
	display: none;
}

/* ---- Google-Karte: volle Breite, feste Höhe + Ecken abrunden ---- */
#immomakler-map-iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: 800px !important;      /* Wunschhöhe – einfach anpassen */
	max-height: none !important;   /* Plugin-Deckelung (350px) aufheben */
	min-height: 0 !important;
	border-radius: 20px;
	overflow: hidden;              /* rundet auch die Karte/Consent-Box mit ab */
}
#immomakler-map-iframe > *,
#immomakler-map-iframe iframe,
#immomakler-map-iframe iframe.map,
#immomakler-map-iframe .immomakler-map-consent,
#immomakler-map-iframe .immomakler-map,
#immomakler-map-iframe [class*="gm-"] {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
}

/* Text-Link unter der Karte ("… auf Google Maps ansehen") ausblenden */
.googlemaps-link {
	display: none;
}

/* ================================================================
   Kontaktformular (Direktanfrage) – Riverside-Styling
   ================================================================ */
.immomakler-contactform {
	--cf-blue: #1e6e96;
	--cf-blue-dark: #185a7b;
	--cf-ink: #1c1f24;
	--cf-line: #d8dee3;
	--cf-radius: 12px;
}

/* Bootstrap-Grid schlank nachbauen (col-xs-*) */
.immomakler-contactform .form-group {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px 10px;
}
.immomakler-contactform [class*="col-xs-"],
.immomakler-contactform [class*="col-sm-"] {
	padding: 0 8px;
	box-sizing: border-box;
	min-width: 0;
}
.immomakler-contactform .col-xs-12 { flex: 0 0 100%;      max-width: 100%; }
.immomakler-contactform .col-xs-9  { flex: 0 0 75%;       max-width: 75%; }
.immomakler-contactform .col-xs-8  { flex: 0 0 66.6667%;  max-width: 66.6667%; }
.immomakler-contactform .col-xs-5  { flex: 0 0 41.6667%;  max-width: 41.6667%; }
.immomakler-contactform .col-xs-4  { flex: 0 0 33.3333%;  max-width: 33.3333%; }
.immomakler-contactform .col-xs-3  { flex: 0 0 25%;       max-width: 25%; }
@media (max-width: 480px) {
	.immomakler-contactform .col-xs-9,
	.immomakler-contactform .col-xs-8,
	.immomakler-contactform .col-xs-5,
	.immomakler-contactform .col-xs-4,
	.immomakler-contactform .col-xs-3 { flex: 0 0 100%; max-width: 100%; }
}

/* Adresse: PLZ + Ort stehen in einer zweiten Zeile -> Abstand nach oben */
.immomakler-contactform .immomakler-contact-zipcode,
.immomakler-contactform .immomakler-contact-city {
	margin-top: 14px;
}

/* Labels */
.immomakler-contactform label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--cf-ink);
	margin-bottom: 6px;
}

/* Eingabefelder */
.immomakler-contactform .form-control {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	color: var(--cf-ink);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.immomakler-contactform select.form-control {
	appearance: auto;
	-webkit-appearance: auto;
}
.immomakler-contactform textarea.form-control {
	min-height: 130px;
	resize: vertical;
}
.immomakler-contactform .form-control:focus {
	outline: none;
	border-color: var(--cf-blue);
	box-shadow: 0 0 0 3px rgba(30, 110, 150, .12);
}
.immomakler-contactform .form-control::placeholder { color: #9aa2aa; }

/* Telefon: Vorwahl-Button + Nummer nebeneinander */
.immomakler-contactform .immomakler-phone-wrapper {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.immomakler-contactform .immomakler-phone-prefix-button.form-control {
	width: auto;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.immomakler-contactform .immomakler-contact-phone { flex: 1 1 auto; }

/* Spamschutz-Feld (Honeypot) ausblenden */
.immomakler-contactform .immomakler-contact-sender-email {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* Checkboxen / Einwilligungen */
.immomakler-contactform .checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0;
	font-size: 14px;
	line-height: 1.5;
}
/* Checkbox-Zeilen enger zusammen (weniger Abstand als bei Eingabefeldern) */
.immomakler-contactform .form-group:has(.checkbox) {
	margin-bottom: 4px;
}
.immomakler-contactform .checkbox input[type="checkbox"] {
	margin: 3px 0 0;
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	accent-color: var(--cf-blue);
}
.immomakler-contactform .checkbox label {
	font-weight: 400;
	margin: 0;
	color: var(--cf-ink);
}

/* Absende-Button */
.immomakler-contactform button[type="submit"],
.immomakler-contactform input[type="submit"],
.immomakler-contactform .submit.btn {
	display: inline-block;
	width: auto;
	margin-top: 8px;
	padding: 14px 30px;
	background: var(--cf-blue);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.immomakler-contactform button[type="submit"]:hover,
.immomakler-contactform input[type="submit"]:hover,
.immomakler-contactform .submit.btn:hover {
	background: var(--cf-blue-dark);
}

/* Pflichtangaben-Hinweis + SSL-Zeile dezent */
.immomakler-contactform .immomakler-contactform-mandatory,
.property-contactform .immomakler-ssl-info {
	font-size: 13px;
	color: #8a929b;
}

/* ================================================================
   Kontaktformular – Angleichung an den Entwurf (Variante A)
   ================================================================ */

/* Karte */
#immomakler-contactform-panel.property-contactform {
	background: #fff;
	border: 0 !important;
	border-radius: 24px;
	box-shadow: 0 12px 40px rgba(16, 36, 48, .08);
	overflow: hidden;
}
/* Überschrift "Direktanfrage" ausblenden */
#immomakler-contactform-panel .panel-heading {
	display: none;
}
#immomakler-contactform-panel .panel-body {
	padding: 34px 34px;
}
@media (max-width: 560px) {
	#immomakler-contactform-panel .panel-body { padding: 24px 20px; }
}

/* Labels: normal (nicht uppercase) */
.immomakler-contactform label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
	font-weight: 600;
	color: #6b7580;
	margin-bottom: 4px;
	padding-left: 0px;
}

/* Eingabefelder: größer, weicher, hellerer Rahmen.
   Schrift + Placeholder erben die normale Seiten-Schriftgröße/-art. */
.immomakler-contactform .form-control {
	padding: 14px 16px;
	border: 1px solid #e3e7ec;
	border-radius: 8px;
	background: #9fcce80a;
	font-family: inherit;
	font-size: 15px;
	color: #102430;
}
.immomakler-contactform .form-control:focus {
	border-color: #3f6b8a;
	box-shadow: 0 0 0 3px rgba(63, 107, 138, .14);
}
.immomakler-contactform textarea.form-control { min-height: 150px; }

/* Links (AGB, Widerruf, Datenschutz) in Blau statt Orange */
.immomakler-contactform a {
	color: #2f6188;
	text-decoration: underline;
}
.immomakler-contactform a:hover { color: #1e6e96; }

/* Checkboxen: blauer Akzent */
.immomakler-contactform .checkbox input[type="checkbox"] {
	accent-color: #3f6b8a;
	width: 18px;
	height: 18px;
}

/* Absende-Button: dunkelblaue Pill + Pfeil */
.immomakler-contactform button[type="submit"],
.immomakler-contactform .submit.btn {
	background: #3f6b8a;
	border-radius: 8px;
	padding: 15px 34px;
	font-size: 15px;
	font-weight: 700;
}
.immomakler-contactform button[type="submit"]:hover,
.immomakler-contactform .submit.btn:hover {
	background: #335978;
}
.immomakler-contactform button[type="submit"]::after {
	content: " \2192"; /* Pfeil → */
}

/* Button-Zeile + SSL-/Pflichtangaben-Hinweis in eine Reihe */
.immomakler-contactform .immomakler-contactform-send > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 20px;
}
.immomakler-contactform .send-over-https,
.immomakler-contactform .send-over-https * {
	font-size: 13px;
	color: #8a929b;
}
.immomakler-contactform span.mandatory {
	display: inline-block;
	margin: 4px 0 10px;
	font-size: 13px;
	color: #8a929b;
}

/* Teaser-Ausstattung (Subline) */
span.uk-text-subline {
	font-size: 20px;
}
