/* ImmoBz theme over Bootstrap 5.3 (approved direction A) */
:root {
  --bs-primary: #c0392b;
  --bs-primary-rgb: 192, 57, 43;
  --bs-link-color: #b8321f;
  --bs-link-color-rgb: 184, 50, 31;
  --bs-link-hover-color: #8c2415;
  --bs-link-hover-color-rgb: 140, 36, 21;
  --bs-body-font-family: Manrope, system-ui, sans-serif;
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .9rem;
}
.btn { --bs-btn-padding-y: .65rem; --bs-btn-font-weight: 700; }
.btn-primary {
  --bs-btn-bg: #c0392b; --bs-btn-border-color: #c0392b;
  --bs-btn-hover-bg: #a53125; --bs-btn-hover-border-color: #a53125;
  --bs-btn-active-bg: #8c2415; --bs-btn-active-border-color: #8c2415;
}
.btn-outline-primary {
  --bs-btn-color: #b8321f; --bs-btn-border-color: #c0392b;
  --bs-btn-hover-bg: #c0392b; --bs-btn-hover-border-color: #c0392b;
  --bs-btn-active-bg: #8c2415; --bs-btn-active-border-color: #8c2415;
}
.form-control, .form-select { min-height: 2.9rem; }
.navbar-immobz { background: #c0392b; }
.ph { background: #e9ecef; color: #495057; display: flex; align-items: center; justify-content: center; }
.listing-photo { height: 200px; width: 100%; object-fit: cover; }

/* Home slideshow with the search card overlapping its lower edge */
.hero-slide { display: block; width: 100%; height: 480px; object-fit: cover; background: #3a3f45; }
.hero-search { position: relative; z-index: 2; margin-top: -90px; }
#home-slides .carousel-indicators { bottom: 90px; }
@media (max-width: 767.98px) {
    .hero-slide { height: 240px; }
    .hero-search { margin-top: -32px; }
    #home-slides .carousel-indicators { bottom: 32px; }
}

/* Full-screen photo viewer */
.photo-viewer .carousel { min-height: 0; overflow: hidden; }
.photo-viewer .carousel-inner { position: absolute; inset: 0; }
.photo-viewer .carousel-item { height: 100%; }
.photo-viewer .carousel-item img { width: 100%; height: 100%; object-fit: contain; }
[data-photo] { cursor: zoom-in; }

/* Advertising: fixed height, reserved before the ad loads */
.ad-box { min-height: 250px; overflow: hidden; }
.ad-box ins { display: block; width: 100%; height: 250px; }

/* Policy text supplied by iubenda */
.policy h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.policy h3 { font-size: 1.15rem; margin-top: 1.25rem; }
.policy h4 { font-size: 1rem; }
.policy img { max-width: 100%; height: auto; }
.policy { overflow-wrap: break-word; }
.policy li:has(> ul:first-child) { list-style: none; }
.partner-frame { width: 100%; height: 250px; border: 0; display: block; }

/* One strip for all advertising: equal boxes, same height */
.sponsors { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #e0dcd7; }
.sponsors-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5c666d; margin-bottom: .75rem; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1rem; }
.sponsor { height: 274px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: .9rem; padding: 12px; overflow: hidden; min-width: 0; }
.sponsor:not(:has(*)) { display: none; }
/* The ad has a box only once it may be requested (marketing consent), and none if Google has nothing for it. */
html:not(.ads-on) .sponsor:has(ins.adsbygoogle), .sponsor:has(ins[data-ad-status="unfilled"]) { display: none; }
.sponsor > .ad-box, .sponsor > .partner-frame { width: 100%; height: 250px; min-height: 250px; }
.sponsor a, .sponsor img { display: block; height: 100%; max-width: 100%; }
.sponsor img { width: auto; object-fit: contain; margin: 0 auto; }

/* New ad wizard */
#wizard .progress-bar { background-color: var(--bs-primary); }

/* Disabled outline buttons stay in the site colour */
.btn-outline-primary { --bs-btn-disabled-color: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary); }

/* ---- Restyle: photo-led home (direction B), refined results and listing pages (direction A) ---- */
body.home { background: #f7f5f1; }
body.soft { background: #f6f4f2; }
.section-title { font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.75rem; margin-bottom: 1.25rem; }

/* Header laid over the home hero */
.navbar-immobz.navbar-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: linear-gradient(rgba(8,16,28,.75), rgba(8,16,28,0)); }
@media (max-width: 1199.98px) {
    .navbar-overlay .navbar-collapse { background: rgba(8,16,28,.94); border-radius: 1rem; padding: 1rem; margin-top: .75rem; }
    .navbar-overlay .navbar-collapse.collapse:not(.show) { display: none; }
}

/* Hero: full-width slideshow with headline and search on top */
.hero { position: relative; color: #fff; }
.hero .hero-slide { height: 760px; }
.hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: rgba(8,16,28,.45); }
.hero #home-slides .carousel-indicators { bottom: 1rem; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }
.hero-content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1rem 3rem; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-eyebrow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .75rem; }
.hero-title { font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.12; max-width: 56rem; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-text { max-width: 44rem; margin-bottom: 1.75rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; max-width: 56rem; background: #fff; color: #17202a; border-radius: 999px; padding: .6rem; text-align: left; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.hero-field { flex: 1 1 9rem; padding: 0 1.1rem; min-width: 0; }
.hero-field-wide { flex-grow: 2; }
.hero-field label { display: block; font-size: .75rem; font-weight: 700; }
.hero-field select { width: 100%; border: 0; background: transparent; padding: .3rem 0; font-size: 1rem; min-height: 2.2rem; }
.hero-form .btn { min-height: 3.4rem; }
@media (max-width: 767.98px) {
    .hero .hero-slide { height: 700px; }
    .hero-form { border-radius: 1.25rem; padding: 1rem; }
    .hero-field { flex-basis: 100%; padding: 0; border-bottom: 1px solid #e3ded6; }
    .hero-form .btn { width: 100%; }
    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}

/* Town mosaic */
.town-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 1rem; }
.town-tile { position: relative; display: block; border-radius: 1.25rem; overflow: hidden; color: #fff; }
.town-tile-large { grid-column: span 2; grid-row: span 2; }
.town-tile:nth-child(6) { grid-column: 1 / -1; }
.town-tile picture, .town-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.town-tile img { transition: transform .35s ease; }
.town-tile:hover img { transform: scale(1.05); }
.town-tile span { position: absolute; left: .9rem; bottom: .9rem; background: rgba(8,16,28,.78); border-radius: 999px; padding: .45rem 1rem; font-family: Sora, Manrope, sans-serif; font-weight: 600; }
.town-tile:hover { color: #fff; }
@media (max-width: 991.98px) { .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid #ddd8d0; border-radius: 999px; padding: .65rem 1.1rem; color: #17202a; font-weight: 700; text-decoration: none; }
.chip:hover { border-color: #17202a; color: #17202a; }
.cta-band { background: #17202a; color: #fff; border-radius: 1.25rem; padding: 2rem; }

/* Listing cards */
.listing-card { position: relative; border: 0; box-shadow: 0 4px 18px rgba(0,0,0,.07); transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.13); }
.listing-card .listing-photo { height: 230px; }
.listing-card-top { position: absolute; top: .75rem; left: .75rem; right: .75rem; z-index: 2; display: flex; align-items: flex-start; pointer-events: none; }
.listing-card-top > * { pointer-events: auto; }
.offer-chip { background: #fff; border-radius: 999px; padding: .35rem .8rem; font-weight: 800; font-size: .8rem; }
.heart { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #fff; color: #a82c1c; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.heart:hover { background: #a82c1c; color: #fff; }
@media (prefers-reduced-motion: reduce) { .listing-card, .town-tile img { transition: none; } .listing-card:hover, .town-tile:hover img { transform: none; } }

/* Results: filters as a bar above the list */
.filter-bar { background: #fff; border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 18px rgba(0,0,0,.05); gap: .75rem; align-items: end; }
.filter-bar > div, .filter-bar > .btn { margin-bottom: .75rem; }
.filter-bar > .btn { width: 100%; }
@media (min-width: 992px) {
    .filter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filter-bar > div, .filter-bar > .btn { margin-bottom: 0; }
    .filter-bar > .btn { grid-column: span 2; }
}

/* Listing page gallery: one large picture, two beside it */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gallery > div:first-child { grid-column: 1 / -1; }
.gallery a, .gallery img { display: block; width: 100%; height: 100%; }
.gallery .listing-photo { height: 180px; object-fit: cover; }
.gallery > div:first-child .listing-photo { height: 300px; }
@media (min-width: 992px) {
    .gallery { grid-template-columns: 2fr 1fr; grid-auto-rows: 235px; }
    .gallery > div:first-child { grid-column: 1; grid-row: span 2; }
    .gallery .listing-photo, .gallery > div:first-child .listing-photo { height: 100%; }
    .gallery > div:only-child { grid-column: 1 / -1; }
    .gallery > div:nth-child(2):last-child { grid-row: span 2; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; }
.facts > div { background: #fff; border-radius: .9rem; padding: .9rem 1rem; }
.facts dt { font-weight: 600; font-size: .8rem; color: #5c666d; }
.facts dd { margin: .2rem 0 0; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
/* Set by site.js, only when the whole box fits in the window: nothing is ever cut off. */
.enquiry-box.is-sticky { position: sticky; top: 1rem; }
