/* ==========================================================================
   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 {
  overflow-x: clip;
  overflow-y: visible;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

html::-webkit-scrollbar:horizontal,
body::-webkit-scrollbar:horizontal,
::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
  width: 0px !important;
  background: transparent !important;
}

/* ==========================================================================
   SUBTLE LUXURY PRELOADER (DISABLED TO PREVENT SCREEN BLOCKING)
   ========================================================================== */
.hero-preloader {
  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 (PINNED FULL-SCROLL SEQUENCE TRACK)
   ========================================================================== */
.mahala-hero {
  position: relative;
  width: 100%;
  height: 300vh; /* Smooth pinned sequence track: guarantees user views full sequence before page continues */
  flex-shrink: 0;
  background: var(--mahala-bg);
}

@media (max-width: 768px) {
  .mahala-hero {
    height: 220vh; /* Smooth pinned sequence track on mobile: guarantees user views full sequence */
  }
}

.mahala-hero-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 10;
  background-color: var(--mahala-bg);
  background-image: url('frames/ezgif-frame-216.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 15;
  touch-action: pan-y;
  pointer-events: none;
}

/* Cinematic Vignette Overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.05) 40%, rgba(7, 9, 14, 0.65) 100%),
              linear-gradient(180deg, rgba(7, 9, 14, 0.4) 0%, rgba(7, 9, 14, 0.02) 25%, rgba(7, 9, 14, 0.15) 65%, rgba(17, 19, 23, 0.95) 100%);
  pointer-events: none;
  z-index: 20;
}

/* 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: 30;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-content a,
.hero-content button,
.hero-actions {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 75px 18px 24px 18px !important;
    justify-content: flex-end !important;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.25) 0%, transparent 20%, rgba(7, 9, 14, 0.6) 60%, rgba(7, 9, 14, 0.95) 100%) !important;
  }

  .hero-eyebrow {
    margin-bottom: 4px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.14em !important;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 5.2vw, 2.05rem) !important;
    line-height: 1.06 !important;
    margin-bottom: 6px !important;
  }

  .hero-subheadline {
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
    color: #e2e2e6 !important;
  }

  .hero-description {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #9ca3af !important;
  }

  .hero-actions {
    flex-direction: row !important;
    width: 100% !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .hero-btn {
    flex: 1 !important;
    padding: 10px 12px !important;
    font-size: 0.72rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .hero-scroll-cue {
    margin-top: 4px !important;
  }

  .cue-label {
    font-size: 0.65rem !important;
  }
}

.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) {
  .section-pop-side {
    transform: translateX(20px) scale(0.99);
  }
  .anim-reveal-left {
    transform: translateX(-15px) scale(0.99);
  }
  .anim-reveal-right {
    transform: translateX(15px) scale(0.99);
  }
  .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);
}




/* Force disable horizontal scrollbar line */
::-webkit-scrollbar {
  width: 8px;
  height: 0px !important;
}
::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
}
