/*
 * Bruda Club — Enhancement Layer v2
 * Append to style.css  OR  enqueue after it via functions.php
 * ============================================================ */


/* ═══════════════════════════════════════════════════════════
   HERO — Video Background
═══════════════════════════════════════════════════════════ */

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #050f05;
}

.hero__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Maintain 16:9 and always cover */
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  opacity: 0;
  transition: opacity 2.8s ease 1s;
  will-change: opacity;
}

.hero__video-wrap iframe.bc-loaded {
  opacity: 0.72;
}

/* Make existing bg-img the fallback (hidden once video loads) */
.hero__bg-img {
  transition: opacity 1.5s ease;
  will-change: opacity;
}
.hero--has-video .hero__bg-img {
  opacity: 0 !important;
}

/* Deepen gradient when video is present */
.hero--has-video::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 15, 5, 0.18) 0%,
    rgba(10, 26, 10, 0.42) 35%,
    rgba(15, 35, 15, 0.72) 65%,
    rgba(19, 42, 19, 0.96) 100%
  ) !important;
}


/* ═══════════════════════════════════════════════════════════
   HERO — Cinematic Letterbox Bars
═══════════════════════════════════════════════════════════ */

.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
  z-index: 4;
  pointer-events: none;
  transition: height 1.4s cubic-bezier(0.76, 0, 0.24, 1) 0.2s;
}
.hero__bar--top { top: 0; height: 72px; }
.hero__bar--bot { bottom: 0; height: 72px; }

.hero--revealed .hero__bar--top,
.hero--revealed .hero__bar--bot { height: 0; }

@media (max-width: 768px) {
  .hero__bar--top,
  .hero__bar--bot { height: 44px; }
}


/* ═══════════════════════════════════════════════════════════
   HERO — Staggered Content Reveal
═══════════════════════════════════════════════════════════ */

.hero__eyebrow,
.hero__title,
.hero__subtitle {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* CTA is always hidden until launchVideo() triggers it — never auto-reveal */
.hero__cta {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.8s ease !important;
}
.hero__cta--visible {
  opacity: 1 !important;
}
.hero--video-mode .hero__cta {
  pointer-events: auto;
}
.hero__scroll {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  transition: opacity 1s ease 1.1s,
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s;
}

.hero--revealed .hero__eyebrow  { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.hero--revealed .hero__title    { opacity: 1; transform: translateY(0); transition-delay: 0.72s; }
.hero--revealed .hero__subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.88s; }
/* hero__cta intentionally NOT in hero--revealed — controlled by launchVideo() */
.hero--revealed .hero__scroll   { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Eyebrow border glow pulse */
@keyframes eyebrowPulse {
  0%, 100% { border-color: rgba(240,104,31,0.4); box-shadow: none; }
  50%       { border-color: rgba(240,104,31,0.9); box-shadow: 0 0 18px rgba(240,104,31,0.2); }
}
.hero--revealed .hero__eyebrow {
  animation: eyebrowPulse 4s ease-in-out 2s infinite;
}


/* ═══════════════════════════════════════════════════════════
   HERO — Typewriter Cursor
═══════════════════════════════════════════════════════════ */

.bc-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 2px;
  animation: bcBlink 0.72s ease-in-out infinite;
}
@keyframes bcBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Grain overlay for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════
   VIDEO SECTION — Scroll-lift embed
═══════════════════════════════════════════════════════════ */

.video-embed-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.55),
              0 0 0 1px rgba(111,191,115,0.08);
  opacity: 0;
  transform: translateY(48px) scale(0.975);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease;
  will-change: transform, opacity;
}
.video-embed-wrap.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.video-embed-wrap:hover {
  box-shadow: 0 36px 80px -16px rgba(0,0,0,0.65),
              0 0 0 1px rgba(111,191,115,0.22);
}


/* ═══════════════════════════════════════════════════════════
   SCROLL REVEALS
═══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(52px);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* WIZARD STYLES — moved to style.css dark-glass theme */
   BOOKING — Visual Mood Selector
═══════════════════════════════════════════════════════════ */

