/* Wild Sights Safaris | Original-quality full-frame hero.
   Loaded after wildsights.css and wildsights-brand.css to neutralize old cover/crop rules.
   Keep this filename stable. This does not change inner-page heroes. */

body.is-home .hero.ws-hero-fullframe {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #183421;
}
/* Only the soft, decorative backdrop may fill/crop. The ACTUAL media never does. */
body.is-home .hero .ws-hero-blur {
    display: block;
    position: absolute;
    inset: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    z-index: 0;
    object-fit: cover;
    filter: blur(22px) brightness(.52);
    pointer-events: none;
}
body.is-home .hero .hero-photo,
body.is-home .hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain !important;
    object-position: center center !important;
    filter: none !important;
    z-index: 1;
}
body.is-home .hero .hero-photo {
    display: block !important;
    opacity: 1;
    transition: opacity .24s ease;
    pointer-events: none;
}
body.is-home .hero .hero-video {
    display: block !important;
    opacity: 0;
    transition: opacity .24s ease;
    pointer-events: none;
}
body.is-home .hero.video-ready .hero-video { opacity: 1 !important; }
body.is-home .hero.video-ready .hero-photo { opacity: 0 !important; }
body.is-home .hero .hero-dim { z-index: 2; pointer-events: none; }
body.is-home .hero .hero-layout { position: relative; z-index: 3; }
body.is-home .hero .hero-footer { z-index: 3; }

@media (max-width: 650px) {
    /* An uncropped 16:9 video cannot fill a tall portrait hero.
       Let the natural landscape media sit above the text instead. */
    body.is-home .hero.ws-hero-fullframe {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: start;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
        background: #183421;
    }
    body.is-home .hero .ws-hero-blur { display: none !important; }
    body.is-home .hero .hero-photo,
    body.is-home .hero .hero-video {
        position: relative !important;
        inset: auto !important;
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #183421;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
        border: 0;
    }
    /* We know the original video is landscape 1280x720. The full frame fits. */
    body.is-home .hero.ws-hero-has-video .hero-photo,
    body.is-home .hero.ws-hero-has-video .hero-video {
        aspect-ratio: 16 / 9;
    }
    /* If there is no video, show the actual image dimensions (do not crop). */
    body.is-home .hero.ws-hero-photo-only .hero-photo { aspect-ratio: auto; }
    /* The existing mobile switch still controls whether the video loads. */
    body.is-home .hero .hero-video.desktop-only-video { display: none !important; }
    body.is-home .hero .hero-dim { display: none !important; }
    body.is-home .hero .hero-layout {
        grid-column: 1;
        grid-row: 2;
        width: calc(100% - 32px) !important;
        height: auto !important;
        max-height: none;
        min-height: 0;
        display: block !important;
        margin: 0 auto;
        padding: 25px 0 10px;
    }
    body.is-home .hero .hero-copy {
        max-width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.is-home .hero .eyebrow-light {
        color: #ffcf79 !important;
    }
    body.is-home .hero .hero-copy h1 {
        margin: 12px 0 14px;
        font-size: clamp(28px, 8.3vw, 39px);
        line-height: 1.17;
        letter-spacing: -.025em;
        color: #fff;
    }
    body.is-home .hero .hero-copy > p {
        font-size: 14px;
        line-height: 1.7;
        color: #eef7ed;
        max-width: 100%;
    }
    body.is-home .hero .hero-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        margin: 19px 0 0;
    }
    body.is-home .hero .hero-footer {
        position: static !important;
        inset: auto !important;
        grid-column: 1;
        grid-row: 3;
        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 8px 0 24px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 0;
        font-size: 10px;
    }
}

/* Respect the existing reduced-motion preference. Poster remains the fallback. */
@media (prefers-reduced-motion: reduce) {
    body.is-home .hero .hero-video { opacity: 0 !important; }
    body.is-home .hero .hero-photo { opacity: 1 !important; }
}


/* ================================================================
   Wild Sights Safaris - MOBILE HERO OVERLAP FIX - 2026-11-30
   Corrects old cascading rules from wildsights.css and preserves
   original full-frame imagery. Loaded LAST via layouts/public.blade.php.
   ================================================================ */
