/* Site-wide additions on top of the Adrenalin theme.
   Inner pages reuse the home page's look (body class "home"): logo top-left, white menu on the blue curve,
   orange curved footer. The page title sits on the curve (.bs-hero) and the content sits on a white panel
   (.bs-page-body) that overlaps the bottom of the curve, so content can start high without dark text on blue. */

/* ---- Home page curve as a real element ----
   The theme draws the home curve as ".home .start_sec:after". Page-to-page animation (view transitions, below) can only
   move real elements, so home now has <div class="bs-curve"> with exactly the theme's rules (same values, same
   breakpoints, same containing block), and the pseudo-element is switched off. Looks identical. */
.home .start_sec:after { display: none !important; }
.home:not(.bs-inner) .start_sec > .bs-curve {
  z-index: 0; background: url(/wp-content/themes/adrenalin/images/Ellipse-1.png) no-repeat; max-width: 1440px; max-height: 751px;
  background-size: cover; position: absolute; top: -3px; right: 10px; height: 100%; width: 100%;
}
@media (max-width: 1850px) { .home:not(.bs-inner) .start_sec > .bs-curve { max-width: 1409px; max-height: initial; background-size: 100%; top: -47px; right: -9px; height: 85%; width: 100%; } }
@media (max-width: 1600px) { .home:not(.bs-inner) .start_sec > .bs-curve { max-width: 1200px; max-height: 751px; top: -3px; right: 0; height: 100%; background-size: 100%; width: 100%; } }
@media (max-width: 1400px) { .home:not(.bs-inner) .start_sec > .bs-curve { max-width: 1200px; max-height: 807px; top: 0; right: -12%; height: 100%; background-size: 100%; width: 100%; } }
@media (max-width: 1292px) { .home:not(.bs-inner) .start_sec > .bs-curve { right: -20%; } }
@media (max-width: 1100px) { .home:not(.bs-inner) .start_sec > .bs-curve { top: 108px !important; } }

/* Home headline ("Store your RV/Boat here."): nudged up and right so it sits more centered in the blue (Chris). */
@media (min-width: 1101px) {
  .home:not(.bs-inner) .start_sec .intro_part { transform: translate(clamp(50px, 6vw, 115px), -30px); }
}

/* ---- Inner pages ----
   A smaller curve on the right whose left edge, at menu height, sits just left of the "Home" link, with the page
   title and subheading in white, centered in the curve's bowl (same box on every page, so the text block's center
   is the same everywhere). --E = curve width (image is 1440 x 751), --top = header height.
   Desktop values follow the theme's menu position: "Home" sits 656px from the right edge up to 1400px wide,
   755px from 1401px, then max(755px, 50vw - 115px). */
.bs-inner { --E: 690px; --H: calc(var(--E) * 0.5215); --top: 82px; }
@media (min-width: 1401px) { .bs-inner { --E: max(800px, calc(50vw - 70px)); --top: 95px; } }
@media (min-width: 1851px) { .bs-inner { --top: 161px; } }

