.property-video-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid #e5c78999;
  border-radius: 8px;
  background: rgba(12, 34, 64, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 18px #0004;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.property-video-button svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--gold2);
}
.property-video-button:hover {
  background: var(--navy2);
  border-color: var(--gold2);
}
.public-gallery:has(.property-video-button) .gallery-position {
  left: 16px;
  transform: none;
  bottom: 22px;
}
.property-video-empty {
  position: relative;
  min-height: 200px;
  background: var(--navy);
}
.card-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5c78966;
  border-radius: 6px;
  background: rgba(12, 34, 64, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.card-video-badge svg {
  width: 18px;
  height: 18px;
  color: var(--gold2);
}
.property-video-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 24px 100px #0007;
  overflow: auto;
}
.property-video-dialog::backdrop {
  background: rgba(3, 12, 24, 0.85);
}
.property-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}
.property-video-header > div {
  min-width: 0;
}
.property-video-header h2 {
  font:
    500 22px/1.35 Georgia,
    serif;
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}
.property-video-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.property-video-close:hover {
  background: #ffffff15;
}
.property-video-player {
  aspect-ratio: 16/9;
  min-height: 200px;
  background: #000;
}
.property-video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}
.property-video-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 24px;
  padding: 18px 24px;
  font-size: 12px;
  line-height: 1.6;
}
.property-video-footer a {
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .property-video-button {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    gap: 8px;
    font-size: 12px;
  }
  .public-gallery:has(.property-video-button) .gallery-position {
    left: 12px;
    bottom: 22px;
  }
  .property-video-header {
    padding: 16px;
    gap: 12px;
  }
  .property-video-header h2 {
    font-size: 19px;
  }
  .property-video-footer {
    padding: 16px;
  }
  .property-video-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
}
