/* Rental slideshow behind content pages (webcams, feedback, …).
   Home / sister keep their own full-bleed hero and skip this layer. */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--sea-dark);
}

.site-bg__media,
.site-bg .hero-carousel,
.site-bg .hero-slide {
  position: absolute;
  inset: 0;
}

.site-bg .hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.site-bg .hero-slide.is-active {
  opacity: 1;
}

.site-bg .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.has-bg-slideshow {
  background: var(--sea-dark);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
}

body.has-bg-slideshow > .site-header,
body.has-bg-slideshow > main,
body.has-bg-slideshow > .site-footer {
  position: relative;
  z-index: 1;
}

body.has-bg-slideshow .site-header {
  max-width: none;
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(7, 42, 64, 0.88) 0%, rgba(7, 42, 64, 0.35) 70%, transparent 100%);
}

body.has-bg-slideshow .site-brand {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

body.has-bg-slideshow .site-tagline {
  color: rgba(255, 255, 255, 0.88);
}

/* Tabs sit on top of the rental slideshow — same chrome as home-visual */
body.has-bg-slideshow .site-nav__tab {
  background: rgba(7, 42, 64, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

body.has-bg-slideshow a.site-nav__tab:hover,
body.has-bg-slideshow a.site-nav__tab:focus-visible {
  background: rgba(7, 42, 64, 0.8);
  border-color: var(--cta);
  color: #fff;
}

body.has-bg-slideshow .site-nav__tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: var(--sea-dark);
  text-shadow: none;
}

body.has-bg-slideshow main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

body.has-bg-slideshow .site-footer {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.has-bg-slideshow .card,
body.has-bg-slideshow .webcam-card,
body.has-bg-slideshow .features-block {
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.has-bg-slideshow .webcam-section {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Section notes sit on the photo — light text with shadow. */
body.has-bg-slideshow .webcam-section-note {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Muted copy inside frosted cards: dark ink on light card (never white-on-white). */
body.has-bg-slideshow .card .webcam-note,
body.has-bg-slideshow .webcam-card .webcam-note,
body.has-bg-slideshow .webcam-card__credit,
body.has-bg-slideshow .webcam-card__offline,
body.has-bg-slideshow .webcam-card__captured,
body.has-bg-slideshow .card .webcam-card__captured {
  color: var(--muted);
  text-shadow: none;
}

body.has-bg-slideshow #cookie-banner {
  background: rgba(7, 42, 64, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  .site-bg .hero-slide {
    transition: none;
  }
}
