/* Page banner: a full-bleed photo under an even sheet (the dark band without a photo) with the transparent header on
 * top: H1, intro and, on detail pages and About, the primary pill + an outline call pill. Copy sits left, centered
 * vertically. */
.ocf-page-header {
    --lisbon-panel-sheet: var(--lisbon-overlay);
    display: flex;
    align-items: center;
    min-height: 600px;
    color: var(--ocf-heading-alt);
}

.ocf-page-header__inner {
    position: relative;
    padding-block: calc(var(--lisbon-bar-height) + 96px) 88px;
}

.ocf-page-header__content { max-width: 860px; }


.ocf-page-header__headline {
    color: inherit;
    font-size: clamp(32px, 4.6vw, 66px);
    line-height: 1;
    white-space: pre-line;
}

.ocf-page-header__subtitle {
    max-width: 600px;
    margin-top: 20px;
    color: color-mix(in srgb, var(--ocf-heading-alt) 86%, transparent);
    font-size: calc(var(--font-body-size) * 1.06);
    line-height: 1.55;
}

.ocf-page-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: color-mix(in srgb, var(--ocf-heading-alt) 82%, transparent);
    font-size: calc(var(--font-body-size) * 0.88);
}

.ocf-page-header__actions { margin-top: 32px; gap: 14px; }
.ocf-page-header__actions .btn-secondary svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
    .ocf-page-header { min-height: 480px; }
}

@media (max-width: 639px) {
    .ocf-page-header { min-height: 0; }
    .ocf-page-header__inner { padding-block: calc(var(--lisbon-bar-height) + 48px) 48px; }
    .ocf-page-header__actions { flex-direction: column; align-items: stretch; }
}

/* OCF_AGENT_BLOCK:page-header-rating-badge START */
/* Google rating badge under the H1 on service pages (markup from rating-badge.php; base card styles in about.css). */
.ocf-page-header .ocf-about-tag.ocf-page-header__rating {
    position: static;
    display: inline-flex;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 22px 12px 12px;
    border-radius: 20px;
    color: var(--ocf-heading);
    text-decoration: none;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.ocf-page-header__rating .ocf-about-tag__icon { width: 44px; height: 44px; border-radius: 13px; }
.ocf-page-header__rating .ocf-about-tag__icon svg { width: 24px; height: 24px; }
.ocf-page-header__rating .ocf-about-tag__top { gap: 8px; }
.ocf-page-header__rating strong { font-size: 21px; }
.ocf-page-header__rating .ocf-about-tag__stars { font-size: 15px; }
.ocf-page-header__rating .ocf-about-tag__label { font-size: 13px; }
.ocf-page-header a.ocf-page-header__rating:hover,
.ocf-page-header a.ocf-page-header__rating:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}
@media (max-width: 639px) {
    .ocf-page-header .ocf-about-tag.ocf-page-header__rating { gap: 8px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: 16px; }
    .ocf-page-header__rating .ocf-about-tag__icon { width: 32px; height: 32px; border-radius: 10px; }
    .ocf-page-header__rating .ocf-about-tag__icon svg { width: 18px; height: 18px; }
    .ocf-page-header__rating .ocf-about-tag__top { gap: 6px; }
    .ocf-page-header__rating strong { font-size: 16px; }
    .ocf-page-header__rating .ocf-about-tag__stars { font-size: 12px; }
    .ocf-page-header__rating .ocf-about-tag__label { font-size: 11px; }
}
/* OCF_AGENT_BLOCK:page-header-rating-badge END */

/* OCF_AGENT_BLOCK:page-header-region START */
/* Service area pages: pin + region eyebrow above the H1 (service_area_region). */
.ocf-page-header__region {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--ocf-primary);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}
.ocf-page-header__region svg { flex-shrink: 0; width: 20px; height: 20px; }
@media (max-width: 639px) {
    .ocf-page-header__region { gap: 8px; margin-bottom: 14px; font-size: 12px; }
    .ocf-page-header__region svg { width: 17px; height: 17px; }
}
/* OCF_AGENT_BLOCK:page-header-region END */

/* OCF_AGENT_BLOCK:page-header-neighbourhood-tags START */
/* Service area pages: neighbourhood tags under the description (service_area_neighbourhoods). */
.ocf-page-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.ocf-page-header__tags li {
    padding: 7px 16px;
    border: 1px solid color-mix(in srgb, var(--ocf-heading-alt) 38%, transparent);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--ocf-heading-alt) 12%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--ocf-heading-alt);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}
@media (max-width: 639px) {
    .ocf-page-header__tags { gap: 8px; margin-top: 22px; }
    .ocf-page-header__tags li { padding: 6px 12px; font-size: 13px; }
}
/* OCF_AGENT_BLOCK:page-header-neighbourhood-tags END */

/* OCF_AGENT_BLOCK:page-header-neighbourhood-tags-more START */
/* Neighbourhood tags: linked tags, and the CSS-only "+N more" toggle (hidden tags stay in the HTML for search engines). */
.ocf-page-header__tags a { color: inherit; text-decoration: none; }
.ocf-page-header__tags li:has(> a) { border-color: color-mix(in srgb, var(--ocf-primary) 70%, transparent); transition: background var(--duration) var(--ease); }
.ocf-page-header__tags li:has(> a):hover { background: color-mix(in srgb, var(--ocf-primary) 35%, transparent); }
.ocf-page-header__tags li.is-extra { display: none; }
.ocf-tags-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ocf-tags-toggle:checked + .ocf-page-header__tags li.is-extra { display: list-item; }
.ocf-tags-toggle:checked + .ocf-page-header__tags .ocf-page-header__tags-more { display: none; }
.ocf-page-header__tags li.ocf-page-header__tags-more { padding: 0; border-color: var(--ocf-primary); background: var(--ocf-primary); }
.ocf-page-header__tags-more label { display: block; padding: 7px 16px; color: var(--ocf-primary-contrast); font-weight: var(--font-weight-semibold); cursor: pointer; }
.ocf-tags-toggle:focus-visible + .ocf-page-header__tags .ocf-page-header__tags-more { outline: 2px solid var(--ocf-heading-alt); outline-offset: 2px; }
@media (max-width: 639px) {
    .ocf-page-header__tags-more label { padding: 6px 12px; }
}
/* OCF_AGENT_BLOCK:page-header-neighbourhood-tags-more END */
