/* BB Wohnungsangebote – Design 1:1 von bg-bad-brueckenau.de/wohnungsangebote übernommen */

/* Divi-Abstände der Unter-Module neutralisieren */
.bb_wohnungen .bb_wohnung,
.et_pb_column .bb_wohnungen .et_pb_module.bb_wohnung { margin: 0 !important; padding: 0 !important; }

.wa-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.wa-head .bb-h2 { margin-bottom: 12px; }
.wa-lead { font-size: 17px; color: #5f574d; line-height: 1.6; }

.wa-card { display: grid; grid-template-columns: 1.08fr 1fr; background: #fff; border: 1px solid #e9dfcf; border-radius: 28px; overflow: hidden; margin-bottom: 36px; box-shadow: rgba(47,37,27,.55) 0 40px 70px -50px; }
.wa-media { display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 12px; background: #fff; }
.wa-main, .wa-th { border: 0; cursor: zoom-in; background-size: cover; background-position: center center; border-radius: 20px; position: relative; padding: 0; transition: filter .25s, transform .35s; }
.wa-main { min-height: 380px; }
.wa-main.wa-noimg { cursor: default; background: #f7f3ec; }
.wa-main:hover, .wa-th:hover { filter: brightness(1.06); }
.wa-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wa-th { aspect-ratio: 4 / 3; border-radius: 14px; }
.wa-th span { position: absolute; inset: 0; border-radius: 14px; background: rgba(47,37,27,.62); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.wa-badge { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); color: #2f251b; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.wa-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9a5b; box-shadow: rgba(63,154,91,.2) 0 0 0 3px; }
.wa-count { position: absolute; right: 16px; bottom: 16px; background: rgba(35,27,19,.6); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }

.wa-body { padding: 44px 46px 40px; display: flex; flex-direction: column; }
.wa-kicker { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px !important; color: #8a7458 !important; padding: 0 0 8px !important; }
#main-content .wa-title, .wa-card .wa-title { letter-spacing: -.01em; font-size: 30px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #2f251b !important; padding: 0 0 22px !important; border: 0 !important; }
.wa-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.wa-facts div { background: #f7f3ec; border: 1px solid #efe5d5; border-radius: 14px; padding: 12px 12px 11px; }
.wa-facts small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8a7458; margin-bottom: 3px; }
.wa-facts b { font-size: 16px; font-weight: 700; color: #2f251b; white-space: nowrap; }
.wa-intro { font-size: 15.5px !important; line-height: 1.7 !important; color: #5f574d !important; padding: 0 0 18px !important; }
.wa-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; list-style: none !important; padding: 0 !important; margin: 0 0 28px !important; }
.wa-feat li { position: relative; font-size: 14.5px; color: #3d342a; line-height: 1.45; padding-left: 26px !important; }
.wa-feat li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350402f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center center / 11px auto no-repeat #e3d3b8; }

.wa-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #efe5d5; }
.wa-price b { display: block; font-size: 34px; font-weight: 800; color: #50402f; line-height: 1; letter-spacing: -.02em; }
.wa-price small { display: block; font-size: 13px; color: #8a7458; font-weight: 600; margin-top: 6px; }
.wa-price em { display: block; font-style: normal; font-size: 12.5px; color: #8a7f72; margin-top: 6px; max-width: 300px; line-height: 1.45; }
.wa-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; background: #50402f; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14.5px; transition: background .2s, transform .2s; white-space: nowrap; color: #fff !important; }
.wa-btn:hover { background: #2f251b; transform: translateY(-2px); }
.wa-btn.ghost { background: transparent; border: 1.5px solid #d9c7a8; color: #50402f !important; }
.wa-btn.ghost:hover { background: #f1e7d6; }
.wa-btn.light { background: #e3d3b8; color: #2f251b !important; }
.wa-btn.light:hover { background: #fff; }

.wa-empty { background: #fff; border: 1px solid #e9dfcf; border-radius: 28px; padding: 44px 46px; text-align: center; margin-bottom: 36px; }
.wa-empty p { font-size: 16.5px !important; line-height: 1.7 !important; color: #5f574d !important; padding: 0 !important; max-width: 640px; margin: 0 auto; }

.wa-apply { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(135deg, #50402f, #2f251b); border-radius: 28px; padding: 40px 46px; color: #fff; margin-top: 10px; }
#main-content .wa-apply h3, .wa-apply h3 { color: #fff !important; font-size: 24px !important; font-weight: 800 !important; padding: 0 0 6px !important; }
.wa-apply p { color: rgba(255,255,255,.8) !important; font-size: 15.5px !important; padding: 0 !important; }

/* Lightbox */
.wa-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(20,15,10,.92); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; }
.wa-lb.on { display: flex; }
.wa-lb figure { margin: 0; max-width: 88vw; text-align: center; }
.wa-lb img { max-width: 88vw; max-height: 80vh; border-radius: 16px; box-shadow: rgba(0,0,0,.5) 0 30px 80px; }
.wa-lb figcaption { color: #efe6d6; font-size: 14px; margin-top: 14px; letter-spacing: .02em; }
.wa-lb button { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.wa-lb button:hover { background: rgba(255,255,255,.25); }
.wa-x { top: 24px; right: 24px; }
.wa-p { left: 24px; top: 50%; margin-top: -26px; }
.wa-n { right: 24px; top: 50%; margin-top: -26px; }

@media (max-width: 980px) {
  .wa-card { grid-template-columns: 1fr; }
  .wa-main { min-height: 300px; }
  .wa-body { padding: 30px 26px; }
  .wa-apply { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}
@media (max-width: 600px) {
  .wa-facts { grid-template-columns: 1fr 1fr; }
  .wa-feat { grid-template-columns: 1fr; }
  .wa-main { min-height: 240px; }
  #main-content .wa-title, .wa-card .wa-title { font-size: 25px !important; }
  .wa-cta { width: 100%; }
  .wa-cta .wa-btn { flex: 1 1 0%; }
  .wa-lb button.wa-p, .wa-lb button.wa-n { top: auto; bottom: 24px; margin: 0; }
}
