/* Loaded after the existing site stylesheet. */
#head--section {
  position: relative;
  min-height: 450px;
  height: max(450px, calc(min(56.25vw, 100vh) - 150px));
}

#head--section .bg_image {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background-image: url("/assets/mallorca-hero-20260909.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#head--section .hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

#head--section .hero-video-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.18);
}

#head--section #hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

#head--section #hero-video.is-playing {
  opacity: 1;
}

#head--section .headline {
  z-index: 4;
}

#head--section #head {
  z-index: 10;
}

#head--section .hero-video-toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

#head--section .hero-video-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

#head--section .hero-video-toggle:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.75);
}

#head--section .hero-video-toggle[hidden] {
  display: none !important;
}

@media (max-width: 959.98px) {
  #head--section .bg_image {
    background-position: 35% center;
  }

  #head--section #hero-video {
    object-position: 35% center;
  }

  #head--section .hero-video-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #head--section #hero-video {
    transition: none;
  }
}
