/* 5 Stars — hero inline video (plays in place, hero text hides while playing) */
:root {
  --hv-accent: #623823;
  --hv-stroke: rgba(98, 56, 35, 0.5);
  --hv-cream: #faf6f1;
}

.hero-section { position: relative; overflow: hidden; }

.hv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 1;
  background: #040401;
}

/* Legacy inline-video elements are never used: play opens the video-only dialog. */
.hv-video,
.hv-expand,
.hv-pause-ico { display: none !important; }

.hero.hv-playing .hv-video { opacity: 1; visibility: visible; }

/* Hero copy + button fade away while the video plays, return on pause */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero .rent-details {
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.hero.hv-playing .hero-content,
.hero.hv-playing .rent-details {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

/* Play / pause floating control */
.hv-toggle {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(4, 4, 1, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: "Epilogue", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hv-toggle:hover { background: rgba(98, 56, 35, 0.85); transform: translateX(-50%) translateY(-2px); }

.hv-toggle .hv-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hv-accent);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  flex: none;
}

.hv-toggle .hv-ico svg { width: 14px; height: 14px; fill: #fff; }

.hv-toggle .hv-pause-ico { display: none; }
.hero.hv-playing .hv-toggle .hv-play-ico { display: none; }
.hero.hv-playing .hv-toggle .hv-pause-ico { display: block; }

/* While playing, dock the control smaller in the corner so the video stays clear */
.hero.hv-playing .hv-toggle {
  left: auto;
  right: 22px;
  bottom: 22px;
  transform: none;
  padding: 8px;
}

.hero.hv-playing .hv-toggle .hv-label { display: none; }
.hero.hv-playing .hv-toggle:hover { transform: translateY(-2px); }

/* Expand control while playing */
.hv-expand {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: none;
  place-items: center;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(4, 4, 1, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hv-expand:hover { background: rgba(98, 56, 35, 0.85); transform: translateY(-2px); }
.hero.hv-playing .hv-expand { display: grid; }
.hv-expand svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .hv-toggle { bottom: 96px; font-size: 13px; padding: 8px 16px 8px 10px; }
  .hv-toggle .hv-ico { width: 30px; height: 30px; }
  .hero.hv-playing .hv-toggle { right: 14px; bottom: 14px; }
  .hv-expand { top: 12px; right: 12px; }
}
