/* ImmoMakler-Karten – Farben bewusst neutral und vom Twenty Twenty-Five Theme geerbt. */
.bsw-w { --bsw-border: #dadada; --bsw-muted: #666; width: 100%; color: inherit; }
.bsw-w *, .bsw-w *::before, .bsw-w *::after { box-sizing: border-box; }
.bsw-w__toolbar { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin: 0 0 24px; }
.bsw-w__filter { flex: 1 1 170px; min-width: 160px; }
.bsw-w__filter label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 650; }
.bsw-w__filter select { appearance: auto; display: block; width: 100%; max-width: none; min-height: 44px; margin: 0; border: 1px solid var(--bsw-border); border-radius: 7px; padding: 9px 12px; background: var(--wp--preset--color--base, #fff); color: inherit; font: inherit; font-size: .91rem; cursor: pointer; }
.bsw-w__filter select:focus-visible, .bsw-w a:focus-visible, .bsw-w button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bsw-w__count { margin-left: auto; padding-bottom: 11px; white-space: nowrap; font-size: .84rem; color: var(--bsw-muted); }
.bsw-w__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bsw-w__card { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 50%); min-width: 0; min-height: 264px; overflow: hidden; border: 1px solid var(--bsw-border); border-radius: 11px; background: var(--wp--preset--color--base, #fff); box-shadow: 0 2px 9px rgb(0 0 0 / 3%); }
.bsw-w__card[hidden], .bsw-w__empty[hidden] { display: none !important; }
.bsw-w__image-link { display: block; min-width: 0; min-height: 100%; position: relative; background: #f1f1f1; overflow: hidden; }
.bsw-w__image { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; transition: transform .2s ease; }
.bsw-w__image-link:hover .bsw-w__image { transform: scale(1.025); }
.bsw-w__placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; color: #666; font-size: .85rem; }
.bsw-w__body { min-width: 0; display: flex; flex-direction: column; padding: 16px 17px 14px; }
.bsw-w__title { margin: 0 0 9px; font-size: 1.1rem; line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.bsw-w__title a { color: inherit; text-decoration: none; }
.bsw-w__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.bsw-w__facts { margin: 0; display: grid; gap: 3px; }
.bsw-w__facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .85rem; line-height: 1.5; }
.bsw-w__facts dt { font-weight: 400; color: var(--bsw-muted); }
.bsw-w__facts dd { margin: 0; font-weight: 600; text-align: right; }
.bsw-w__price { border-top: 1px solid var(--bsw-border); margin-top: 11px; padding-top: 9px; display: flex; flex-direction: column; gap: 1px; }
.bsw-w__price-label, .bsw-w__old-price { font-size: .78rem; color: var(--bsw-muted); }
.bsw-w__old-price del { margin-left: 5px; }
.bsw-w__price strong { font-size: clamp(1.08rem, 1.65vw, 1.3rem); line-height: 1.3; font-weight: 760; }
.bsw-w__sqm { font-size: .8rem; color: var(--bsw-muted); }
.bsw-w__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: auto; padding-top: 14px; }
.bsw-w__button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 37px; padding: 7px 11px; border: 1px solid var(--bsw-red-dark, #222); border-radius: 6px; background: var(--bsw-red-dark, #222); color: var(--wp--preset--color--base, #fff) !important; font-size: .82rem; font-weight: 650; line-height: 1.2; text-decoration: none !important; }
.bsw-w__button:hover { opacity: .88; }
.bsw-w__floorplan { font-size: .81rem; line-height: 1.35; text-underline-offset: 3px; color: inherit; }
.bsw-w__empty { padding: 18px; border: 1px dashed var(--bsw-border); border-radius: 8px; }
.bsw-w__dialog { width: min(96vw, 1100px); max-width: 1100px; max-height: 92vh; margin: auto; padding: 42px 14px 14px; border: 0; border-radius: 9px; background: #fff; color: #222; box-shadow: 0 14px 60px rgb(0 0 0 / 25%); }
.bsw-w__dialog::backdrop { background: rgb(0 0 0 / 72%); }
.bsw-w__dialog img { display: block; max-width: 100%; max-height: calc(92vh - 65px); height: auto; width: auto; margin: auto; object-fit: contain; }
.bsw-w__dialog-close { position: absolute; top: 7px; right: 10px; border: 0; background: transparent; color: #222; font-size: .94rem; font-family: inherit; cursor: pointer; padding: 6px 8px; }
.bsw-w-message { padding: 12px 0; }
@media (max-width: 960px) {
  .bsw-w__grid { grid-template-columns: minmax(0, 1fr); }
  .bsw-w__card { grid-template-columns: minmax(0, 50%) minmax(0, 50%); min-height: 230px; }
  .bsw-w__body { padding: 18px 22px; }
}
@media (max-width: 620px) {
  .bsw-w__toolbar { gap: 9px; margin-bottom: 16px; }
  .bsw-w__filter { flex: 1 1 calc(50% - 9px); min-width: 0; }
  .bsw-w__filter:last-of-type { flex-basis: 100%; }
  .bsw-w__count { padding: 2px 0 0; width: 100%; text-align: left; }
  .bsw-w__card { grid-template-columns: minmax(0, 50%) minmax(0, 50%); min-height: 225px; }
  .bsw-w__body { padding: 12px 12px; }
  .bsw-w__price strong { font-size: 1.12rem; }
  .bsw-w__title { font-size: 1rem; }
  .bsw-w__facts > div { font-size: .79rem; }
  .bsw-w__actions { padding-top: 9px; }
  .bsw-w__button { font-size: .78rem; }
}
@media (max-width: 430px) {
  .bsw-w__card { grid-template-columns: 1fr; }
  .bsw-w__image-link { height: 175px; min-height: 0; }
  .bsw-w__image { height: 175px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bsw-w__image { transition: none; }
}
