/* BrandNewHomes.in - Zero-CLS Synthetic Video Walkthrough & Responsive Player Styles */

:root {
  --bnh-video-aspect: 16 / 9;
  --bnh-video-bg: #0f172a;
  --bnh-gold: #d4af37;
  --bnh-gold-light: #f3e5ab;
}

/* Zero-CLS Container with Strict Aspect-Ratio Locking */
.bnh-video-card-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bnh-video-aspect);
  background: var(--bnh-video-bg);
  border-radius: 14px;
  overflow: hidden;
  contain: layout paint;
}

.bnh-video-card-wrapper[data-aspect="4/3"] {
  aspect-ratio: 4 / 3;
}

/* Background Poster Image with Smooth Fade */
.bnh-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.bnh-video-card-wrapper:hover .bnh-video-poster {
  transform: scale(1.03);
}

/* Desktop Looping Background Reel */
.bnh-video-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.bnh-video-reel.is-active {
  opacity: 1;
}

/* Subtle Gradient Overlay */
.bnh-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Glassmorphic "▶ 30s Video Tour" Badge */
.bnh-tour-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.bnh-tour-badge:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(10, 37, 64, 0.88);
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--bnh-gold-light);
}

.bnh-tour-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  color: #0a2540;
  font-size: 10px;
  padding-left: 2px;
}

.bnh-architecture-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 4px 10px;
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: var(--bnh-gold-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Full-Screen Video Lightbox Modal (Zero Bloat Vanilla DOM) */
.bnh-video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  padding: 20px;
}

.bnh-video-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.bnh-video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.bnh-video-modal-backdrop.is-open .bnh-video-modal-dialog {
  transform: scale(1);
}

.bnh-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bnh-video-modal-title {
  color: #ffffff;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin: 0;
}

.bnh-video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bnh-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.bnh-video-modal-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnh-video-modal-player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Architectural Showcase Section & Interactive Grid                          */
/* -------------------------------------------------------------------------- */
.bnh-video-showcase-section {
  margin: 48px 0;
  padding: 48px 6vw;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.bnh-video-showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #60efff, transparent);
  opacity: 0.7;
}

.bnh-video-showcase-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bnh-video-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  color: var(--bnh-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.bnh-video-showcase-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.2vw, 38px);
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.bnh-video-showcase-header p {
  color: #94a3b8;
  font-size: clamp(14px, 1.5vw, 16px);
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.bnh-video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .bnh-video-showcase-grid {
    grid-template-columns: 1fr;
  }
  .bnh-video-showcase-section {
    padding: 32px 20px;
    margin: 32px 0;
    border-radius: 20px;
  }
}

.bnh-video-feature-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
  contain: content;
}

.bnh-video-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.bnh-video-feature-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bnh-video-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.bnh-video-feature-loc {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bnh-video-feature-duration {
  font-weight: 600;
  color: var(--bnh-gold-light);
}

.bnh-video-feature-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: #ffffff;
  margin: 0;
}

.bnh-video-feature-cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bnh-video-watch-link {
  background: none;
  border: none;
  color: #60efff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}

.bnh-video-watch-link:hover {
  color: #ffffff;
}

