/* ==========================================================================
   MAHALA EXPORT 216-FRAME CINEMATIC HERO ENGINE STYLES
   Integrated with Stitch Luxury Platform
   ========================================================================== */

:root {
  --mahala-bg: #07090e;
  --mahala-cyan: #38bdf8;
  --mahala-cyan-glow: rgba(56, 189, 248, 0.25);
  --mahala-red: #e11d48;
  --mahala-border: rgba(255, 255, 255, 0.1);
  --mahala-font-title: 'Syne', sans-serif;
  --mahala-font-tech: 'Space Grotesk', monospace;
  --mahala-font-body: 'Outfit', sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ==========================================================================
   SUBTLE LUXURY PRELOADER
   ========================================================================== */
.hero-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--mahala-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: auto;
}

.hero-preloader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 260px;
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mahala-red);
  box-shadow: 0 0 10px var(--mahala-red);
  animation: pulseDot 1.5s infinite ease-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.brand-name {
  font-family: var(--mahala-font-title);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #991b1b, #e11d48, #ff4d6d);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.7);
  transition: width 0.12s ease-out;
}

/* ==========================================================================
   MAHALA HERO CINEMA (NATURAL FLUID SCROLL VIEWPORT)
   ========================================================================== */
.mahala-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--mahala-bg);
  overflow: visible;
}

.mahala-hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  z-index: 10;
  background: var(--mahala-bg);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cinematic Vignette Overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.12) 35%, rgba(7, 9, 14, 0.82) 100%),
              linear-gradient(180deg, rgba(7, 9, 14, 0.7) 0%, rgba(7, 9, 14, 0.05) 30%, rgba(7, 9, 14, 0.2) 70%, rgba(17, 19, 23, 0.95) 100%);
  pointer-events: none;
}

/* Hero Typography Overlay */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 8vw 0 8vw;
  z-index: 20;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mahala-font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #ff4d6d;
  margin-bottom: 20px;
}

.eyebrow-accent {
  width: 24px;
  height: 2px;
  background: var(--mahala-red);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.6);
}

.hero-headline {
  font-family: var(--mahala-font-title);
  font-size: calc(2.8rem + 2.8vw);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.headline-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #ff4d6d 80%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(225, 29, 72, 0.35);
}

.hero-subheadline {
  font-family: var(--mahala-font-tech);
  font-size: calc(1.1rem + 0.4vw);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.hero-description {
  max-width: 540px;
  font-family: var(--mahala-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mahala-font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.hero-btn-primary {
  background: var(--mahala-red) !important;
  color: #ffffff !important;
  border: 1px solid var(--mahala-red) !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
}

.hero-btn-primary:hover {
  background: #ffffff !important;
  color: var(--mahala-red) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35), 0 4px 20px rgba(225, 29, 72, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--mahala-red) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mahala-font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #64748b;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 85px 20px 20px 20px !important;
    justify-content: center;
  }
  .hero-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 12px;
    letter-spacing: 0.16em;
  }
  .hero-headline {
    font-size: 2.1rem !important;
    line-height: 1.12;
    margin-bottom: 12px;
  }
  .hero-subheadline {
    font-size: 0.98rem;
    margin-bottom: 10px;
  }
  .hero-description {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hero-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.8rem;
  }
  .hero-scroll-cue {
    display: none;
  }
  .section-pop-side {
    transform: translateX(30px) scale(0.98);
  }
  .anim-reveal-left {
    transform: translateX(-25px) scale(0.98);
  }
  .anim-reveal-right {
    transform: translateX(25px) scale(0.98);
  }
  .map-frame-wrap {
    height: 280px;
  }
}

/* ==========================================================================
   CINEMATIC SECTION 2 ENTRANCE (SLIDE & POP IN FROM SIDE)
   ========================================================================== */
.section-pop-side {
  opacity: 0;
  transform: translateX(80px) scale(0.96);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.section-pop-side.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* Mobile Drawer Transition */
#mobileMenuDrawer {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* ==========================================================================
   DYNAMIC SECTION VISIBILITY & ENTRANCE POLISH
   ========================================================================== */
.section-pop-side,
.anim-reveal-left,
.anim-reveal-right,
.anim-reveal-up {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* ==========================================================================
   RED BUTTONS: SIMPLE (BG-RED / TEXT-WHITE) -> HOVER (BG-WHITE / TEXT-RED)
   ========================================================================== */
.hero-btn-primary,
header a.bg-primary,
#mobileMenuDrawer a.bg-primary-container,
#btnResetFiltersEmpty,
#btnExplore {
  background-color: #e11d48 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  border: 1px solid #e11d48 !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45) !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  cursor: pointer;
}

.hero-btn-primary:hover,
header a.bg-primary:hover,
#mobileMenuDrawer a.bg-primary-container:hover,
#btnResetFiltersEmpty:hover,
#btnExplore:hover {
  background-color: #ffffff !important;
  color: #e11d48 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35), 0 4px 20px rgba(225, 29, 72, 0.5) !important;
}

/* Secondary Button: Live Auctions */
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease !important;
}

.hero-btn-secondary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #e11d48 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Interactive Card Hover Polish */
.luxury-card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.luxury-card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.6) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(225, 29, 72, 0.25) !important;
}

/* Google Map Container Styling */
.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.85);
  transition: filter 0.4s ease;
}

.map-frame-wrap:hover iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(1.15) brightness(0.95);
}