.bw-opt--mood {
  min-height: 170px !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 20px 20px 18px !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  border-radius: 14px !important;
  position: relative !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
}
/* Tint overlay */
.bw-opt--mood::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}
.bw-opt--mood:hover::before,
.bw-opt--mood.bw-selected::before {
  opacity: 0.55;
}
.bw-opt--mood > * { position: relative; z-index: 1; }

.bw-opt--mood .bw-opt__icon {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
}
.bw-opt--mood .bw-opt__icon svg { display: none !important; }

.bw-opt--mood .bw-opt__title {
  font-family: 'Caveat', cursive !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.bw-opt--mood .bw-opt__sub {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.72) !important;
  margin-top: 4px !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.bw-opt--mood.bw-selected {
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 0 0 2.5px rgba(255,255,255,0.4),
              0 8px 32px rgba(0,0,0,0.35) !important;
}
.bw-opt--mood.bw-selected::after {
  display: none !important;
}

/* Active: warm amber */
.bw-opt--mood[data-val="active"] {
  background: linear-gradient(145deg, #2a1200 0%, #6b2d00 45%, #b85000 100%) !important;
}
/* Slow: misty green-blue */
.bw-opt--mood[data-val="slow"] {
  background: linear-gradient(145deg, #041418 0%, #083040 45%, #0a5048 100%) !important;
}
/* Flow: deep jungle */
.bw-opt--mood[data-val="flow"] {
  background: linear-gradient(145deg, #060e06 0%, #0f2a0f 45%, #1b4330 100%) !important;
}


/* ═══════════════════════════════════════════════════════════
   BOOKING — Step Transitions
═══════════════════════════════════════════════════════════ */

@keyframes bwStepInRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bwStepInLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bw-step:not([hidden]) {
  animation: bwStepInRight 0.38s cubic-bezier(0.22,1,0.36,1) both;
}
.bw-step.bc-back-anim:not([hidden]) {
  animation: bwStepInLeft 0.38s cubic-bezier(0.22,1,0.36,1) both;
}


/* ═══════════════════════════════════════════════════════════
   MODAL — Smooth open / close
═══════════════════════════════════════════════════════════ */

.bw-modal {
  transition: opacity 0.28s ease !important;
}
.bw-modal__panel {
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s ease !important;
}
.bw-modal--closing {
  opacity: 0 !important;
  pointer-events: none !important;
}
.bw-modal--closing .bw-modal__panel {
  transform: translateY(28px) scale(0.97) !important;
  opacity: 0 !important;
}


/* ═══════════════════════════════════════════════════════════
   GLOBAL — Button ripple keyframe
═══════════════════════════════════════════════════════════ */
@keyframes bcRipple {
  to { transform: scale(5); opacity: 0; }
}

/* Global tap press */
.btn:active,
.quick-btn:active,
.accom-option:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}


/* ═══════════════════════════════════════════════════════════
   THE BASE — Video Placeholder Component
═══════════════════════════════════════════════════════════ */
.bc-video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.bc-video-placeholder:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.bc-video-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.bc-video-placeholder__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: background 0.25s ease, color 0.25s ease;
}

.bc-video-placeholder:hover .bc-video-placeholder__icon {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.bc-video-placeholder__label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

/* Keep same aspect-ratio slot on small screens */
@media (max-width: 680px) {
  .bc-video-placeholder {
    aspect-ratio: 4 / 3;
  }
}


/* ═══════════════════════════════════════════════════════════
   WHERE YOU SLEEP — 2-col grid (slider left, card right)
═══════════════════════════════════════════════════════════ */
.hs-sleep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

/* House card: stretch to full slider height */
.hs-house-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  box-sizing: border-box;
}

.hs-house-card .btn {
  margin-top: 8px;
}

/* Slider: fixed 4/3 ratio */
.hs-sleep-grid .bc-slider {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: unset;
}

/* Contain images with blurred background */
.bc-slider--contain .bc-slider__slide {
  position: relative;
  background: #0a0a0a;
}

.bc-slider--contain .bc-slider__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.4) saturate(0.7);
  transform: scale(1.08);
  z-index: 0;
}

