/* Property videos (public/js/property-videos.js): three poster cards and a dialog. No video bytes load
   before a click. Colours come from the brand variables only. */
.pv-section[hidden] { display: none; }
.pv-section { margin-top: var(--space-block, 2rem); }
.pv-section h2 { margin: 0 0 var(--space-4); font-size: var(--font-size-2xl); text-wrap: balance; }
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.pv-card { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-md); background: var(--brand-primary-dark); color: var(--brand-on-primary); font: inherit; text-align: left;
  box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; }
.pv-card:hover { box-shadow: var(--shadow-md); }
.pv-card:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: 3px; }
.pv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%); }
.pv-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--brand-cta); color: var(--brand-on-cta); box-shadow: var(--shadow-md); }
.pv-play svg { margin-left: 2px; }
.pv-label { position: absolute; z-index: 1; left: var(--space-3, 0.75rem); right: var(--space-3, 0.75rem); bottom: var(--space-3, 0.75rem); color: #fff; font-weight: 600; line-height: 1.2; text-wrap: balance; }

.pv-dialog { width: min(1100px, 96vw); max-width: 96vw; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-md); background: #000; color: #fff; overflow: hidden; }
.pv-dialog::backdrop { background: rgba(8, 10, 12, 0.88); }
.pv-dialog video { display: block; width: 100%; max-height: 90vh; background: #000; }
.pv-dialog.pv-is-vertical { width: min(420px, 96vw); }
.pv-close { position: absolute; z-index: 2; top: 0.5rem; right: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; }
.pv-close:hover { background: rgba(0, 0, 0, 0.85); }
.pv-close:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: 2px; }
html.pv-open { overflow: hidden; }

@media (max-width: 720px) {
  .pv-grid { grid-template-columns: 1fr; }
}
