/* ══════════════════════════════════════════════════════════
   Page hero + breadcrumb      (template-parts/sections/page-breadcrumb.php)
   Featured image of the page = banner background.
   Tokens use your theme variables when they exist, else the fallbacks.
   ══════════════════════════════════════════════════════════ */

.funtoursdubai-page-hero {
    --fh-navy:  var(--ftd-navy, #0F172A);
    --fh-gold:  var(--ftd-gold, #C79544);
    --fh-light: var(--ftd-light-gold, #EECB7B);

    /* Set this if your header is transparent / overlays the page,
       e.g. .funtoursdubai-page-hero { --fh-header-offset: 90px; } */
    --fh-header-offset: 0px;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: calc(72px + var(--fh-header-offset)) 0 72px;
    background: linear-gradient(120deg, var(--fh-navy) 0%, #1c2a4a 55%, #3a3220 130%);
    color: #fff;
    font-family: var(--ftd-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}

.funtoursdubai-page-hero *,
.funtoursdubai-page-hero *::before,
.funtoursdubai-page-hero *::after { box-sizing: border-box; }

/* Image */
.funtoursdubai-page-hero .funtoursdubai-page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Overlay keeps the title readable on any photo */
.funtoursdubai-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .6) 55%, rgba(15, 23, 42, .35) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, .45) 0%, rgba(15, 23, 42, 0) 40%);
}

/* No image: a soft gold glow instead */
.funtoursdubai-page-hero:not(.funtoursdubai-page-hero--has-image) .funtoursdubai-page-hero__overlay {
    background: radial-gradient(60% 120% at 90% 0%, rgba(199, 149, 68, .28) 0%, rgba(199, 149, 68, 0) 60%);
}

.funtoursdubai-page-hero .funtoursdubai-container {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Title */
.funtoursdubai-page-hero .funtoursdubai-page-hero__title {
    position: relative;
    margin: 0;
    padding-bottom: 16px;
    color: #fff;
    font-family: var(--ftd-font-heading, 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif);
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-transform: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--fh-gold), var(--fh-light));
}

/* Breadcrumb (works with the markup of ftd_breadcrumb()) */
.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"],
.funtoursdubai-page-hero .breadcrumb,
.funtoursdubai-page-hero .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 4px 0 0;
    padding: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, .78);
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb ol,
.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb ul,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] ol,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb li,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb a,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] a,
.funtoursdubai-page-hero .breadcrumb a,
.funtoursdubai-page-hero .breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: color .15s ease;
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb a:hover,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] a:hover,
.funtoursdubai-page-hero .breadcrumb a:hover,
.funtoursdubai-page-hero .breadcrumbs a:hover {
    color: var(--fh-light);
    text-decoration: underline;
}

.funtoursdubai-page-hero a:focus-visible {
    outline: 2px solid var(--fh-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Current page + separators (Font Awesome chevrons or plain "/" or "›") */
.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb [aria-current],
.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb > span:last-child,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] [aria-current] {
    color: var(--fh-light);
    font-weight: 600;
}

.funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb i,
.funtoursdubai-page-hero nav[aria-label*="readcrumb"] i {
    font-size: 10px;
    color: rgba(255, 255, 255, .55);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .funtoursdubai-page-hero { min-height: 250px; padding: calc(56px + var(--fh-header-offset)) 0 56px; }
}

@media (max-width: 575px) {
    .funtoursdubai-page-hero { min-height: 210px; padding: calc(44px + var(--fh-header-offset)) 0 44px; }
    .funtoursdubai-page-hero .funtoursdubai-container { padding-inline: 16px; }
    .funtoursdubai-page-hero .funtoursdubai-page-hero__breadcrumb { font-size: 13px; }
    .funtoursdubai-page-hero__overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, .62) 100%);
    }
}
