/* ADV FILMS on the site (Charlie, 2026-11-15, approved mockup v9).
   1. .home-film-bg: the home banner behind the rent hero (rent_hero.html, home only): the generic ADV film,
      muted; until it exists, the Marina da Glória photo pans slowly.
   2. .home-band__btn: the "View the listings" button of the three home strips (strips slide by themselves).
   3. .act-film: the film cover at the top of the Rentals, Sales and Services pages (partials/activity_film.html).
   Loaded by home.html, rent.html, buy.html and experiences.html. */

/* 1. Home banner. brand-rio.css hides hero videos and scrims on forest pages
   (.has-jungle .page-hero video/.scrim {display:none !important}); the home banner is the one exception. */
.has-jungle .page-hero .home-film-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #102c2f; }
.has-jungle .page-hero .home-film-bg .home-film-bg__v { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 2026-11-15 (Charlie): Danny's hero film, full width and tall. Visitors who ask for less motion keep the still photo. */
@media (prefers-reduced-motion: reduce) { .has-jungle .page-hero .home-film-bg .home-film-bg__v { display: none !important; } }
.home-film-bg__photo { position: absolute; inset: 0; background-size: cover; background-position: 0% 50%; animation: adv-banner-pan 22s ease-in-out infinite alternate; }
@keyframes adv-banner-pan { to { background-position: 100% 50%; } }
.has-jungle.page-home .page-hero--rent > .scrim { display: block !important; background:
  radial-gradient(ellipse 70% 45% at 50% 40%, rgba(8,9,11,.5) 0%, rgba(8,9,11,0) 70%),
  linear-gradient(180deg, rgba(8,9,11,.45) 0%, rgba(8,9,11,.12) 35%, rgba(8,9,11,.2) 60%, rgba(8,9,11,.6) 100%); }
.has-jungle.page-home .page-hero--rent { min-height: clamp(520px, 86vh, 980px); align-items: center; }

/* 2. Strip button */
/* Call-to-action buttons use the site's coral gradient (--deco-cta, brand-rio.css) with dark green lettering,
   the same as the search buttons. */
.home-band__btn {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; text-decoration: none;
  font-family: var(--f-display, sans-serif); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--deco-cta-ink, #102c2f); background: var(--deco-cta, #f7861a); padding: .95rem 1.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26); transition: filter .2s ease;
}
.home-band__btn:hover, .home-band__btn:focus-visible { filter: brightness(1.07); outline: none; }
@media (max-width: 800px) { .home-band__ctl { width: 100%; } }

/* 3. Activity film cover */
.act-film { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; background: #102c2f; color: #fff;
  display: grid; place-items: center; margin-top: var(--header-h, 0px); }
.act-film__img, .act-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-film__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8,9,11,.38), rgba(8,9,11,.06) 72%),
  linear-gradient(180deg, rgba(8,9,11,.28), rgba(8,9,11,0) 30%, rgba(8,9,11,.3)); }
.act-film__logo { position: absolute; z-index: 1; left: clamp(16px, 3vw, 44px); top: clamp(16px, 3vw, 40px);
  width: clamp(84px, 11vw, 160px); display: grid; gap: .55em; filter: drop-shadow(0 1px 5px rgba(0,0,0,.35)); }
