:root {
  color-scheme: light;
  --core-accent: #475569;
  --core-border: #e5e7eb;
  --core-radius: 12px;
  --core-surface: #f8fafc;
  --core-text-muted: #6b7280;
  --core-text-secondary: #374151;
  --core-text: #111827;
  --core-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
/* overflow-x:hidden is required by the .hero/.enquiry-band full-bleed
   technique below: 100vw includes the scrollbar's own width, so without
   this the page gains a few px of real horizontal scroll on any viewport
   that has a vertical scrollbar. This stylesheet is only enqueued on the
   Wohnungsfinder page itself (has_shortcode() gated), so this can't leak
   onto any other page. */
body { font-family: var(--core-font); color: var(--core-text); background: #fff; margin: 0; overflow-x: hidden; }
/* Room for the fixed compare bar only while it is showing. An unconditional bottom padding on <body> left a white
   strip under the theme's own footer; the bar itself covers this reserved space while it is visible. */
body:has(.compare-bar.visible) { padding-bottom: 90px; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px 64px; }

/* Hero -- full-bleed regardless of the width/centering of whatever contains
   the shortcode (in production, Hello Elementor's main.site-main caps
   content at max-width:1140px and centers it -- .hero-content already has
   its own max-width/margin:auto to stay boxed inside this, same pattern
   as .enquiry-band/.enquiry-inner below). The standard escape-the-
   container trick: 100vw width canceled back to the actual viewport via
   equal negative side margins, regardless of how deep or how padded the
   real container turns out to be. Confirmed no ancestor has
   overflow-x:hidden, which would otherwise clip this. */
.hero { position: relative; margin: 0 0 -1px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; height: 490px; overflow: hidden; }
.hero picture { display: block; width: 100%; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17,24,39,0) 20%, rgba(17,24,39,.55) 60%, rgba(17,24,39,.92) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 32px 24px 56px;
  color: #fff;
  max-width: 1152px;
  margin: 0 auto;
}
.hero-eyebrow { font-size: .85rem; color: #fff; margin: 0 0 6px; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hero-title { font-size: 2.2rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); text-transform: uppercase; }
.hero-sub { font-size: 1rem; color: #fff; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* Facts bar */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: -30px 0 32px; position: relative; z-index: 2;
  max-width: 1152px;
}
.fact { min-width: 0; background: #fff; border: 1px solid var(--core-border); border-radius: 10px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(17,24,39,.06); }
.fact-label { display: block; font-size: .74rem; color: var(--core-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.fact-value { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Four facts side by side need more room than a phone has: two per row (a grid track that cannot shrink used to
   widen the whole page and push the fixed compare bar off screen). */
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.top-pad { padding-top: 32px; }
.subtitle { color: var(--core-text-muted); margin: 0 0 28px; }

.search-panel {
  background: var(--core-surface);
  border: 1px solid var(--core-border);
  border-radius: var(--core-radius);
  padding: 20px 22px;
  margin-bottom: 32px;
}
.deal-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
/* An install that offers only one deal type has nothing to toggle (the script sets [hidden]). */
.deal-toggle[hidden] { display: none; }
/* Same exact-specificity-tie collision as .lightbox-close/.show-more-btn/
   .lightbox-family-toggle elsewhere in this file: a native
   <button type="button"> ties Hello Elementor reset.css's own
   [type="button"]/button rule on specificity, and that theme stylesheet
   loads after this one, so source order (not specificity) decided the
   winner and its pink border/color/background silently beat these
   rules. !important on every color/border/background declaration,
   matching the established fix everywhere else in this file. */
.deal-toggle button {
  padding: 8px 18px; border: 1px solid #d0d5dd !important; border-radius: 999px; background: #fff !important;
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--core-text-muted) !important;
}
.deal-toggle button.active { background: var(--core-accent) !important; border-color: var(--core-accent) !important; color: #fff !important; }
/* :not(.active) so hovering the currently-selected pill never lightens
   it toward the unselected look -- only the OTHER, clickable pill gets
   the "this is clickable" affordance. Same light-hover convention as
   .show-more-btn/.unit-card-footer; .active gets the solid-button
   brightness convention (.wf-primary-btn) instead, one row down. */
.deal-toggle button:hover:not(.active) { background: #f4f5f7 !important; border-color: #b7c0cc !important; }
.deal-toggle button.active:hover { filter: brightness(1.08); }

/* Fields now fill the panel's full width as a grid -- same 1fr/1fr/1fr/1.3fr
   proportions (Lage gets a touch more room) already used by the sticky-bar
   drawer's own field grid, so the two surfaces read as one consistent
   control language rather than two independently-tuned layouts. */
.search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: #444; }
.field input, .field select { padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: .95rem; width: 130px; }
.field-check { display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; font-size: .85rem; color: #444; padding-bottom: 8px; }
.field-check input { width: 16px; height: 16px; }
/* Kaufen/Mieten and the action buttons now sit centered under the
   full-width field grid, giving the panel a deliberately symmetric look --
   scoped to .search-panel only, so the drawer's own left-aligned toggle
   and actions (a separate, smaller surface) are unaffected. */
.search-panel .deal-toggle { justify-content: center; margin-bottom: 30px; }
.search-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
/* "Ergebnisse anzeigen" / "Zurücksetzen" are shown only when they have something to do (see wfUpdateActionButtons() in the script).
   The row keeps the height of its fullest state, so the buttons appearing or disappearing never moves the results below: 38px = one button
   (two side by side), 94px = the two stacked buttons below 640px (see that block). The [hidden] rules are needed because the ID rules above
   set display:flex, which would otherwise win over the browser's own [hidden] rule. */
.search-actions { min-height: 38px; }
#search-btn[hidden], #reset-btn[hidden], .sf-drawer-actions [hidden] { display: none !important; }
/* display:flex centering (not padding+height arithmetic) for the label:
   Hello Elementor's reset.css sets line-height:1.5 on every button: at
   height:38px with 10px vertical padding, box-sizing:border-box left
   only 18px of content height for a ~23px line box, clipping/off-
   centering the text vertically. Flex-centering is immune to line-
   height entirely, same fix already used for .lightbox-close's glyph. */
#search-btn { display: flex; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 6px; background: var(--core-accent); color: #fff; font-weight: 650; cursor: pointer; font-size: .95rem; height: 38px; }
#search-btn:hover { filter: brightness(1.08); }
/* #reset-btn never set its own text color -- Hello Elementor's reset.css
   ([type="button"], [type="submit"], button { color: #cc3366; ... }) fills
   that gap with its own pink, since there's no competing declaration to
   lose to in the first place. #reset-btn's ID specificity already beats
   that attribute selector outright once a color is actually declared here,
   so no !important is needed (see the class-based buttons above for the
   cases that really do need it). */
#reset-btn { display: flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #000; cursor: pointer; font-size: .9rem; height: 38px; }
#reset-btn:hover { background: var(--core-surface); border-color: #b7c0cc; }
.search-note { font-size: .78rem; color: var(--core-text-muted); margin: 12px 0 0; }

#result-summary { font-size: .95rem; font-weight: 650; color: var(--core-text); margin: 0 0 20px; }
/* Phase 2 §1: quiet suggestion chips, not a second CTA system -- a neutral
   pill, not the accent-filled search button. Anchored to the container's
   own stable id (same #-anchoring precedent as the compare-share
   header/modal fixes) so it beats a theme's [type="button"]/button reset
   on every pseudo-state without needing !important.
   Affordance pass: these must read as controls, not tags. At rest: white pill, a medium-grey
   border (#858d9a, 3.3:1 on white -- the old #e5e7eb was 1.2:1 and effectively invisible), dark
   text, a hairline shadow and a larger hit area (38px). Green appears only where the interaction
   is -- hover, keyboard focus and press -- using exactly the "Teilen" button's green (#16a34a
   border, #f0fdf4 hover fill), so green keeps meaning "this will apply / is being acted on".
   There is deliberately NO permanently-green or "selected" state: a chip is a suggestion for a
   filter that is not set yet, and the moment it is clicked it is committed through the normal
   filter path and the suggestion disappears (see renderNarrowingSuggestions in the JS), so the
   committed filter is shown by the result summary, not by this chip. */
.narrowing-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 20px; }
.narrowing-suggestions[hidden] { display: none; }
#narrowing-suggestions .narrowing-chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; margin: 0;
  border: 1.5px solid #858d9a; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
  color: var(--core-text-secondary); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: normal;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#narrowing-suggestions .narrowing-chip:hover,
#narrowing-suggestions .narrowing-chip:active {
  background: #f0fdf4; border-color: #16a34a; box-shadow: none; color: var(--core-text);
}
#narrowing-suggestions .narrowing-chip:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
/* Phones: a slightly more compact chip (36px, original font size) so the usual two-chip row keeps fitting on one line at 390-412px exactly as before. */
@media (max-width: 480px) { #narrowing-suggestions .narrowing-chip { height: 36px; padding: 0 14px; font-size: .84rem; } }

.category { margin-bottom: 36px; }
.category-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  border-bottom: 1px solid var(--core-border); padding-bottom: 8px; margin-bottom: 14px;
}
.category-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.category-title.category-title--muted { font-size: 1rem; color: var(--core-text-muted); font-weight: 650; }
.category-count { font-size: .85rem; color: var(--core-text-muted); }

/* Was repeat(auto-fill, minmax(250px, 1fr)) -- fit however many 250px+
   tracks the container allowed, which meant the actual column count
   flipped between 3 and 4 depending on the exact browser window width
   (the .wrap max-width of 1152px only just clears the 4-column
   threshold), reported live as showing 3 per row. Briefly tried an
   explicit repeat(4,1fr) (2026-09-14), reverted the same day: at 4
   columns each floorplan image renders at ~258px wide (down from
   ~367px at 3), noticeably harder to read the in-image room labels/
   dimensions. Settled on repeat(3,1fr) -- deliberate, fills the full
   content width evenly (no leftover gap the way auto-fill's minmax
   could leave), 2 (tablet) / 1 (mobile, unchanged below) as the
   responsive steps. */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.unit-card {
  border: 1px solid var(--core-border); border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 14px rgba(17,24,39,.04);
  display: flex; flex-direction: column;
}
.unit-card img { width: 100%; height: 210px; object-fit: contain; background: #f4f5f7; display: block; border-bottom: 1px solid var(--core-border); }
.plan-thumb { position: relative; }
.plan-thumb img { cursor: zoom-in; }
.plan-expand-badge {
  position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(17,24,39,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: .6; transition: opacity .15s ease, transform .15s ease; pointer-events: none;
}
.plan-thumb:hover .plan-expand-badge, .plan-thumb:focus-visible .plan-expand-badge { opacity: 1; transform: scale(1.08); }
/* Honest degradation for the two non-"ready" floorplan states (see
   floorplanState() in app-b3.js) -- never a substitute image, just a
   plain labeled box the same size as a real thumb would occupy. */
.plan-thumb--placeholder {
  height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #f4f5f7; border-bottom: 1px solid var(--core-border); text-decoration: none; text-align: center; padding: 0 16px;
}
.plan-placeholder-label { font-size: .85rem; font-weight: 600; color: var(--core-text-muted); }
.plan-placeholder-sub { font-size: .78rem; color: var(--core-accent); }
a.plan-thumb--placeholder:hover .plan-placeholder-sub { text-decoration: underline; }
.plan-thumb--none .plan-placeholder-label { color: #9aa1ab; }
/* 2026-09-10 media audit fallback: a real eligible photo (never the
   excluded Musterwohnung/Referenz/Logo pool -- see build_gallery_
   contract()) standing in for the 210px Grundriss slot when no floorplan
   exists, with a small honest badge so it's never mistaken for one.
   Reuses .unit-card img's existing object-fit:contain/#f4f5f7 ground --
   no separate crop/sizing rule needed here. */
.plan-thumb--fallback-image { cursor: zoom-in; }
.plan-thumb-badge {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(17,24,39,.72); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .01em;
}
.unit-card-body { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; }
.unit-card-project { font-size: .96rem; color: var(--core-text); font-weight: 700; letter-spacing: -.005em; margin: 0; }
.unit-card-location { font-size: .8rem; color: var(--core-text-muted); margin: 0 0 10px; }
.unit-card-facts { font-size: .87rem; font-weight: 600; color: var(--core-text-secondary); margin: 0 0 8px; }
.unit-card-tags { display: flex; gap: 6px; margin: 0 0 8px; }
.tag { font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: rgba(71, 85, 105, .12); color: var(--core-accent); }
.unit-card-price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; margin: 0 0 10px; }
/* The card's footer row: two independent 50/50 zones -- "Teilen" (left, shares this unit) and "Merken" (right, the
   compare-shortlist checkbox; its whole half is the label's click target) -- split by a hairline divider. Each zone
   has its own hover and focus state; they are siblings, so a click on one can never reach the other. The row bleeds
   out to the card's own edges via negative margins equal to .unit-card-body's padding (16px sides, 12px bottom);
   .unit-card's own `overflow:hidden` clips the bottom corners back to the card's rounded shape, so no border-radius
   is needed. Deliberately quiet (small muted text, no fills at rest) so it stays secondary to Details/Anfragen.
   The focus ring is drawn inside the zone (negative offset) because the card clips anything outside its edges.
   Without a usable share link the row is "Merken" alone, full width. */
.unit-card-footer {
  margin: auto -16px -12px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-top: 1px solid #f1f2f4;
}
.unit-card-footer--solo { grid-template-columns: 1fr; }
.unit-card-footer .wf-footer-zone {
  box-sizing: border-box; min-width: 0; min-height: 44px; margin: 0; padding: 8px 12px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .8rem; font-weight: 600; line-height: 1.2; color: #444; cursor: pointer;
  background-color: transparent; transition: background-color .15s ease, color .15s ease;
}
.unit-card-footer .wf-footer-zone--keep { border-left: 1px solid #f1f2f4; }
.unit-card-footer--solo .wf-footer-zone--keep { border-left: 0; }
.unit-card-footer .wf-footer-zone:hover { background-color: var(--core-surface); color: var(--core-text); }
.unit-card-footer .wf-footer-zone:focus-visible,
.unit-card-footer .wf-footer-zone--keep:has(input:focus-visible) { background-color: var(--core-surface); color: var(--core-text); }
.unit-card-footer .wf-footer-zone--share:focus-visible,
.unit-card-footer .wf-footer-zone--keep:has(input:focus-visible) { outline: 2px solid var(--core-accent); outline-offset: -2px; }
.unit-card-footer .wf-footer-zone--keep input:focus-visible { outline: none; }
/* "Teilen" is a real <button>: Hello Elementor's reset.css paints [type="button"] with a pink border/fill/hover.
   !important on the properties the theme sets, in every state, as .unit-actions .wf-action does. */
.unit-card-footer .wf-footer-zone--share,
.unit-card-footer .wf-footer-zone--share:hover,
.unit-card-footer .wf-footer-zone--share:focus,
.unit-card-footer .wf-footer-zone--share:active {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important;
  font-family: inherit; font-size: .8rem !important; font-weight: 600 !important; text-decoration: none !important; white-space: nowrap;
  -webkit-appearance: none; appearance: none;
}
.unit-card-footer .wf-footer-zone--share { background-color: transparent !important; color: #444 !important; }
.unit-card-footer .wf-footer-zone--share:hover,
.unit-card-footer .wf-footer-zone--share:focus-visible { background-color: var(--core-surface) !important; color: var(--core-text) !important; }
.unit-card-footer .wf-footer-share-icon { flex-shrink: 0; }
.compare-check { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: #444; cursor: pointer; }
/* A bare label with no background/border of its own to shift, unlike the bordered chips/buttons
   above -- a text darken is the same idiom .wf-text-btn:hover already uses for the same reason.
   .unit-card-footer:hover (one of this class's two real usages) already has its own richer
   background-shift hover; this covers the other usage (.lightbox-family-row-check) and applies
   underneath the footer's own rule there too, harmlessly. */
.compare-check:hover { color: var(--core-text); }

/* Direct actions for one unit (result card and floor-plan view): "Details" (the unit's own page, new tab) and
   "Anfragen" (the one-unit enquiry). Deliberately a clear step up from the small Vergleichen strip below them,
   which stays the optional compare flow. !important on the properties a host theme's generic button/link rules
   would otherwise win, as .wf-primary-btn and .lightbox-close already do. */
.unit-actions { display: flex; gap: 8px; margin: 0 0 12px; }
.unit-actions .wf-action {
  flex: 1 1 0; min-width: 0; box-sizing: border-box; min-height: 40px;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 12px !important; border-radius: 8px !important;
  font-size: .88rem !important; font-weight: 700 !important; line-height: 1.2 !important;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.unit-actions .wf-action--details { background: #fff !important; color: var(--core-accent) !important; border: 1px solid var(--core-border) !important; }
.unit-actions .wf-action--details:hover { background: var(--core-surface) !important; border-color: #b7c0cc !important; }
.unit-actions .wf-action--enquire { background: var(--core-accent) !important; color: #fff !important; border: 1px solid var(--core-accent) !important; }
.unit-actions .wf-action--enquire:hover { filter: brightness(1.08); }
.unit-actions .wf-action:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
.compare-check input { width: 15px; height: 15px; }

.empty-state { color: var(--core-text-muted); padding: 40px 0; text-align: center; }

/* Same exact-specificity-tie collision as .lightbox-close/.sf-toggle-btn/
   .wf-text-btn above: a native <button type="button"> with only a single
   class selector ties Hello Elementor reset.css's [type="button"] rule
   (also specificity 0-1-0), and that theme stylesheet loads after this
   one, so source order -- not specificity -- decided the winner and its
   #cc3366 pink border/color silently beat this rule. !important on
   every color/border/background/padding declaration, matching the
   established fix for the same collision elsewhere in this file. */
.show-more-btn {
  display: block !important; margin: 14px auto 0 !important; padding: 9px 18px !important;
  border: 1px solid #d0d5dd !important; border-radius: 6px !important; background: var(--core-surface) !important;
  color: var(--core-accent) !important; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.show-more-btn:hover { background: #eef1f5 !important; border-color: #b7c0cc !important; }

/* Compare bar */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--core-text); color: #fff;
  padding: 14px 24px; display: none;
  align-items: center; justify-content: center; gap: 20px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.15);
}
.compare-bar.visible { display: flex; }
.compare-bar-text { font-size: .92rem; }
.compare-bar-hint { font-size: .82rem; color: rgba(255,255,255,.82); }
.compare-bar-hint[hidden] { display: none; }

/* The direct one-unit enquiry shows a single column, so on a phone its table must not keep the width of a
   comparison (a 640px minimum that scrolls sideways): fit it to the screen instead. Comparisons and the
   shared-link view are untouched (they do not carry data-wf-view="unit"). */
@media (max-width: 640px) {
  #compare-view[data-wf-view="unit"] table.compare-table { min-width: 0; }
  #compare-view[data-wf-view="unit"] table.compare-table th.compare-row-label { width: 96px; padding-left: 12px; padding-right: 8px; white-space: normal; }
  #compare-view[data-wf-view="unit"] table.compare-table td { padding: 12px; }
  #compare-view[data-wf-view="unit"] table.compare-table td.compare-identity { min-width: 0; }
}
.compare-bar button { padding: 8px 18px; border-radius: 6px; border: 0; font-weight: 650; font-size: .9rem; cursor: pointer; }
.compare-bar-go { background: #fff; color: var(--core-text); transition: background .15s ease; }
.compare-bar-go:hover:not(:disabled) { background: #dfe3e8; }
.compare-bar-go:disabled { opacity: .4; cursor: not-allowed; }
.compare-bar-clear { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4) !important; transition: background .15s ease, border-color .15s ease; }
.compare-bar-clear:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6) !important; }

/* Compare mode: a distinct view -- no hero, no facts, no search chrome,
   no sticky selection bar (its action already happened). */
body.compare-mode .hero { display: none; }
body.compare-mode .wrap { display: none; }
body.compare-mode .compare-bar { display: none !important; }

/* Compare view */
#compare-view { display: none; }
#compare-view.visible { display: block; }
#results-view.hidden { display: none; }
.compare-wrap { max-width: 1400px; margin: 0 auto; padding: 40px 24px 80px; }

.compare-header { margin-bottom: 28px; }
/* Teilen sits in its own row with the heading specifically, not with the whole heading+subheading+Zurück block --
   align-items:flex-start pins both to the row's own top edge, so the pill's top never sits above the heading's own
   line no matter how much taller the pill is (it only ever extends further down, into the row's own bottom, never up
   past the heading's top -- the opposite of centring, which by construction overshoots both directions when the pill
   is taller than the heading's line-height). */
.compare-header-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.compare-heading { margin: 0; font-size: 1.6rem; font-weight: 700; }
.compare-subheading { margin: 4px 0 0; color: var(--core-text-muted); font-size: .95rem; }
/* A recipient-only line of context, not a warning (that's #compare-notice below) -- same size/position as the
   subheading it follows, just in the accent colour so it reads as a deliberate note rather than another plain
   fact line. Hidden entirely for a normal (non-shared) compare session and for the single-unit shared case,
   which already gets its own distinct "Geteilte Wohnung" heading. */
.compare-shared-intro { margin: 4px 0 0; color: var(--core-accent); font-size: .95rem; font-weight: 600; }
.compare-shared-intro[hidden] { display: none; }
/* "Zurück zu den Ergebnissen" sits directly under the heading/subheading block as a quiet utility link: 14.4px/600 text in
   --core-accent, no border/background, no underline at rest, a darker text colour and a thin underline on hover, a strong
   outline on keyboard focus.
   Themes (Hello Elementor's reset.css and Elementor's kit) style every [type="button"] with an outline, a fill on
   hover/focus and their own colour, and load after this file. The selector below starts from #compare-view so it wins
   by specificity, including on :hover/:focus/:active, without any !important. */
#compare-view .compare-header .compare-back {
  display: inline-block; margin-top: 10px; padding: 4px 0; min-height: 32px;
  border: 0; border-radius: 4px; background: none; box-shadow: none;
  font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1.4; letter-spacing: normal; text-transform: none; white-space: nowrap;
  color: var(--core-accent); text-decoration: none; cursor: pointer; transition: color .15s ease;
}
#compare-view .compare-header .compare-back:focus,
#compare-view .compare-header .compare-back:active {
  border: 0; background: none; box-shadow: none; color: var(--core-accent); text-decoration: none;
}
#compare-view .compare-header .compare-back:hover {
  border: 0; background: none; box-shadow: none; color: var(--core-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
#compare-view .compare-header .compare-back:focus-visible {
  outline: 2px solid var(--core-accent); outline-offset: 3px;
}
/* "Teilen" is the header's one remaining top-right action once Zurück moved under the heading -- a bigger, more prominent
   green-outlined pill (not the quiet-link style above) since it's now the sole action up here and deserves its own weight.
   Same override-precedence note as above: selector anchored to #compare-view so it wins over the theme's [type="button"]
   reset, including on :hover/:focus/:active, without any !important.
   margin-top: the heading's own line-height leaves real, measured invisible space above the visible top of its
   glyphs (~7px for this font/size, confirmed via canvas text-metrics + a baseline-marker probe, not a guess) --
   align-items:flex-start on the titlerow alone still leaves Teilen's hard top edge sitting above the "W" glyph's
   actual ink by that amount. This nudges the pill down to close that gap, so its top reads as genuinely flush with
   the heading's visible text, not just its invisible line-box. */
.compare-header-actions { display: flex; align-items: center; flex-wrap: wrap; margin-top: 7px; }
#compare-view .compare-header-actions .compare-share {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 44px; margin: 0; padding: 0 20px; vertical-align: baseline;
  border: 1.5px solid #16a34a; border-radius: 999px; background: #fff; box-shadow: none;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: normal; letter-spacing: normal; text-transform: none; white-space: nowrap;
  color: var(--core-accent); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#compare-view .compare-header-actions .compare-share[hidden] { display: none; }
#compare-view .compare-header-actions .compare-share-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
#compare-view .compare-header-actions .compare-share:focus,
#compare-view .compare-header-actions .compare-share:active {
  border-color: #16a34a; background: #fff; box-shadow: none; color: var(--core-accent);
}
#compare-view .compare-header-actions .compare-share:hover {
  border-color: #16a34a; background: #f0fdf4; box-shadow: none; color: var(--core-text); text-decoration: none;
}
#compare-view .compare-header-actions .compare-share:focus-visible {
  outline: 2px solid #16a34a; outline-offset: 3px;
}
/* Share modal: two large action rows, restrained on purpose (no social-panel grid, no brand colours) -- see
   core-wohnungsfinder.js's SHARE MODAL section for the open/close/focus-trap behaviour.
   Both buttons here are real <button type="button">s, which Hello Elementor's reset.css paints with a pink
   outline, 3px radius and a filled pink hover/focus (and Elementor's kit adds a class-plus-element rule on top),
   loading after this stylesheet -- the exact collision .285 already fixed once for Teilen/Zurück. Every selector
   below is anchored to #compare-share-modal (the modal's own id, present on both buttons' only common ancestor)
   so it wins by specificity, including every pseudo-state, without any !important -- same approach as .285. */
.compare-share-modal { position: fixed; inset: 0; z-index: 1000; }
.compare-share-modal[hidden] { display: none; }
.compare-share-modal-scrim { position: absolute; inset: 0; background: rgba(17, 24, 39, .5); }
.compare-share-modal-panel {
  /* max(…, …vh) so the panel always clears a fixed/sticky theme header (a flat 8vh sat right under it on
     shorter viewports) while still centering lower, proportionally, on tall ones. */
  position: relative; z-index: 1; margin: max(120px, 16vh) auto 0; width: 420px; max-width: calc(100% - 32px);
  background: #fff; border-radius: var(--core-radius); box-shadow: 0 20px 60px rgba(17, 24, 39, .25);
  padding: 28px 24px 24px;
}
#compare-share-modal .compare-share-modal-close,
#compare-share-modal .compare-share-action {
  font-family: inherit; text-decoration: none; text-transform: none; letter-spacing: normal; white-space: normal;
  box-shadow: none; cursor: pointer; -webkit-user-select: none; user-select: none;
}
#compare-share-modal .compare-share-modal-close,
#compare-share-modal .compare-share-modal-close:focus,
#compare-share-modal .compare-share-modal-close:hover,
#compare-share-modal .compare-share-modal-close:active {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: none; color: var(--core-text-secondary);
  font-size: 22px; font-weight: 400; line-height: 1; padding: 0; transition: background-color .15s ease, color .15s ease;
}
#compare-share-modal .compare-share-modal-close:hover { background: var(--core-surface); color: var(--core-text); }
#compare-share-modal .compare-share-modal-close:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
.compare-share-modal-title { margin: 0 0 8px; padding-right: 32px; font-size: 1.15rem; font-weight: 700; color: var(--core-text); }
.compare-share-modal-text { margin: 0 0 20px; color: var(--core-text-secondary); font-size: .9rem; line-height: 1.5; }
.compare-share-modal-actions { display: flex; flex-direction: column; gap: 10px; }
#compare-share-modal .compare-share-action {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px;
  padding: 12px 16px; border: 1px solid var(--core-border); border-radius: 10px; background: #fff;
  font-size: .95rem; font-weight: 600; color: var(--core-text); text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
#compare-share-modal .compare-share-action:hover { border-color: var(--core-accent); background: var(--core-surface); }
#compare-share-modal .compare-share-action:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
.compare-share-action-icon { flex-shrink: 0; color: var(--core-accent); }
#compare-share-modal .compare-share-action--copy.is-copied,
#compare-share-modal .compare-share-action--copy.is-copied:hover { border-color: #16a34a; }
.compare-share-action--copy.is-copied .compare-share-action-icon { color: #16a34a; }
.compare-share-fallback { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 16px 0 0; }
.compare-share-fallback[hidden] { display: none; }
.compare-share-fallback label { font-size: .9rem; font-weight: 600; }
.compare-share-fallback input { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px solid var(--core-border); border-radius: 8px; font: inherit; font-size: .9rem; }
.compare-notice, .wf-share-banner { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--core-border); border-radius: 8px; background: var(--core-surface); color: var(--core-text-secondary); font-size: .9rem; }
.compare-notice[hidden], .wf-share-banner[hidden] { display: none; }
.wf-share-banner-text { margin: 0; }
.wf-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.compare-table-wrap { overflow-x: auto; }
/* Per-cell rules only ever drew the INTERNAL grid (bottom + right of each
   cell) -- there was never a top or left edge, so the table read as open/
   unclosed on three sides. Right/bottom close via the table's own border
   (simple, no exception needed there). Top/left are instead built from
   PER-CELL rules rather than the table's own border, specifically so the
   top-left corner cell can opt out of them below -- a collapsed-border
   conflict between a cell and the table element itself always favors the
   table's border, so the corner cell could never turn its own edge off if
   the table's border supplied it. */
table.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; table-layout: fixed; border-right: 1px solid var(--core-border); border-bottom: 1px solid var(--core-border); }
table.compare-table th, table.compare-table td { border-bottom: 1px solid var(--core-border); border-right: 1px solid var(--core-border); padding: 12px 18px; text-align: left; vertical-align: top; }
table.compare-table tr:first-child th, table.compare-table tr:first-child td { border-top: 1px solid var(--core-border); }
table.compare-table th.compare-row-label { width: 170px; font-size: .84rem; color: var(--core-text-muted); font-weight: 650; white-space: nowrap; border-left: 1px solid var(--core-border); }
table.compare-table td.compare-identity { min-width: 240px; padding-top: 18px; }

/* The top-left corner (above the real attribute-name column) has no
   content and no real relationship to the property cards beside it -- a
   box fully enclosing it on all four sides read as "there should be
   something here" rather than as empty space. Revised per direct
   feedback: only the outer top/left edges (the ones that would have
   closed it into a visible rectangle) are removed. Its border-RIGHT is
   deliberately kept -- that's the real vertical grid line separating the
   attribute-name column from property 1, and it already runs continuously
   through every row below (Preis, Fläche, ...), so keeping it here too
   makes the table's vertical grid consistent top to bottom instead of
   only starting partway down. Its bottom border is also untouched --
   that's the line separating it from the first real row. */
table.compare-table .compare-identity-row th.compare-row-label {
  border-top: none; border-left: none;
}

/* The corner's own border-bottom alone isn't a reliable way to draw the
   divider under the identity row across the FULL width -- in a collapsed-
   border table, that edge is resolved against whatever the row below
   declares for its own border-top, and the label column's cell there
   never explicitly declared one (only .compare-row-label's border-LEFT
   was declared), so that one segment of the line went missing even though
   every other column's identical border-bottom rendered fine. Making the
   first real comparison row explicitly own border-top on ALL of its cells,
   label column included, removes the ambiguity: both sides of that edge
   now agree, so the rule is guaranteed continuous from the label column's
   left edge to the table's right edge, exactly where the real comparison
   matrix begins. */
.compare-identity-row + tr th, .compare-identity-row + tr td { border-top: 1px solid var(--core-border); }
.compare-plan-img { width: 100%; height: 320px; object-fit: contain; background: #f4f5f7; border: 1px solid var(--core-border); border-radius: 8px; margin-bottom: 12px; cursor: zoom-in; }
div.compare-plan-img.compare-plan-img--placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; cursor: default; font-size: .85rem; font-weight: 600; color: var(--core-text-muted); }
.compare-identity-project { font-size: 1.02rem; color: var(--core-text); font-weight: 700; margin: 0; }
.compare-identity-location { font-size: .82rem; color: var(--core-text-muted); margin: 0 0 8px; }
.compare-identity-unit { font-size: .88rem; font-weight: 650; color: var(--core-text); margin: 0 0 6px; }
/* Two compact inline actions, not two full-width text links -- side by side while there's room, wrapping to their
   own lines only once space runs out (mobile). Details ansehen carries slightly more visual weight (size/colour)
   since it's the more useful next step for a recipient; Grundriss-PDF is deliberately the quieter of the two. */
.compare-identity-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 2px; margin: 0 0 10px; }
.compare-detail-link, .compare-pdf-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; }
.compare-detail-link { font-size: .85rem; font-weight: 700; color: var(--core-accent); }
.compare-pdf-link { font-size: .78rem; font-weight: 600; color: var(--core-text-muted); }
.compare-detail-link:hover, .compare-pdf-link:hover { text-decoration: underline; }
.compare-link-icon { flex-shrink: 0; }
td.compare-value { font-variant-numeric: tabular-nums; font-size: .93rem; }
/* Phase 1 §4: a quiet fact, not a "winner" badge -- neutral surface/muted-text
   tokens only (no accent color, no checkmark, no green), the label text alone
   ("günstigste") carries the meaning so it reads correctly without relying on
   color. font-variant-numeric:normal so it never inherits compare-value's
   tabular-nums (this is a word, not a number). */
.compare-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--core-surface); color: var(--core-text-muted);
  font-size: .72rem; font-weight: 600; font-variant-numeric: normal;
  vertical-align: middle; white-space: nowrap;
}

/* Lightbox -- large view without leaving Compare */
/* top: var(--core-sticky-top) (2026-09-29 fix): a tall/portrait floorplan used to be centered
   within the FULL viewport (inset: 0), so on a theme with a fixed header (--core-sticky-top, the
   same variable the Wohnungsfinder's own floating filter bar already uses to sit below that
   header) the top of a tall image could land underneath it, visually clipped. Offsetting the
   centering box's own top by that same header height keeps every part of the modal -- image,
   page selector, caption -- confined to the space actually below the header, for every floorplan
   orientation, not just tall ones. Defaults to 0px (no change) on a theme that never sets the
   variable, same as the filter bar's own convention. */
.lightbox { display: none; position: fixed; top: var(--core-sticky-top, 0px); right: 0; bottom: 0; left: 0; z-index: 100; align-items: center; justify-content: center; padding: 24px; }
.lightbox.visible { display: flex; }
/* position: fixed (not absolute) + inset: 0, deliberately independent of .lightbox's own reduced
   top above -- the dimmed backdrop must still cover the FULL viewport (including visually behind
   the header), only the centered content box itself needs to stay clear of the header. */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .78); }
