/* ============================================================
   HAVENA PRO — Shared video modal shell
   Extracted for Agent Home + property surfaces (details.css parity).
   ============================================================ */

.havena-pro-video-modal {
  position: fixed;
  inset: 0;
  z-index: 140010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.havena-pro-video-modal[hidden] {
  display: none !important;
}

.havena-pro-video-modal.is-open {
  display: flex;
}

.havena-pro-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.92);
}

.havena-pro-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.havena-pro-video-modal__close {
  position: absolute;
  top: -3.1rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-video-modal__close:hover,
.havena-pro-video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.havena-pro-video-modal__close svg {
  width: 18px;
  height: 18px;
}

.havena-pro-video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--havena-pro-radius-sm, 10px);
  overflow: hidden;
  background: #000;
}

.havena-pro-video-modal__frame iframe,
.havena-pro-video-modal__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@media (max-width: 680px) {
  .havena-pro-video-modal {
    padding: 3.5rem 0.75rem 0.75rem;
  }

  .havena-pro-video-modal__close {
    top: -2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-video-modal,
  .havena-pro-video-modal__close,
  .havena-pro-video-modal__frame {
    transition: none !important;
    animation: none !important;
  }
}