@media (max-width: 850px) {
  body.is-home .hero.ws-hero-fullframe {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    align-items: start !important;
    background: #ffffff !important;
  }

  /* The media owns row 1. It must not participate in row 2. */
  body.is-home .hero.ws-hero-fullframe .hero-photo,
  body.is-home .hero.ws-hero-fullframe .hero-video {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff !important;
    transform: none !important;
    filter: none !important;
    pointer-events: none;
  }
  body.is-home .hero.ws-hero-fullframe .hero-photo { z-index: 0 !important; }
  body.is-home .hero.ws-hero-fullframe .hero-video { z-index: 1 !important; }
  body.is-home .hero.ws-hero-fullframe.ws-hero-photo-only .hero-photo {
    aspect-ratio: auto !important;
  }
  body.is-home .hero.ws-hero-fullframe .hero-video.desktop-only-video {
    display: none !important;
  }
  body.is-home .hero.ws-hero-fullframe .ws-hero-blur,
  body.is-home .hero.ws-hero-fullframe .hero-dim { display: none !important; }

  /* Text owns row 2, below the media; no negative overlap. */
  body.is-home .hero.ws-hero-fullframe .hero-layout {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 24px 0 30px !important;
    align-self: start !important;
    z-index: 3 !important;
    background: #ffffff !important;
    overflow: visible !important;
    transform: none !important;
    color: #193728 !important;
    box-sizing: border-box;
  }
  body.is-home .hero.ws-hero-fullframe .hero-copy {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    text-shadow: none !important;
  }

  /* White label on an accessible brand-green surface. */
  body.is-home .hero.ws-hero-fullframe .hero-copy .eyebrow.eyebrow-light {
    display: inline-flex !important;
    position: static !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding: 7px 12px !important;
    color: #ffffff !important;
    background: #427A17 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    letter-spacing: .11em !important;
    text-shadow: none !important;
    transform: none !important;
  }
  body.is-home .hero.ws-hero-fullframe .hero-copy .eyebrow.eyebrow-light i {
    width: 20px !important;
    height: 1px !important;
    background: #ffffff !important;
    flex: 0 0 20px !important;
  }
  body.is-home .hero.ws-hero-fullframe .hero-copy h1 {
    position: static !important;
    margin: 0 0 17px !important;
    padding: 0 !important;
    color: #193728 !important;
    font-size: clamp(30px, 7.6vw, 44px) !important;
    line-height: 1.14 !important;
    text-shadow: none !important;
    overflow-wrap: break-word;
  }
  body.is-home .hero.ws-hero-fullframe .hero-copy > p {
    margin: 0 0 20px !important;
    color: #293D34 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    text-shadow: none !important;
  }
  body.is-home .hero.ws-hero-fullframe .hero-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.is-home .hero.ws-hero-fullframe .hero-links .subtle-link {
    color: #193728 !important;
    border-bottom-color: #F4A00D !important;
    text-shadow: none !important;
  }
  /* Remove the old absolute footer, which overlaps the search at mobile sizes. */
  body.is-home .hero.ws-hero-fullframe .hero-footer { display: none !important; }

  body.is-home .search-wrap {
    display: block !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    position: relative !important;
    z-index: 1 !important;
    background: #ffffff !important;
    transform: none !important;
  }
  body.is-home .search-wrap .search-card-v2 {
    position: relative !important;
    margin: 0 !important;
    background: #ffffff !important;
    transform: none !important;
  }
}

/* ==================================================================
   WILD SIGHTS PRODUCTION HERO ALIGNMENT FIX - 2026-12-01
   Desktop: full original 16:9 video, without crop or side gutters.
   Video and overlay copy share one full-width area. No dark/blur fill.
   Mobile: preserve the tested image-then-text layout.
   ================================================================== */
@media (min-width: 851px) {
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    isolation: isolate;
  }
  /* The MP4 is 16:9 and now fills a matching 16:9 container, no crop. */
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-video,
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    filter: none !important;
    transform: none !important;
  }
  body.is-home .hero.ws-hero-fullframe .ws-hero-blur,
  body.is-home .hero.ws-hero-fullframe .hero-dim {
    display: none !important;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-layout {
    position: relative !important;
    width: 80% !important;
    max-width: 1440px !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    z-index: 3 !important;
    pointer-events: none;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy {
    max-width: min(790px, 72%) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy h1,
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy > p,
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy .eyebrow-light,
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-links .subtle-link {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .72) !important;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy .eyebrow-light i {
    background: #fff !important;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-footer {
    position: absolute !important;
    bottom: 34px !important;
    left: 10% !important;
    right: 10% !important;
    z-index: 3 !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .72);
  }
}
/* Put the search card below the full media, not over the bottom edge. */
@media (min-width: 851px) {
  body.is-home .search-wrap {
    margin: 0 !important;
    padding: 24px 0 36px !important;
    background: #fff !important;
    position: relative !important;
    z-index: 4 !important;
  }
  body.is-home .search-wrap .search-card-v2 {
    margin: 0 !important;
    background: #fff !important;
    transform: none !important;
  }
}
/* Between tablet and narrow desktop, keep all headline copy within frame. */
@media (min-width: 851px) and (max-width: 1130px) {
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy h1 {
    font-size: clamp(30px, 4.2vw, 48px) !important;
    line-height: 1.12 !important;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy > p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }
  body.is-home .hero.ws-hero-fullframe.ws-hero-has-video .hero-copy {
    max-width: 76% !important;
  }
}


/* Wild Sights Safaris: uncropped poster/video handoff.
   The poster now matches the original video's 16:9 first frame. */
@media (min-width: 851px) {
  body.is-home section.hero.ws-hero-fullframe.ws-hero-has-video {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  body.is-home section.hero.ws-hero-fullframe.ws-hero-has-video > .hero-photo,
  body.is-home section.hero.ws-hero-fullframe.ws-hero-has-video > .hero-video {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    transform: none !important;
  }
}
body.is-home section.hero.ws-hero-fullframe > .ws-hero-blur {
  display: none !important;
}
