.roark-expose-hero {
    --roark-hero-height: 85vh;
    --roark-hero-overlay-color: #000000;
    --roark-hero-overlay-opacity: 0.4;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    min-height: var(--roark-hero-height);
    height: var(--roark-hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    overflow-x: clip;
}

.roark-expose-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.roark-expose-hero__image {
    display: block;
    /* !important defeats theme/Elementor `img { height: auto }`, which otherwise
       lets the image render at its natural height and leaves the dark fallback
       background showing (especially on tall mobile/tablet heroes). */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

/* No photo at all: a quiet solid gradient instead of the fallback image, so the
   title/price text overlay is never rendered on top of picture content. */
.roark-expose-hero__media--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 55%, #475569 100%);
}

.roark-expose-hero--boxed {
    margin-left: auto;
    margin-right: auto;
}

.roark-expose-hero--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.roark-expose-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--roark-hero-overlay-color);
    opacity: var(--roark-hero-overlay-opacity);
    z-index: 1;
    pointer-events: none;
}

.roark-expose-hero__inner {
    position: relative;
    z-index: 2;
    width: min(96%, 1200px);
    padding: 28px 16px;
}

.roark-expose-hero--align-left .roark-expose-hero__inner {
    text-align: left;
}

.roark-expose-hero--align-center .roark-expose-hero__inner {
    text-align: center;
}

.roark-expose-hero__meta,
.roark-expose-hero__address,
.roark-expose-hero__price,
.roark-expose-hero__reference {
    margin: 0 0 12px;
}

.roark-expose-hero__meta {
    text-transform: uppercase;
}

/* Price stands out from the address/category lines below it — clearly
   larger and bold, like the CRM HTML-Kurzexposé header. Kept as its own
   rule (not folded into the shared margin rule above) so a user's own
   typography override (Style ▸ meta/address/price/reference group control)
   still wins via higher (Elementor-generated) selector specificity. */
.roark-expose-hero__price {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.roark-expose-hero__title {
    margin: 0 0 14px;
    line-height: 1.15;
}

.roark-expose-hero__reference {
    margin-bottom: 0;
}

/* ── Responsive hero height ──────────────────────────────────────────────
   The inline `--roark-hero-height` (default 85vh) is too tall on small
   screens. Cap it so the hero stays proportional on tablet and mobile.
   !important is required to beat the inline custom-property value. */
@media (max-width: 1024px) {
    .roark-expose-hero {
        --roark-hero-height: 60vh !important;
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .roark-expose-hero {
        --roark-hero-height: 56vh !important;
        min-height: 320px;
    }

    .roark-expose-hero__inner {
        padding: 20px 14px;
    }

    .roark-expose-hero__price {
        font-size: 22px;
    }
}

/* ── No-photo hero: a compact banner, not a near-full-viewport empty box ──
   `--roark-hero-height` normally scales with the viewport (85vh/60vh/56vh)
   because it is sized to show a photo; with no photo at all (`.is-placeholder`
   — see ExposeHeroImageWidget::render()) there is nothing to fill that height
   with except the gradient background, so it read as a broken/oversized
   placeholder. Fixed, modest heights instead — same text, no dead space. The
   higher specificity of the compound `.roark-expose-hero.is-placeholder`
   selector (two classes) wins over the plain `.roark-expose-hero` responsive
   rules above regardless of source order, but !important is kept for
   consistency with the pattern those rules already use to beat the inline
   custom-property value. */
.roark-expose-hero.is-placeholder {
    --roark-hero-height: 320px !important;
    min-height: 280px;
}

@media (max-width: 1024px) {
    .roark-expose-hero.is-placeholder {
        --roark-hero-height: 280px !important;
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .roark-expose-hero.is-placeholder {
        --roark-hero-height: 220px !important;
        min-height: 200px;
    }
}