.bc-slider--contain .bc-slider__slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .hs-sleep-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hs-house-card {
    height: auto;
    padding: 32px 24px;
  }
}


/* ═══════════════════════════════════════════════════════════
   DATE DROPDOWNS — Day / Month / Year selects
═══════════════════════════════════════════════════════════ */
.bw-date-dropdowns {
  display: flex;
  gap: 8px;
  margin: 4px 0 0;
}

.bw-dd-select {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 0.92rem;
  padding: 10px 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.bw-dd-select:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}

.bw-dd-select option {
  background: #1a1a1a;
  color: #fff;
}

/* Month select slightly wider */
.bw-date-dropdowns .bw-dd-select:nth-child(2) {
  flex: 1.4;
}

@media (max-width: 480px) {
  .bw-date-dropdowns {
    gap: 6px;
  }
  .bw-dd-select {
    padding: 9px 4px;
    font-size: 0.85rem;
  }
}

/* ─────────────────────────────────────────────
   JUNGLE GROUP PRICING — Dynamic Pricing Table
   ───────────────────────────────────────────── */

/* Inline pricing table (shown on info & group steps) */
.bw-pricing-table {
  margin: 20px 0 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(200,169,126,0.08);
  border: 1px solid rgba(200,169,126,0.18);
}
.bw-pricing-table--compact {
  margin: 14px 0 0;
  font-size: 12px;
}
.bw-pricing-table__title {
  font-family: var(--bw-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(200,169,126,0.12);
}
.bw-pricing-table__rows {
  display: flex;
  flex-direction: column;
}
.bw-pricing-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.bw-pricing-table__row:last-child { border-bottom: none; }
.bw-pricing-table__row:hover { background: rgba(200,169,126,0.06); }
.bw-pt__group {
  font-family: var(--bw-font-mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}
.bw-pt__price {
  font-family: var(--bw-font-display, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--bw-accent, #c8a97e);
  letter-spacing: -0.01em;
}
.bw-pricing-table--compact .bw-pt__group { font-size: 10px; }
.bw-pricing-table--compact .bw-pt__price { font-size: 13px; }
.bw-pricing-table--compact .bw-pricing-table__row { padding: 7px 12px; }

/* Price badge on number-picker tiles */
.bw-opt__price-badge {
  font-family: var(--bw-font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--bw-accent, #c8a97e);
  opacity: 0.8;
  line-height: 1;
  text-align: center;
}
.bw-opt--num.sel .bw-opt__price-badge { color: rgba(255,255,255,0.85); opacity: 1; }
.bw-opt--num { gap: 3px; }

/* Live pricing strip (group step, appears after selection) */
.bw-pricing-strip {
  margin-top: 18px;
  border-radius: 10px;
  background: rgba(200,169,126,0.1);
  border: 1px solid rgba(200,169,126,0.25);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: bw-fadein 0.25s ease;
}
.bw-pricing-strip[hidden] { display: none; }
.bw-pstrip__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bw-pstrip__label {
  font-family: var(--bw-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.bw-pstrip__pp {
  font-family: var(--bw-font-display, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.bw-pstrip__row--total { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(200,169,126,0.2); }
.bw-pstrip__total {
  font-family: var(--bw-font-display, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bw-accent, #c8a97e);
  letter-spacing: -0.02em;
}

/* Enhanced price-preview for jungle date step (multi-row) */
.bw-price-preview--jungle {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: rgba(200,169,126,0.08);
  border: 1px solid rgba(200,169,126,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 18px 0 6px;
}
.bw-price-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: var(--bw-font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 0;
}
.bw-price-preview__row span:last-child { color: rgba(255,255,255,0.7); }
.bw-price-preview__row--total {
  border-top: 1px solid rgba(200,169,126,0.18);
  margin-top: 6px;
  padding-top: 8px;
}
.bw-price-preview__row--total strong {
  font-family: var(--bw-font-display, sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bw-accent, #c8a97e);
  letter-spacing: -0.02em;
  text-transform: none;
}

@keyframes bw-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .bw-pricing-table { font-size: 11px; }
  .bw-pt__price { font-size: 13px; }
  .bw-pstrip__total { font-size: 20px; }
}