/* width (not just max-width) is required here: this box's own size used
   to be dictated by #lightbox-img (a real image up to 874px wide,
   always present). Since the Grundriss|Bilder split (2026-09-10) put
   the image in its own .lightbox-pane that's display:none while Bilder
   is active, that anchor disappears whenever the gallery pane is showing
   -- a flex column with align-items:center and no explicit width shrinks
   to whatever's left (the mode-tabs row), collapsing to ~228px on a
   real mobile viewport and forcing the gallery grid into a single
   ~172px column. An explicit width makes the box's size independent of
   which pane happens to be visible. */
/* max-height is computed from the header-adjusted available height (100vh - --core-sticky-top),
   not raw vh, preserving the original 90vh/78vh proportions exactly when no header offset applies
   (--core-sticky-top defaults to 0px) and correctly shrinking them when one does. */
.lightbox-content { position: relative; z-index: 1; background: #fff; border-radius: 12px; padding: 28px; width: min(92vw, 874px); max-height: calc((100vh - var(--core-sticky-top, 0px)) * 0.9); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-content img { max-width: min(92vw, 874px); max-height: calc((100vh - var(--core-sticky-top, 0px)) * 0.78); object-fit: contain; }
/* Hidden (not removed) while a new floorplan loads, so the previous one never flashes. */
.lightbox-content img.lightbox-img--loading { opacity: 0; }
.lightbox-caption { margin: 0; font-size: .9rem; color: var(--core-text-muted); }
/* Direct actions in the floor-plan view: pinned to the bottom edge of the scrolling content so a tall plan never
   pushes them out of sight. Empty (and hidden) when the view was opened from the comparison. */
.lightbox-actions:empty { display: none; }
.lightbox-actions { position: sticky; bottom: -28px; z-index: 2; width: 100%; max-width: 420px; background: #fff; padding: 10px 0 2px; margin-top: auto; }
.lightbox-actions .unit-actions { margin: 0; }
/* .lightbox-close's own selector is a single class -- same specificity
   (0,1,0) as Hello Elementor reset.css's `[type="button"], [type="submit"],
   button` rule, which loads after core-wohnungsfinder.css in the page
   <head>. At an exact specificity tie, later source position wins, so the
   theme's pink/square/untransparent button reset was beating this circular
   close button outright. !important on exactly the properties that rule
   also sets (background/border/border-radius/color/width/height/font-
   size/line-height) restores it -- same narrowly-scoped precedent already
   used for the Hello/Elementor button collision in CORE_Contact_Manager's
   own CSS (button.core-kontakt__submit). The :hover override needs its own
   !important too, or it would stay stuck at the now-important resting
   background forever. */
/* display:flex + padding:0 are required, not cosmetic -- without them
   the browser's own default <button> padding (asymmetric in most UAs)
   pushes the "✕" glyph off-center inside the circle even though
   width/height/border-radius make the circle itself perfectly
   symmetric. Reported live via a screenshot, 2026-09-14. */
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 32px !important; height: 32px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; border: 1px solid var(--core-border) !important; background: #fff !important; cursor: pointer; font-size: 1rem !important; line-height: 1 !important; color: var(--core-text-muted) !important; }
.lightbox-close:hover { background: var(--core-surface) !important; }

/* Grundrissfamilien discovery affordance (Phase 6) -- deliberately
   quiet: one text line below the caption, an optional small panel,
   nothing sized or colored to compete with the floorplan image above
   it. .lightbox-family-toggle is a native <button type="button"> with
   a single class selector -- the exact same specificity-tie collision
   as .lightbox-close right above (0,1,0 ties with Hello Elementor
   reset.css's [type="button"] rule, which loads later and wins any
   tie), so every color/border/background declaration needs !important
   here too, same precedent. */
.lightbox-family { display: none; width: 100%; max-width: 480px; }
.lightbox-family.visible { display: block; }
.lightbox-family-toggle {
  display: block !important; width: 100% !important; text-align: left !important;
  padding: 8px 0 0 !important; margin-top: 4px !important;
  border: 0 !important; border-top: 1px solid var(--core-border) !important;
  background: transparent !important; color: var(--core-accent) !important;
  font-size: .85rem !important; font-weight: 600; cursor: pointer;
}
/* Same underline-on-hover idiom as .compare-detail-link/.compare-pdf-link -- an accent-colored text
   link, not a bordered chip, so the hover feedback is textual rather than a background shift. */
.lightbox-family-toggle:hover { text-decoration: underline; }
.lightbox-family-panel { display: none; }
.lightbox-family-panel.open { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; width: 100%; }
.lightbox-family-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border: 1px solid var(--core-border); border-radius: 6px; font-size: .8rem; color: var(--core-text);
}
.lightbox-family-row-unit { font-weight: 600; flex: 1 1 auto; }
.lightbox-family-row-floor, .lightbox-family-row-area { color: var(--core-text-muted); flex: 0 0 auto; }
.lightbox-family-row-price { font-weight: 600; flex: 0 0 auto; }
.lightbox-family-row-check { flex: 0 0 auto; margin-left: auto; }

/* Multi-floorplan page selector -- shown only when a unit's floorplan collection has 2+ real pages
   (renderLightboxPageSelector()); a single-page unit gets an empty container with no .visible class,
   pixel-identical to before this existed. Horizontally scrolling row (not wrapping) so it stays
   coherent on narrow/mobile viewports regardless of how many pages a unit has. .lightbox-page-tab is
   a native <button type="button"> -- same (0,1,0) specificity tie with Hello Elementor reset.css's
   [type="button"] rule as .lightbox-close/.lightbox-family-toggle above, so the same !important
   precedent applies to every property that rule also sets. */
.lightbox-page-selector { display: none; width: 100%; max-width: 480px; gap: 6px; justify-content: center; overflow-x: auto; padding-bottom: 2px; }
.lightbox-page-selector.visible { display: flex; }
.lightbox-page-tab {
  flex: 0 0 auto; padding: 6px 12px !important; border-radius: 999px !important;
  border: 1px solid var(--core-border) !important; background: #fff !important;
  color: var(--core-text) !important; font-size: .8rem !important; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.lightbox-page-tab.active { background: var(--core-accent) !important; border-color: var(--core-accent) !important; color: #fff !important; }
/* Same neutral hover treatment as .deal-toggle button:hover:not(.active) -- distinct from .active's
   own accent color, so a hovered-but-unselected tab never reads as if it were already selected. */
.lightbox-page-tab:hover:not(.active) { background: #f4f5f7 !important; border-color: #b7c0cc !important; }

/* Grundriss | Bilder mode toggle (2026-09-10 media audit, Phase B) --
   only rendered .visible when a unit genuinely has both a Grundriss AND
   at least one eligible photo (openLightbox()); a unit with only one of
   the two shows that pane directly, no dead/disabled tab. Same
   specificity-tie precedent as .lightbox-close/.lightbox-family-toggle
   above -- native <button type="button">, single class selector,
   !important throughout. */
.lightbox-mode-tabs { display: none; gap: 4px; width: 100%; max-width: 480px; margin-bottom: 4px; }
.lightbox-mode-tabs.visible { display: flex; }
.lightbox-mode-tab {
  flex: 1 1 0; padding: 7px 0 !important; border: 1px solid var(--core-border) !important; border-radius: 6px !important;
  background: transparent !important; color: var(--core-text-muted) !important;
  font-size: .85rem !important; font-weight: 600; cursor: pointer;
}
.lightbox-mode-tab.active { background: var(--core-surface) !important; color: var(--core-text) !important; border-color: var(--core-accent) !important; }
.lightbox-mode-tab:hover:not(.active) { background: var(--core-surface) !important; border-color: #b7c0cc !important; }

/* Each pane owns its own visibility -- .lightbox-content's flex column
   naturally stacks whichever is .active; the other stays display:none via
   .lightbox-pane's own base rule, never relying on the tab styling alone. */
.lightbox-pane { display: none; width: 100%; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-pane.active { display: flex; }

/* Bilder pane: fixed-height contain tiles so mixed aspect ratios never
   crop -- the audit found portrait at 33% of the real corpus (331 of
   1,001 images), not an edge case. Plain, uniform grid for this first
   version; the tiered featured/overflow layout render_gallery() already
   uses on the single property/project pages is a real, tested pattern
   worth revisiting later, deliberately not ported here yet. */
.lightbox-gallery { width: 100%; max-width: 780px; max-height: 70vh; overflow-y: auto; }
.lightbox-gallery-heading { font-size: .85rem; font-weight: 700; color: var(--core-text); margin: 14px 0 8px; }
.lightbox-gallery-heading:first-child { margin-top: 0; }
/* 120px, not 140px: at a real 375px mobile viewport, .lightbox-content's
   own width (min(92vw, 874px)) leaves ~289px here in a browser with
   overlay scrollbars, but a classic (non-overlay) scrollbar on either
   this grid's own overflow-y or .lightbox-content's overflow can eat
   15-17px more -- 140px left only a ~1px margin for 2 columns to fit
   (140*2+8=288 vs 289 available), which collapsed to a single column
   the instant a real scrollbar appeared (found 2026-09-14, reproduced
   in Playwright's classic-scrollbar Chromium, invisible in the overlay-
   scrollbar preview tool that caught the original bug). 120px leaves
   real margin (120*2+8=248) that holds regardless of scrollbar style. */
.lightbox-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.lightbox-gallery-tile {
  display: block; padding: 0 !important; border: 1px solid var(--core-border) !important; border-radius: 6px !important;
  background: #f4f5f7 !important; cursor: zoom-in; overflow: hidden; height: 140px;
}
.lightbox-gallery-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox-gallery-back {
  display: block !important; margin-bottom: 8px !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; color: var(--core-accent) !important;
  font-size: .85rem !important; font-weight: 600; cursor: pointer;
}
.lightbox-gallery-detail { position: relative; width: 100%; text-align: center; }
.lightbox-gallery-detail img { max-width: 100%; max-height: 60vh; object-fit: contain; }
/* Same exact-specificity-tie collision as every other native
   <button type="button"> in this file (.lightbox-close/.show-more-btn/
   .deal-toggle button/...) -- !important on color/border/background,
   same established fix. Omitted entirely for a single-image gallery
   (see showGalleryDetail()) -- nothing to navigate to, so no dead
   arrows sitting there doing nothing. */
.lightbox-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px !important; height: 36px !important;
  display: flex !important; align-items: center; justify-content: center; padding: 0 !important;
  border: 1px solid var(--core-border) !important; border-radius: 50% !important;
  background: rgba(255,255,255,.92) !important; color: var(--core-text) !important;
  cursor: pointer; box-shadow: 0 1px 4px rgba(17,24,39,.12);
}
.lightbox-gallery-nav svg { display: block; }
.lightbox-gallery-nav:hover { background: #fff !important; }
.lightbox-gallery-nav--prev { left: 4px; }
.lightbox-gallery-nav--next { right: 4px; }

/* ENQUIRE -- the next STAGE after Compare, not a second unrelated component
   floating beneath it. A dense, structured table (columns/dividers/rules)
   ending abruptly into plain white left the form reading as an island with
   nothing visually owning it. Fix: a full-bleed, very light background band
   (#enquiry-band, a sibling of .compare-wrap so it isn't constrained by
   that container's own max-width/padding) that spans the page, with the
   actual form staying centered inside it via #enquiry-inner. Deliberately
   NOT a bordered/shadowed card -- that would read as a generic SaaS form
   dropped into an otherwise editorial layout. Reuses --core-surface (the
   same barely-off-white token already used for .fact/.search-panel/etc.)
   rather than inventing a new color. */
/* Being a sibling of .compare-wrap escapes THAT container's own max-width,
   but not the real WordPress page's own outer container (Hello Elementor's
   main.site-main caps at max-width:1140px and centers it) -- needs the
   same calc(50% - 50vw) escape-the-container trick as .hero above, or
   "full-bleed" was only ever true relative to .compare-wrap, not the
   actual page. .enquiry-inner already has its own max-width/margin:auto
   to stay boxed inside this. */
.enquiry-band { background: var(--core-surface); padding: 56px 24px 80px; margin-top: 24px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

/* Centered and ~50% of .compare-wrap's width on desktop (capped so it never
   sprawls on very wide screens), proportionally wider on tablet, and full
   width within the band's own gutters on mobile -- this is meant to read
   as the focused destination of the whole FIND->...->ENQUIRE journey, not a
   narrow sidebar form sitting inside a much wider comparison canvas. */
.enquiry-inner { width: 50%; max-width: 800px; margin: 0 auto; }
.enquiry-heading { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.enquiry-lead { color: var(--core-text-muted); font-size: .95rem; margin: 0 0 22px; }
.enquiry-demo-notice { margin: 0 0 22px; padding: 12px 14px; border: 1px dashed #b45309; border-radius: 6px; background: #fffbeb; color: #78350f; font-size: .9rem; line-height: 1.45; }

/* .wf-chip's base padding/font-size were tuned for a single-word filter
   toggle ("Balkon / Terrasse"); an enquiry chip's content is a longer
   identity string (project + unit code), so it gets a slightly more
   compact footprint here -- scoped to .enquiry-chip only, the shared
   .wf-chip base (and every other place that reuses it) is untouched. This
   is what actually lets 3-4 compared units sit on one row within the
   section's own ~50%-width column instead of wrapping one at a time. */
.enquiry-units { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
/* Combined-class selector (not a bare .enquiry-chip) so this reliably beats
   .wf-chip's own padding/font-size regardless of cascade order -- .wf-chip
   itself is defined in variant-b3.html's inline <style> block, which loads
   AFTER this stylesheet, so a same-specificity .enquiry-chip rule here
   would silently lose to it. */
.wf-chip.enquiry-chip { padding: 0 11px; font-size: .84rem; }

.enquiry-unit-context { margin: 0 0 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--core-border); border-radius: 8px; font-size: .92rem; font-weight: 600; line-height: 1.4; color: var(--core-text); }
.enquiry-criteria { font-size: .85rem; color: var(--core-text-muted); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--core-border); }

.enquiry-form { display: flex; flex-direction: column; gap: 16px; }
.enquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry-field { display: flex; flex-direction: column; gap: 6px; }
.enquiry-field label { font-size: .82rem; font-weight: 600; color: var(--core-text-secondary); }
.enquiry-optional { font-weight: 400; color: var(--core-text-muted); }
.enquiry-input {
  height: 42px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 8px;
  background: #fff; font-size: .9rem; color: var(--core-text); font-family: var(--core-font);
}
.enquiry-textarea { height: auto; padding: 10px 12px; resize: vertical; font-family: var(--core-font); }
.enquiry-input:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }

/* Rückruf anfordern: phone's required state must be obvious the instant the
   checkbox is checked, not only once a failed submit shows a browser
   tooltip -- a border/shadow shift on the field plus a re-worded hint next
   to its label, both toggled live by updateCallbackState(). */
.enquiry-input--required { border-color: #b45309; box-shadow: 0 0 0 1px rgba(180, 83, 9, .15); }
.enquiry-required-hint { color: #b45309; font-weight: 650; }

/* Reveal, not a jump-cut: collapsed to 0 height when Rückruf is off, same
   max-height/opacity technique already used for the sticky-bar's own
   drawer (.sf-drawer) so this reuses an established transition instead of
   inventing a second one. Grouped with the checkbox into one flex child of
   .enquiry-form (rather than being its own sibling) so the form's own
   `gap` never reserves stray space around it while collapsed -- the panel's
   own margin-top animates open/closed instead. */
.enquiry-callback-group { display: flex; flex-direction: column; }
.enquiry-callback-panel { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease; }
.enquiry-callback-panel.open { max-height: 100px; opacity: 1; margin-top: 14px; }

.enquiry-consent { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--core-text-secondary); cursor: pointer; }
.enquiry-consent input { width: 16px; height: 16px; flex-shrink: 0; }
.enquiry-consent input:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
/* The legal consent line specifically (not Rückruf, which reuses the same
   base class and reads correctly as-is) gets a legibility bump -- larger,
   darker text, still regular weight so it doesn't compete with the bold
   field labels above it. */
.enquiry-consent--legal { font-size: .92rem; color: var(--core-text); }

.enquiry-error { color: #b42318; font-size: .85rem; margin: 0; }

/* Stacked, not inline: at the module's new width a text-sized button read
   as visually lightweight against everything above it. Full-width gives
   the primary action the weight the form now calls for; the "select at
   least one" note moves below it rather than crowding it. */
.enquiry-submit-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
/* .wf-primary-btn's own padding/font-size are now !important (see that
   rule's comment -- the Hello Elementor button-reset collision fix), which
   otherwise would have made it beat this MORE SPECIFIC but non-important
   override on the enquiry submit button specifically. !important here too
   so this still wins over the (now-important) generic .wf-primary-btn
   base, restoring the frozen B3 enquiry-submit-row sizing. */
.enquiry-submit-row .wf-primary-btn { width: 100%; padding: 14px 22px !important; font-size: .95rem !important; }
.wf-primary-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.enquiry-none-selected { font-size: .82rem; color: var(--core-text-muted); margin: 0; text-align: center; }

.enquiry-success { border: 1px dashed #b7c0cc; border-radius: 10px; padding: 20px 22px; background: var(--core-surface); }
.enquiry-mock-flag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #b45309; background: rgba(180, 83, 9, .12); padding: 4px 10px; border-radius: 999px; margin: 0 0 12px;
}
.enquiry-success-lead { font-weight: 650; margin: 0 0 14px; }
.enquiry-success-callback { color: var(--core-text-secondary); font-size: .9rem; margin: -6px 0 14px; }
.enquiry-recap { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.enquiry-recap > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: .88rem; }
.enquiry-recap dt { color: var(--core-text-muted); font-weight: 600; }
.enquiry-recap dd { margin: 0; }

/* ENQUIRE width: ~50%/800px-capped only really reads as "centered and
   focused" once the viewport is wide enough for that percentage to still
   comfortably fit a two-column name/email row; below that it should get
   proportionally wider rather than staying pinned to a shrinking 50%. */
@media (max-width: 1024px) {
  .enquiry-inner { width: 80%; max-width: 680px; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Same step the sticky-bar drawer's own field grid already uses. */
@media (max-width: 900px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .field input, .field select { width: 100px; }
  .search-fields { grid-template-columns: 1fr; }
  /* Centered side-by-side buttons have less room per button than the old
     flex-wrap layout (where each got its own full-width line by default) --
     without this, "55 Ergebnisse anzeigen" wraps inside the fixed-height
     button and its second line gets clipped. Stack instead at this width. */
  .search-actions { flex-direction: column; align-items: stretch; }
  .search-actions { min-height: 94px; align-content: flex-start; justify-content: flex-start; }
  .search-actions button { width: 100%; }
  .unit-grid { grid-template-columns: 1fr; }
  .compare-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .compare-bar-text { width: 100%; text-align: center; }
  .compare-bar-hint { width: 100%; text-align: center; margin-top: -6px; }
  .compare-bar button { flex: 1; }
  /* The hint line makes the bar slightly taller than the fixed room the page reserves for it. */
  body:has(.compare-bar.visible) { padding-bottom: 120px; }
  /* Comfortable touch targets for the two direct actions. */
  .unit-actions .wf-action { min-height: 44px; }
  .compare-plan-img { height: 220px; }
  /* Nearly full-width with sensible margins, same vertical placement as desktop -- not a bottom sheet. */
  .compare-share-modal-panel { width: auto; max-width: none; margin: max(88px, 14vh) 16px 0; padding: 24px 18px 20px; }
  .enquiry-band { padding: 40px 20px 56px; }
  .enquiry-inner { width: 100%; max-width: none; }
  .enquiry-row { grid-template-columns: 1fr; }
  .enquiry-recap > div { grid-template-columns: 90px 1fr; }
}

/* Consolidated from variant-b3.html's inline <style> block (the sticky
   filter bar/drawer, added in the "B.3" iteration but never merged into
   this file) -- production has no HTML shell to carry an inline block in,
   so this is its one and only home now. Content unchanged from the
   prototype; the dev-only .variant-label rule is the one thing dropped,
   since its own markup doesn't exist in production either. */

/* Sticky bar, iteration 3: closed = quiet orientation + current criteria;
   open = one deliberate refinement surface with intelligent, inventory-
   informed dropdowns instead of raw number fields. Hero/facts/cards/
   grouping/Compare remain completely untouched. */
/* --core-sticky-top: distance from the top of the viewport the bar sits at. Default 0. A theme with its own fixed
   header sets it to that header's height (for example `:root { --core-sticky-top: 80px; }`), so the bar is not
   hidden underneath it; the script reads the same value for its scroll positioning. */
.sticky-bar {
  position: fixed; top: var(--core-sticky-top, 0px); left: 0; right: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--core-border);
  box-shadow: 0 4px 16px rgba(17,24,39,.08);
  transform: translateY(-100%); opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
/* Hidden means inert too: an invisible bar sitting at the theme offset must not swallow clicks meant for what is under it. */
.sticky-bar { pointer-events: none; }
.sticky-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-bar-inner { max-width: 1152px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 16px; }
.sticky-bar-word { font-weight: 700; font-size: .95rem; color: var(--core-text); flex-shrink: 0; }
.sticky-summary { font-size: .85rem; color: var(--core-text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Same exact-specificity-tie collision as .lightbox-close/.wf-primary-btn/
   .wf-text-btn below (single class vs. Hello Elementor reset.css's
   `[type="button"], [type="submit"], button`, theme wins the tie by
   loading later) -- !important only on the properties that rule also
   sets. .open needs its own !important on background/border-color so it
   stays reachable over the now-important resting state. */
.sf-toggle-btn { padding: 8px 14px !important; border: 1px solid #d0d5dd !important; border-radius: 8px !important; background: #fff !important; font-weight: 600 !important; font-size: .85rem !important; color: var(--core-text) !important; cursor: pointer; flex-shrink: 0; }
.sf-toggle-btn.open { background: var(--core-surface) !important; border-color: var(--core-accent) !important; }
/* Same treatment as #reset-btn:hover -- both are plain white/bordered secondary buttons. */
.sf-toggle-btn:hover:not(.open) { background: var(--core-surface) !important; border-color: #b7c0cc !important; }
.sf-toggle-btn:focus-visible, .wf-control:focus-visible, .wf-primary-btn:focus-visible, .wf-text-btn:focus-visible {
  outline: 2px solid var(--core-accent); outline-offset: 2px;
}
.wf-chip:has(input:focus-visible) {
  outline: 2px solid var(--core-accent); outline-offset: 2px;
}

/* The drawer: one calm, attached surface -- not a second unrelated form. */
.sf-drawer { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--core-surface); }
.sf-drawer.open { max-height: 400px; border-top: 1px solid var(--core-border); }
.sf-drawer-inner { max-width: 1152px; margin: 0 auto; padding: 18px 24px 20px; }
.sf-drawer-context { font-size: .78rem; color: var(--core-text-muted); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.sf-drawer .deal-toggle { margin-bottom: 16px; }
.sf-drawer .deal-toggle button { padding: 6px 15px; font-size: .84rem; }

.sf-drawer-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 16px; align-items: end; margin: 0 0 18px; }

/* Weitere Wünsche: deliberately quieter than Grundkriterien -- smaller
   label, a thin dashed rule (vs. the grid's solid structure above), and
   the chip keeps its own natural (not stretched) width so it reads as
   a small tag, not a fifth grid column pretending to be a primary field. */
.sf-secondary { margin: 26px 0 22px; }
.sf-secondary-label { font-size: .72rem; color: var(--core-text-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sf-secondary-options { display: flex; flex-wrap: wrap; gap: 10px; }
.wf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wf-field label { font-size: .78rem; color: var(--core-text-muted); font-weight: 600; }
.wf-control {
  height: 42px; padding: 0 32px 0 12px; border: 1px solid #d0d5dd; border-radius: 8px;
  background-color: #fff; font-size: .9rem; color: var(--core-text); font-family: var(--core-font);
  appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.wf-control option[data-noop="1"] { color: #a3a9b2; }

/* The original search-panel's .field wrapper predates wf-control and
   otherwise wins on specificity (.field select) -- reassert wf-control's
   own sizing here rather than touching the shared style.css. */
.field select.wf-control, .field input.wf-control { width: 100%; padding: 0 32px 0 12px; border: 1px solid #d0d5dd; }

/* Balkon/Terrasse: a checkbox in behavior, never in appearance. The
   entire tile is the control -- no boxed glyph, no secondary control
   riding inside it. Unchecked reads as an ordinary, available filter
   tile; checked stays the same shape and uses only a border/surface/
   text-weight shift plus a trailing checkmark that belongs to the tile
   itself (CSS-generated, not a separate element) -- restrained on
   purpose, since this is a filter criterion, not a call to action. */
.wf-chip { height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #d0d5dd; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: .9rem; color: var(--core-text); font-weight: 600; white-space: nowrap; }
.wf-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.wf-chip.checked { background: var(--core-surface); border-color: var(--core-accent); font-weight: 700; }
.wf-chip.checked::after { content: "✓"; margin-left: 9px; color: var(--core-accent); font-weight: 700; }
/* Deliberately NOT the same colors as .checked (var(--core-surface)/var(--core-accent)) -- an
   unchecked-but-hovered tile must never look already-selected. Same neutral pair as
   .deal-toggle button:hover:not(.active) instead. */
.wf-chip:hover:not(.checked) { background: #f4f5f7; border-color: #b7c0cc; }

.sf-drawer-actions { display: flex; align-items: center; gap: 18px; min-height: 44px; }
/* .wf-primary-btn/.wf-text-btn are each a single class -- specificity
   (0,1,0), an exact tie with Hello Elementor reset.css's
   `[type="button"], [type="submit"], button` (every button here is
   type="button" or type="submit"). Tied specificity falls to source
   order, and that theme stylesheet is enqueued after core-wohnungsfinder
   .css, so it was winning: pink/transparent/3px-radius buttons in place
   of the frozen B3 design's solid accent button and underlined text
   button. !important restores exactly the properties the theme rule also
   sets (background/border/border-radius/color/font-weight/font-size/
   padding) -- same narrowly-scoped precedent as CORE_Contact_Manager's
   own Hello/Elementor button-collision workaround
   (button.core-kontakt__submit). .wf-primary-btn:hover only ever touched
   filter (untouched by the theme), so it needs no change; .wf-text-btn:
   hover changes color and needs its own !important to stay reachable
   over the now-important resting color. */
.wf-primary-btn { padding: 11px 22px !important; border: 0 !important; border-radius: 8px !important; background: var(--core-accent) !important; color: #fff !important; font-weight: 700 !important; font-size: .9rem !important; cursor: pointer; }
.wf-primary-btn:hover { filter: brightness(1.08); }
.wf-text-btn { padding: 8px 2px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--core-text-muted) !important; font-weight: 600 !important; font-size: .85rem !important; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wf-text-btn:hover { color: var(--core-text) !important; }

@media (max-width: 900px) {
  .sf-drawer-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sticky-bar-word { display: none; }
  .sf-drawer.open { max-height: 480px; overflow-y: auto; }
  .sf-drawer-fields { grid-template-columns: 1fr; }
}

/* Production-only: the live units fetch has a real failure mode a static
   snapshot never had. Deliberately plain -- this is a fallback, not a
   designed empty/error state for the frozen UI. */
.wf-load-error {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #f0b7b7;
  border-radius: 8px;
  background: #fdf2f2;
  color: #7a2020;
  font-size: 0.9rem;
}

/* Enquiry form: inline validation, the privacy link, and room above fixed bottom bars (cookie banner, accessibility button).
   --wf-bottom-inset is set by core-wohnungsfinder.js while the enquiry is open; without it every rule below is inert. */
.enquiry-field-error { color: #b42318; font-size: .82rem; line-height: 1.35; margin: 0; }
.enquiry-field--full .enquiry-field-error, .enquiry-consent--legal + .enquiry-field-error { margin-top: -8px; }
.enquiry-input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px rgba(180, 35, 24, .25); }
.enquiry-consent input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.enquiry-consent a { color: var(--core-accent); text-decoration: underline; text-underline-offset: 2px; }
#enquiry-section, #enquiry-success { scroll-margin-top: 96px; }
body.compare-mode .enquiry-band { padding-bottom: calc(80px + var(--wf-bottom-inset, 0px)); }
@media (max-width: 640px) {
  body.compare-mode .enquiry-band { padding-bottom: calc(56px + var(--wf-bottom-inset, 0px)); }
  /* Direct one-unit enquiry on a phone: the heading and the unit line are what the visitor lands on -- keep them compact. */
  .enquiry-band { padding-top: 24px; margin-top: 8px; }
}

/* R024: the honeypot. Moved off the page, not display:none (a bot that skips display:none fields would slip through);
   a person never sees it or reaches it by keyboard (tabindex -1, aria-hidden). */
.enquiry-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================================================
   Suchwunsch speichern (search profile) -- only present when the install switched the feature on; core-wohnungsfinder-search-profile.js
   adds the button and the dialog. Every button rule is anchored to an ID so it beats Hello Elementor's reset.css / Elementor kit button
   paint (pink outline, filled hover), the same way #compare-share-modal does above.
   ========================================================================================================== */
#core-sp-open {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--core-border); border-radius: 6px; background: #fff; color: var(--core-text);
  font: inherit; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer; box-shadow: none;
}
#core-sp-open:hover, #core-sp-open:focus { background: var(--core-surface); border-color: #b7c0cc; color: var(--core-text); }
#core-sp-open:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }

html.core-sp-open-lock { overflow: hidden; }
.core-sp-modal { position: fixed; inset: 0; z-index: 1001; overflow-y: auto; }
.core-sp-modal[hidden] { display: none; }
.core-sp-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .5); }
.core-sp-panel {
  position: relative; z-index: 1; margin: max(96px, 10vh) auto 32px; width: 560px; max-width: calc(100% - 32px);
  background: #fff; border-radius: var(--core-radius); box-shadow: 0 20px 60px rgba(17, 24, 39, .25); padding: 28px 24px 24px;
  color: var(--core-text); font-size: .95rem; line-height: 1.5;
}
.core-sp-panel:focus { outline: none; }
#core-sp-modal .core-sp-x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--core-text-secondary); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none;
}
#core-sp-modal .core-sp-x:hover, #core-sp-modal .core-sp-x:focus { background: var(--core-surface); color: var(--core-text); }
#core-sp-modal .core-sp-x:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
.core-sp-title { margin: 0 0 10px; padding-right: 32px; font-size: 1.2rem; font-weight: 700; color: var(--core-text); }
.core-sp-intro { margin: 0 0 6px; color: var(--core-text-secondary); }
.core-sp-noauto { margin: 0 0 16px; color: var(--core-text-secondary); font-size: .85rem; }
.core-sp-summary { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--core-border); border-radius: 10px; background: var(--core-surface); }
.core-sp-summary-label { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--core-text-secondary); }
.core-sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.core-sp-chips li { margin: 0; padding: 4px 10px; border: 1px solid var(--core-border); border-radius: 999px; background: #fff; font-size: .85rem; }
.core-sp-note { margin: 10px 0 0; font-size: .82rem; color: #92400e; }
.core-sp-warn { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f59e0b; border-radius: 8px; background: #fffbeb; color: #78350f; font-size: .9rem; }
.core-sp-form { display: flex; flex-direction: column; gap: 14px; }
.core-sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.core-sp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.core-sp-field label { font-size: .82rem; font-weight: 600; color: var(--core-text-secondary); }
.core-sp-optional { font-weight: 400; }
.core-sp-input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--core-border); border-radius: 8px; background: #fff; color: var(--core-text); font: inherit; font-size: .95rem; }
.core-sp-input:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
.core-sp-input[aria-invalid="true"] { border-color: #b91c1c; }
textarea.core-sp-input { resize: vertical; min-height: 72px; }
.core-sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.core-sp-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--core-text-secondary); cursor: pointer; }
.core-sp-consent input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.core-sp-field-error { margin: 0; font-size: .82rem; color: #b91c1c; }
.core-sp-field-error[hidden], .core-sp-error[hidden] { display: none; }
.core-sp-error { margin: 0; padding: 10px 12px; border: 1px solid #fca5a5; border-radius: 8px; background: #fef2f2; color: #7f1d1d; font-size: .9rem; }
.core-sp-success { margin: 0 0 8px; padding: 12px 14px; border: 1px solid #86efac; border-radius: 8px; background: #f0fdf4; color: #14532d; font-weight: 600; }
.core-sp-success:focus { outline: none; }
.core-sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
#core-sp-modal .core-sp-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--core-accent); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none;
}
#core-sp-modal .core-sp-submit:hover, #core-sp-modal .core-sp-submit:focus { filter: brightness(1.08); background: var(--core-accent); color: #fff; }
#core-sp-modal .core-sp-submit:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
#core-sp-modal .core-sp-submit[disabled] { opacity: .7; cursor: progress; }
#core-sp-modal .core-sp-submit[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
#core-sp-modal .core-sp-cancel {
  min-height: 42px; padding: 0 14px; border: 0; background: none; color: var(--core-text-secondary); font: inherit; font-size: .95rem; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; text-decoration: underline;
}
#core-sp-modal .core-sp-cancel:hover, #core-sp-modal .core-sp-cancel:focus { background: none; color: var(--core-text); }
#core-sp-modal .core-sp-cancel:focus-visible { outline: 2px solid var(--core-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .core-sp-panel { margin: 72px auto 16px; padding: 24px 16px 18px; }
  .core-sp-row { grid-template-columns: 1fr; }
  .core-sp-actions { flex-direction: column; align-items: stretch; }
  #core-sp-modal .core-sp-submit, #core-sp-modal .core-sp-cancel { width: 100%; }
}
/* Inventory relationships (combined configurations); present only while the module is loaded. Pills stack with the same 6px gap as the feature tags below them (top spacing comes from the facts line above). */
.unit-card-relation { align-self: flex-start; max-width: 100%; margin: 0 0 6px; font-size: .78rem; font-weight: 600; display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; border: 1px dashed #94a3b8; }
.unit-card-relation--combo { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.unit-card--related { outline: 2px solid #6366f1; outline-offset: 2px; transition: outline-color .12s ease; }
.compare-bar-overlap { font-size: .82rem; color: #fff; background: rgba(255,255,255,.16); padding: 3px 9px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .unit-card--related { transition: none; } }
.unit-card-relation--check { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.enquiry-availability-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #fdba74; border-radius: 8px; background: #fff7ed; color: #7c2d12; font-size: .92rem; }