.act-film__logo svg { width: 100%; fill: #fff; display: block; }
.act-film__logo span { font-family: "Julius Sans One", var(--f-display, sans-serif); font-size: clamp(.62rem, 1.1vw, 1.08rem);
  letter-spacing: .19em; line-height: 1; white-space: nowrap; text-align: center; }
.act-film__words { position: relative; z-index: 1; margin: 0; max-width: min(88vw, 1100px); padding: 0 1rem; text-align: center;
  font-family: "Julius Sans One", var(--f-display, sans-serif); text-transform: uppercase; letter-spacing: .07em; line-height: 1.12;
  font-size: clamp(1.9rem, 6.2vw, 5.4rem); text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
/* 2026-11-15: the play button sits centred under the words, as a clear "Watch the film" pill (was a small
   circle in the bottom-right corner, below the fold on laptops). The frame is a little lower so the search shows. */
.act-film { max-height: 76vh; align-content: center; row-gap: clamp(1.1rem, 2.6vw, 2rem); }
.act-film__play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .8rem; cursor: pointer;
  padding: .85rem 1.6rem .85rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.32); color: #fff; font-family: var(--f-display, sans-serif); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; transition: background .2s ease; backdrop-filter: blur(2px); }
.act-film__tri { width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.act-film__play:hover, .act-film__play:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid #fff; outline-offset: 3px; }
.act-film--plays { cursor: pointer; }
.act-film.is-playing { cursor: default; max-height: none; background: #000; }
.act-film.is-playing video { object-fit: contain; }
.act-film.is-playing > :not(video):not(.act-film__credit) { display: none; }
/* music credit (CC BY): hidden until the full film plays, then a small line at the top of the frame */
.act-film__credit { display: none; position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; margin: 0; padding: .35rem .6rem;
  font-size: .68rem; line-height: 1.4; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; text-align: left; }
.act-film__credit a { color: #fff; text-decoration: underline; word-break: break-all; }
.act-film.is-playing > .act-film__credit { display: block; }
@media (orientation: portrait) and (max-width: 700px) { .act-film { aspect-ratio: 4 / 5; } .act-film.is-playing { aspect-ratio: 9 / 16; max-height: none; } }
/* 2026-11-15 (Charlie, "go"): BANNER layout. The cover becomes a wide banner (no longer a 16:9 frame), a silent
   loop plays in it, one caption, no overlay logo; the search bar sits on its bottom edge (computers) or right
   under it (phones). The page's own headline under the banner is kept for search engines but not shown: the
   banner caption replaces it. */
.act-film { aspect-ratio: auto; height: clamp(440px, 68vh, 760px); max-height: none; }
.act-film__logo { display: none; }
.act-film__loop { display: block !important; z-index: 0; }
.act-film.is-playing .act-film__loop { display: none !important; }
.act-film.is-playing { height: auto; aspect-ratio: 16 / 9; }
.act-film__words { font-size: clamp(1.9rem, 5.4vw, 4.8rem); }
.act-film + .page-hero > .content > h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.act-film + .page-hero > .content > .hero-search-wrap { margin-top: 0 !important; }
@media (min-width: 821px) {
  .act-film { padding-bottom: 56px; }   /* keeps the caption clear of the search bar */
  .act-film + .page-hero.page-hero, .has-jungle .act-film + .page-hero--rent.page-hero { position: relative; z-index: 3; margin-top: -84px; padding-top: 0 !important; background: transparent; }
  /* Home: the same — Danny's film banner, headline in the middle, search bar on the bottom edge. */
  .has-jungle.page-home .page-hero--rent { position: relative; z-index: 3; }
  .has-jungle.page-home .page-hero--rent > .content { position: static; padding-bottom: 56px; }
  .has-jungle.page-home .page-hero--rent .hero-search-wrap { position: absolute; z-index: 5; left: 50%; bottom: 0; margin: 0 !important;
    width: min(1180px, calc(100% - 48px)); transform: translate(-50%, 50%); }
  .page-home .page-hero--rent + .home-band { padding-top: calc(64px + 60px); }
}
@media (max-width: 820px) {
  .act-film { height: 62vh; min-height: 380px; }
  .act-film.is-playing { height: auto; }
  /* Home on phones: Danny's film is a shorter banner with the headline on it; the search bar comes right under it. */
  .has-jungle.page-home .page-hero--rent { display: block; min-height: 0; padding: 0 !important; }
  .has-jungle.page-home .page-hero .home-film-bg { position: relative; inset: auto; height: 62vh; min-height: 380px; }
  .has-jungle.page-home .page-hero--rent > .scrim { bottom: auto; height: 62vh; min-height: 380px; }
  .has-jungle.page-home .page-hero--rent > .content { position: static; padding: 0 16px 28px !important; }
  .has-jungle.page-home .page-hero--rent .page-hero--rent__h { position: absolute; z-index: 2; left: 16px; right: 16px; top: max(31vh, 190px);
    transform: translateY(-50%); margin: 0; text-align: center; }
  .has-jungle.page-home .page-hero--rent .hero-search-wrap { margin-top: 20px !important; }
}
@media (orientation: portrait) and (max-width: 700px) { .act-film { aspect-ratio: auto; } .act-film.is-playing { aspect-ratio: 9 / 16; } }
@media (prefers-reduced-motion: reduce) { .act-film__loop { display: none !important; } }
/* the page's own hero (headline + search) follows the cover: no extra header gap above it */
.act-film + .page-hero { padding-top: clamp(1.5rem, 4vw, 3rem) !important; }
/* 2026-11-15 (Charlie: film frame, then the search bar, then the boxes): no tall empty hero under the frame. */
.act-film + .page-hero, .has-jungle .act-film + .page-hero--rent { min-height: 0 !important; padding-bottom: clamp(1.5rem, 4vw, 3rem) !important; }
.act-film + .page-hero > .content { padding-top: 0 !important; }

/* 2026-11-15 (Charlie: "the full film is too wide on my desktop, put it in a frame"): on computers the film plays
   in a centred frame, at most 1100px wide, with a fine gold double frame; the search bar moves below it. */
@media (min-width: 821px) {
  .act-film.is-playing { width: min(1100px, calc(100% - 96px)); height: auto; padding: 0;
    margin: calc(var(--header-h, 0px) + 40px) auto 0; overflow: visible;
    border: 1px solid var(--deco-gold, #d9a441); outline: 1px solid rgba(217,164,65,.6); outline-offset: 6px; }
  .act-film.is-playing video { position: absolute; inset: 0; }
  .act-film.is-playing + .page-hero.page-hero, .has-jungle .act-film.is-playing + .page-hero--rent.page-hero { margin-top: 40px; }
}

/* 2026-11-15 (Charlie): home strips glide slowly right to left (adv-films.js); about 3 to 4 boxes on a laptop
   screen, one box at a time on a phone. A little room above the boxes for their frame and shadow. */
.home-band__track { padding-top: 10px; }
.home-band__card { flex: 0 0 clamp(280px, 25vw, 380px); }
@media (max-width: 800px) { .home-band__card { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { .home-film-bg__photo { animation: none; background-position: 50% 50%; } }
