/**
 * Photo hero (shared page header) — LH lh-page-hero style.
 * template-parts/photo-hero.php; also restyles the search page header
 * (.uksr-search-hero, kept for search-page.js city switching).
 *
 * @version 1.2.0 (theme 3.37.0)
 */

.uksr-photo-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--uksr-dark-blue);
    color: var(--uksr-white);
    text-align: left;
}
[dir="rtl"] .uksr-photo-hero { text-align: right; }

.uksr-photo-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.uksr-photo-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(41, 35, 92, .94) 0%, rgba(41, 35, 92, .8) 40%, rgba(41, 35, 92, .18) 80%);
}
[dir="rtl"] .uksr-photo-hero__shade {
    background: linear-gradient(270deg, rgba(41, 35, 92, .94) 0%, rgba(41, 35, 92, .8) 40%, rgba(41, 35, 92, .18) 80%);
}
.uksr-photo-hero__inner {
    position: relative;
    max-width: var(--uksr-container-max, 1200px);
    margin: 0 auto;
    padding: 72px 24px 80px;
}
.uksr-photo-hero__inner > * { max-width: 620px; }
.uksr-photo-hero--compact .uksr-photo-hero__inner { padding: 40px 24px 44px; }

.uksr-photo-hero__crumb {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    margin: 0 0 18px;
}
.uksr-photo-hero__crumb a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}
.uksr-photo-hero__crumb a:hover,
.uksr-photo-hero__crumb a:focus-visible {
    color: var(--uksr-white);
    text-decoration: underline;
}
.uksr-photo-hero__crumb .uksr-crumb-sep { margin: 0 8px; opacity: .5; }

.uksr-photo-hero__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--uksr-green);
    margin: 0 0 12px;
}
.uksr-photo-hero .uksr-photo-hero__title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--uksr-white);
    margin: 0 0 16px;
    max-width: 700px;
    text-wrap: balance;
}
.uksr-photo-hero--compact .uksr-photo-hero__title { font-size: 40px; }
.uksr-photo-hero__sub {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    margin: 0 0 26px;
}
.uksr-photo-hero__sub:last-child { margin-bottom: 0; }
.uksr-photo-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.uksr-photo-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.uksr-photo-hero__btn--primary { background: var(--uksr-magenta); color: var(--uksr-white); }
.uksr-photo-hero__btn--primary:hover,
.uksr-photo-hero__btn--primary:focus-visible { background: #c4006b; color: var(--uksr-white); }
.uksr-photo-hero__btn--ghost { border: 2px solid rgba(255, 255, 255, .85); color: var(--uksr-white); }
.uksr-photo-hero__btn--ghost:hover,
.uksr-photo-hero__btn--ghost:focus-visible { background: var(--uksr-white); color: var(--uksr-dark-blue); }
.uksr-photo-hero a:focus-visible { outline: 3px solid var(--uksr-green); outline-offset: 3px; }

/* ── Search page header (/locations/{city}/), v3 (theme 3.37.0) ──
   Markup kept for search-page.js; the search card overlaps its bottom edge. */
.uksr-search-hero {
    position: relative;
    background-color: var(--uksr-dark-blue);
    background-size: cover;
    background-position: center;
    text-align: left;
    padding: 0;
    display: block;
    height: auto;
    min-height: 0;
}
.uksr-search-hero .uksr-search-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(41, 35, 92, .94) 0%, rgba(41, 35, 92, .8) 45%, rgba(41, 35, 92, .25) 85%);
    opacity: 1;
}
[dir="rtl"] .uksr-search-hero .uksr-search-hero__overlay {
    background: linear-gradient(270deg, rgba(41, 35, 92, .94) 0%, rgba(41, 35, 92, .8) 45%, rgba(41, 35, 92, .25) 85%);
}
.uksr-search-hero .uksr-search-hero__inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--uksr-container-max, 1180px);
    margin: 0 auto;
    padding: 44px 24px 96px;
    text-align: left;
    box-sizing: border-box;
}
[dir="rtl"] .uksr-search-hero .uksr-search-hero__inner { text-align: right; }
.uksr-search-hero .uksr-search-hero__inner > * { max-width: 680px; }
.uksr-search-hero__crumb { font-size: 14px; color: rgba(255, 255, 255, .75); margin: 0 0 14px; }
.uksr-search-hero__crumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.uksr-search-hero__crumb a:hover, .uksr-search-hero__crumb a:focus-visible { color: var(--uksr-white); text-decoration: underline; }
.uksr-search-hero__crumb .uksr-crumb-sep { margin: 0 8px; opacity: .5; }
.uksr-search-hero .uksr-search-hero__title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--uksr-white);
    margin: 0 0 10px;
    text-wrap: balance;
}
.uksr-search-hero .uksr-search-hero__subtitle {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    margin: 0;
    opacity: 1;
}

@media (max-width: 960px) {
    .uksr-photo-hero .uksr-photo-hero__title { font-size: 40px; }
}
@media (max-width: 768px) {
    .uksr-photo-hero__inner { padding: 36px 16px 44px; }
    .uksr-photo-hero--compact .uksr-photo-hero__inner { padding: 28px 16px 32px; }
    .uksr-photo-hero__shade,
    [dir="rtl"] .uksr-photo-hero__shade {
        background: linear-gradient(180deg, rgba(41, 35, 92, .55) 0%, rgba(41, 35, 92, .9) 55%, rgba(41, 35, 92, .95) 100%);
    }
    .uksr-photo-hero__crumb { font-size: 13px; margin-bottom: 12px; }
    .uksr-photo-hero .uksr-photo-hero__title,
    .uksr-photo-hero--compact .uksr-photo-hero__title { font-size: 31px; }
    .uksr-photo-hero__sub { font-size: 16px; margin-bottom: 20px; }
    .uksr-photo-hero__btn { flex: 1 1 100%; }
    .uksr-search-hero { height: auto; }
    .uksr-search-hero .uksr-search-hero__inner { padding: 26px 16px 68px; }
    .uksr-search-hero .uksr-search-hero__title { font-size: 29px; }
    .uksr-search-hero .uksr-search-hero__subtitle { font-size: 15px; }
    .uksr-search-hero .uksr-search-hero__overlay,
    [dir="rtl"] .uksr-search-hero .uksr-search-hero__overlay { background: rgba(41, 35, 92, .78); }
}

/* ── 1.1.0: wrapper + split variant (photo as a card, for small photos) ── */
.uksr-photo-hero__inner > .uksr-photo-hero__text { max-width: 620px; }
.uksr-photo-hero__inner > .uksr-photo-hero__text > * { max-width: 100%; }
.uksr-photo-hero--split .uksr-photo-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}
.uksr-photo-hero--split .uksr-photo-hero__inner > * { max-width: none; }
.uksr-photo-hero__card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    aspect-ratio: 3 / 2;
}
.uksr-photo-hero__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .uksr-photo-hero--split .uksr-photo-hero__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 36px;
    }
    .uksr-photo-hero--split .uksr-photo-hero__card { order: -1; max-height: 220px; aspect-ratio: auto; }
}