.bs-inner .bs-hero { position: static; margin: 0; overflow: visible; height: calc(var(--H) * 0.84 - var(--top)); }
.bs-inner .bs-hero .wrapper { position: static; display: block; max-width: none; margin: 0; }
.bs-inner .bs-curve {
  position: absolute; z-index: 0; top: -3px; right: 0; width: var(--E); height: var(--H);
  background: url(/wp-content/themes/adrenalin/images/Ellipse-1.png) no-repeat; background-size: 100% 100%;
}
/* Title + subheading block: same box on every page (middle of the bowl, under the menu), centered. */
.bs-inner .bs-hero .intro_part {
  position: absolute; z-index: 1; float: none; padding: 0; margin: 0;
  width: calc(var(--E) * 0.62); right: calc(var(--E) * 0.19);
  top: calc(var(--top) + 4px); height: calc(var(--H) * 0.84 - var(--top) - 26px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.bs-inner .bs-title {
  margin: 0; padding: 0 0 8px; font-family: 'Titillium Web', sans-serif !important; font-weight: 400;
  font-size: 50px; line-height: 54px; color: #fff !important; text-transform: none; letter-spacing: 0;
}
.bs-inner .bs-subhead { color: #fff !important; font-size: 22px; line-height: 31px; max-width: none; padding: 0; margin: 0; }
.bs-inner .bs-subhead a { color: #fff !important; font-weight: 700; text-decoration: underline; }
@media (min-width: 1401px) { .bs-inner .bs-title { font-size: 58px; line-height: 62px; } .bs-inner .bs-subhead { font-size: 24px; line-height: 34px; } }

.bs-page-body {
  position: relative; z-index: 2; background: #fff; max-width: 1240px; margin: 0 auto 70px;
  border-radius: 24px; box-shadow: 0 12px 40px rgba(0, 52, 73, 0.18); padding: 10px 0 20px; overflow: hidden;
}

/* Tablets and phones (theme shows a white logo bar + menu button here): the curve starts under the bar, with the
   title + subheading centered in a fixed-height box (same center on every page), then the white panel. */
@media (max-width: 1100px) {
  .bs-inner { --E: min(150vw, 1150px); }
  .bs-inner .bs-hero { height: auto; }
  .bs-inner .bs-hero .wrapper { position: relative; }
  .bs-inner .bs-curve { top: 0; right: -25vw; }
  .bs-inner .bs-hero .intro_part {
    position: relative; right: auto; top: auto;
    width: calc(var(--E) * 0.5); margin: 0 0 0 calc(100% + 25vw - var(--E) * 0.5 - var(--E) * 0.25);
    height: calc(var(--H) * 0.5); padding: 0 0 50px; box-sizing: content-box;
  }
  .bs-inner .bs-title { font-size: 48px; line-height: 52px; }
  .bs-inner .bs-subhead { font-size: 22px; line-height: 32px; }
  .bs-page-body { margin-top: -50px; }
}
@media (max-width: 767px) {
  .bs-inner { --E: 210vw; }
  .bs-inner .bs-curve { right: -55vw; }
  .bs-inner .bs-hero .intro_part { width: 84vw; margin-left: 8vw; height: 240px; padding: 0 0 44px; }
  .bs-inner .bs-title { font-size: 36px; line-height: 40px; padding-bottom: 8px; }
  .bs-inner .bs-subhead { font-size: 18px; line-height: 26px; }
  .bs-page-body { border-radius: 18px; margin: -40px 8px 30px; box-shadow: 0 6px 24px rgba(0, 52, 73, 0.15); }
}

/* Waitlist: note above the form (moved out of the subheading so the subheading stays short). */
.bs-form-note { font-size: 17px; line-height: 26px; color: #444; text-align: center; margin: 14px 0 22px; }
.bs-form-note a { color: #005c7c; font-weight: 700; }

/* Contact Us: address + map beside the form (the old dark footer that held them is hidden site-wide). */
.bs-contact-info p { font-size: 16px; line-height: 26px; color: #444; margin-bottom: 14px; }
.bs-contact-info a { color: #005c7c; font-weight: 700; }
.bs-contact-info .bs-map { margin-top: 18px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 52, 73, 0.15); }
.bs-contact-info .bs-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Our Facility: the original layout reserved an empty left sidebar (col-lg-push-3); inside the white panel that
   just pushes the gallery off-center, so use the full width and center the gallery. */
.page-id-67189 .bs-page-body .col-lg-9 { width: 100%; left: 0; right: auto; }
.page-id-67189 .bs-page-body .col-lg-3:empty, .page-id-67189 .bs-page-body .col-lg-pull-9 { display: none; }
.page-id-67189 .bs-page-body .gallery { max-width: 900px; margin: 10px auto 30px !important; }

/* Waitlist / move-out: center the 640px form inside the wide white panel. */
.bs-page-body .container.boonies-form { max-width: 680px !important; margin-left: auto !important; margin-right: auto !important; } /* theme forces .container max-width */

/* "Continuing to U-Haul" / "Continuing to Bill Pay" notices (units.js, pay-notice.js) */
.bu-dialog a.bu-btn {
  display: inline-block; min-width: 170px; text-align: center; border-radius: 10px; font-weight: 700; font-size: 18px;
  line-height: 44px; height: 46px; padding: 0 22px; border: 1px solid transparent; transition: 0.3s ease; text-decoration: none;
}
.bu-dialog a.bu-btn.bu-rent { background: #feb730; color: #fff; }
.bu-dialog a.bu-btn.bu-rent:hover { background: transparent; border-color: #feb730; color: #feb730; }
.bu-dialog {
  position: fixed; inset: 0; margin: auto; height: fit-content; /* the theme overrides the default centering */
  border: 0; border-radius: 18px; padding: 30px 30px 26px; max-width: 460px; width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0, 52, 73, 0.35); color: #444;
}
.bu-dialog::backdrop { background: rgba(0, 52, 73, 0.55); }
.bu-dialog h2 { font-family: 'Titillium Web', sans-serif !important; font-weight: 600; font-size: 28px; line-height: 34px; color: #3c2415; margin: 0 0 12px; text-transform: none; }
.bu-dialog p { font-size: 16px; line-height: 25px; margin: 0 0 22px; }
.bu-dialog-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bu-dialog .bu-cancel { background: none; border: 0; color: #005c7c; font-weight: 700; font-size: 16px; cursor: pointer; padding: 10px 6px; }


/* ---- Page-to-page animation (cross-document view transitions) ----
   Browsers that support it (Chrome/Edge 126+, Safari 18.2+) animate between pages; others just load the page as
   before. Off for visitors who ask their device to reduce motion. Named pieces:
   bs-curve   the blue curve: shrinks from the home size to the inner size (and grows back to Home);
   bs-home / bs-home-img  the home headline block and RV: fade out first (and back in after the curve grows);
   bs-subhead the inner title + subheading block: fades in place (after the curve has shrunk, coming from Home);
   bs-panel   the white content panel (stays above the curve while it moves);
   bs-menu / bs-logo: held still so they don't flicker. Everything else cross-fades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.bs-curve { view-transition-name: bs-curve; }
/* home headline + RV: the slide that's showing (before the slider script runs, that's the first slide) */
.home:not(.bs-inner) .slick-current .intro_part,
.home:not(.bs-inner) .slider-for:not(.slick-initialized) > div:first-child .intro_part { view-transition-name: bs-home; }
.home:not(.bs-inner) .slick-current .img_part,
.home:not(.bs-inner) .slider-for:not(.slick-initialized) > div:first-child .img_part { view-transition-name: bs-home-img; }
.bs-inner .bs-hero .intro_part { view-transition-name: bs-subhead; } /* title + subheading */
.custom-header .cg-main-menu { view-transition-name: bs-menu; }
.custom-header .logo { view-transition-name: bs-logo; }
.bs-page-body { view-transition-name: bs-panel; } /* keeps the white panel above the moving curve */

::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }
/* curve: start moving once the headline has started to fade */
::view-transition-group(bs-curve) { animation-duration: 0.55s; animation-delay: 0.12s; }
/* Words never move or stretch: the title + subheading block sits at its final place and simply fades (old out, then
   new in). It's centered in a box that's the same on every page. */
::view-transition-group(bs-subhead) { animation: none; }
::view-transition-old(bs-subhead), ::view-transition-new(bs-subhead) { inset: 0; margin: auto; width: auto; height: auto; }
::view-transition-old(bs-subhead), ::view-transition-old(bs-home) { animation: bs-fade-out 0.18s ease-out both; }
::view-transition-new(bs-subhead) { animation: bs-fade-in 0.3s 0.16s ease-out both; }
/* coming from Home, wait for the curve to shrink first */
::view-transition-new(bs-subhead):only-child { animation-delay: 0.45s; }
/* going to Home: headline and RV appear after the curve has grown; leaving Home: RV fades with the headline */
::view-transition-new(bs-home):only-child, ::view-transition-new(bs-home-img):only-child { animation: bs-fade-in 0.3s 0.6s ease-out both; }
::view-transition-old(bs-home-img):only-child { animation: bs-fade-out 0.25s ease-out both; }
/* white panel: out quickly when going to Home, in shortly after the curve starts when leaving Home */
::view-transition-old(bs-panel):only-child { animation: bs-fade-out 0.2s ease-out both; }
::view-transition-new(bs-panel):only-child { animation: bs-fade-in 0.35s 0.15s ease-out both; }
@keyframes bs-fade-out { to { opacity: 0; } }
@keyframes bs-fade-in { from { opacity: 0; } }
