/* ═══════════════════════════════════════════════════════════════
   SUMADHURA ELYSIUM — FULL RESPONSIVE OVERRIDE v5
   ═══════════════════════════════════════════════════════════════ */

/* ─── HAMBURGER BUTTON ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201,162,74,0.45);
  border-radius: 8px;
  cursor: pointer;
  padding: 9px;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.32s ease, opacity 0.32s ease, width 0.32s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-hamburger span:nth-child(1) { width: 20px; }
.nav-hamburger span:nth-child(2) { width: 14px; }
.nav-hamburger span:nth-child(3) { width: 20px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 20px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 20px; }

/* ─── MOBILE DRAWER ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(16, 3, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,162,74,0.6), transparent);
}
.mobile-menu-logo { position: absolute; top: 18px; left: 20px; }
.mobile-menu-logo img { height: 32px; width: auto; display: block; }
.mobile-menu-close {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(248,242,231,0.2);
  background: transparent; color: rgba(248,242,231,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; z-index: 2;
}
.mobile-menu-close:hover { background: rgba(201,162,74,0.15); border-color: var(--gold); color: var(--gold); }
.mobile-menu a {
  font-family: 'Italiana', serif;
  font-size: clamp(22px, 6vw, 34px); font-weight: 400;
  color: rgba(248,242,231,0.65); text-decoration: none;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,162,74,0.1);
  width: min(78vw, 300px); text-align: center;
  transition: color 0.2s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold2); }
.mobile-menu-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px; background: var(--gold);
  padding: 13px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--wine); border: none; cursor: pointer;
}

/* ─── GALLERY CAROUSEL (mobile) ───────────────────────────── */
.gallery-carousel-wrap {
  position: relative;
  display: none; /* shown only on mobile via media query */
}
.gallery-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 10px;
  padding-bottom: 4px;
}
.gallery-carousel-track::-webkit-scrollbar { display: none; }
.gallery-carousel-track .gc-item {
  flex: 0 0 88vw;
  max-width: 88vw;
  height: 240px;
  border-radius: 1rem;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
}
.gallery-carousel-track .gc-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Dots */
.gc-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 12px;
}
.gc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(201,162,74,0.3);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.gc-dot.active { background: var(--gold); transform: scale(1.3); }

/* ─── STICKY BOTTOM BAR (mobile) ──────────────────────────── */
@media (max-width: 1080px) {
  #sticky-ctas {
    position: fixed !important;
    bottom: 0 !important; top: auto !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important; transform: none !important;
    flex-direction: row !important;
    z-index: 99999 !important;
    animation: none !important; transition: none !important;
  }
  .s-tab {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    flex: 1 !important;
    padding: 15px 8px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.15em !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 0 !important;
    display: flex !important;
  }
  .s-tab svg { transform: none !important; width: 15px !important; height: 15px !important; }
  #s-call {
    display: flex !important;
    border-right: 1px solid rgba(201,162,74,0.25) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
  }
  #s-enquire { border-radius: 0 !important; }
  body { padding-bottom: 54px !important; }
}
@media (min-width: 1081px) {
  #sticky-ctas {
    position: fixed !important;
    right: 0 !important; top: 50% !important; bottom: auto !important;
    left: auto !important; width: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
    z-index: 999999 !important;
    animation: none !important;
  }
  .s-tab {
    writing-mode: vertical-lr !important;
    transform: rotate(180deg) !important;
    flex: none !important;
    padding: 22px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.22em !important;
  }
  .s-tab svg { transform: rotate(180deg) !important; flex-shrink: 0; }
  #s-call { display: none !important; }
  #s-enquire { border-radius:  8px 0 0 8px !important; }
  body { padding-bottom: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET  ≤1080px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {

  /* NAV */
  nav.main-nav {
    padding: 10px 16px !important;
    background: rgba(16,3,12,0.92) !important;
    backdrop-filter: blur(12px);
  }
  .nav-links, .nav-cta-wrap { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-logo img { height: 36px !important; }

  /* HERO — fix alignment + reduce dark empty gap */
  .hero {
    min-height: 100svh !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }
  .hero-inner {
    padding-top: 88px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 40px !important;
    /*align-items: flex-start !important;
    justify-content: flex-start !important;
   /*flex: 0 !important; /* don't stretch — removes black gap */
  }
  .hero-content { max-width: 100% !important; text-align: left !important; }
  .hero-eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  /* Hide second eyebrow line on mobile so text doesn't overflow */
  .hero-eyebrow .hero-eyebrow-line:last-child { display: none !important; }
  .hero-eyebrow-line { width: 24px !important; flex-shrink: 0 !important; }

  .hero-title    { font-size: clamp(26px, 7vw, 44px) !important; }
  .hero-script   { font-size: clamp(34px, 10vw, 52px) !important; }
  .hero-subtitle { font-size: clamp(22px, 6.5vw, 36px) !important; }
  .hero-desc { font-size: 13px !important; margin-top: 12px !important; max-width: 100% !important; }

  .hero-ctas {
    display: flex !important; flex-wrap: wrap !important;
    gap: 10px !important; margin-top: 22px !important;
  }
  .btn-hero-primary, .btn-hero-secondary {
    padding: 11px 20px !important; font-size: 9.5px !important;
  }

  /* Hide the empty stats bar that creates black gap */
  .hero-stats-bar { display: none !important; }
  .scroll-hint { display: none !important; }

  /* OVERVIEW */
  .overview { padding: 56px 20px !important; }
  .overview-inner { grid-template-columns: 1fr !important; gap: 32px !important; max-width: 100% !important; }
  .overview-img-wrap { display: none !important; }
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .overview-circles { display: none !important; }

  /* USP — hide nav dots completely (they overlap text) */
  #usp-section { height: 500vh; }
  #usp-nav { display: none !important; } /* HIDE ALL DOTS - they overlap content */
  #usp-header { top: 5vh !important; left: 20px !important; right: 20px !important; }
  #usp-header h2 { font-size: clamp(16px, 4vw, 26px) !important; margin-top: 6px !important; }
  #usp-header h2 em { font-size: clamp(20px, 5.5vw, 32px) !important; }
  .usp-overline { font-size: 9px !important; letter-spacing: 0.14em !important; }
  #usp-grid {
    padding: 0 20px !important;
    align-items: flex-end !important;
    padding-bottom: 80px !important;
  }
  #usp-grid-inner { grid-template-columns: 1fr !important; }
  #usp-roman-col { display: none !important; }
  #usp-content-col { padding-left: 0 !important; }
  .usp-pillar-num   { font-size: 9px !important; }
  .usp-pillar-title { font-size: clamp(16px, 4.5vw, 24px) !important; max-width: 100% !important; }
  .usp-pillar-body  { font-size: 12.5px !important; max-width: 100% !important; }
  .usp-stat { margin-top: 16px !important; }
  .usp-stat-big { font-size: clamp(20px, 5vw, 30px) !important; }

  /* WALKTHROUGH */
  .walkthrough { padding: 48px 20px 56px !important; }
  .video-thumb { max-width: 100% !important; margin-top: 24px !important; }
  .walkthrough-inner { max-width: 100% !important; }

  /* MASTERPLAN — fix pin overlap with bottom text */
  .masterplan { padding: 56px 20px !important; }
  .masterplan-inner { max-width: 100% !important; }
  .masterplan-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .map-wrap {
    aspect-ratio: 4/3 !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0 !important;
  }
  /* Shrink pins so they don't overlap "Sumadhura Elysium · 14 Acres" text */
  .map-pin {
    width: 26px !important; height: 26px !important;
    font-size: 9px !important; font-weight: 700 !important;
    border-width: 1.5px !important;
  }
  .map-pin.active { transform: translate(-50%,-100%) scale(1.1) !important; }
  /* Hide the bottom text label inside map on mobile */
  .map-wrap > div[style*="bottom:20px;right:20px"] { display: none !important; }
  .zone-card { position: static !important; border-radius: 8px 2rem 8px 2rem !important; }
  .zone-name { font-size: clamp(20px, 5.5vw, 28px) !important; }
  .zone-items li { font-size: 13px !important; }

  /* FLOORPLAN */
  .floorplan { padding: 56px 20px !important; }
  .floorplan-inner { max-width: 100% !important; }
  .fp-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .fp-img-wrap { aspect-ratio: 3/2 !important; }
  .fp-tabs { gap: 5px !important; flex-wrap: wrap !important; }
  .fp-tab { padding: 7px 12px !important; font-size: 9.5px !important; letter-spacing: 0.1em !important; }
  .fp-info { border-radius: 8px 2rem 8px 2rem !important; padding: 20px !important; }

  /* AMENITIES — content first, image second */
  .amenities { padding: 56px 20px !important; }
  .amenities-inner { padding: 0 !important; max-width: 100% !important; }
  .am-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .am-content { order: 1 !important; }
  .am-img     { order: 2 !important; display: block !important; position: relative !important; width: 100% !important; height: 280px !important; aspect-ratio: unset !important; min-height: 280px !important; }
  .am-img-slide { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  .am-tabs { gap: 5px !important; margin-bottom: 20px !important; flex-wrap: wrap !important; }
  .am-tab { padding: 6px 10px !important; font-size: 9px !important; letter-spacing: 0.08em !important; }
  .am-tab-num { display: none !important; }
  .am-icons { grid-template-columns: repeat(4,1fr) !important; gap: 10px !important; }
  .am-icon-circle { width: 38px !important; height: 38px !important; }
  .am-icon-label { font-size: 8.5px !important; }

  /* GALLERY — hide mosaic, show carousel */
  .gallery { padding: 56px 20px !important; }
  .gallery-inner { max-width: 100% !important; }
  .gallery-mosaic { display: none !important; } /* hide desktop mosaic */
  .gallery-carousel-wrap { display: block !important; margin-top: 24px !important; } /* show carousel */

  /* LOCATION */
  .location { padding: 56px 20px !important; }
  .location-inner { max-width: 100% !important; }
  .loc-grid { grid-template-columns: 1fr !important; gap: 24px !important; margin-top: 24px !important; }
  .loc-map-wrap { aspect-ratio: 5/4 !important; }
  .loc-sub { font-size: 13px !important; max-width: 100% !important; overflow-wrap: break-word !important; }
  .loc-item { font-size: 13px !important; }
  .loc-item span:first-child { flex: 1 !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  .loc-item-time { white-space: nowrap !important; font-size: 10px !important; }
  .loc-cat-name { font-size: clamp(14px, 4vw, 18px) !important; }

  /* RELATED */
  .related-section { padding: 56px 20px !important; }
  .related-inner { max-width: 100% !important; }
  .related-grid { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  .related-card { aspect-ratio: 4/5 !important; border-radius: 0.75rem !important; overflow: hidden !important; }

  /* FAQ */
  .faq { padding: 56px 20px !important; }
  .faq-inner { max-width: 100% !important; }
  .faq-q { padding: 18px 0 !important; gap: 12px !important; align-items: flex-start !important; }
  .faq-q h3 { font-size: clamp(13px, 3.5vw, 16px) !important; line-height: 1.4 !important; }
  .faq-toggle { flex-shrink: 0 !important; width: 30px !important; height: 30px !important; font-size: 16px !important; margin-top: 1px !important; }
  .faq-a p { font-size: 13px !important; padding: 0 0 16px 14px !important; }

  /* CONTACT — fix 2-col info grid overflow */
  .contact { padding: 56px 20px !important; }
  .contact-inner { grid-template-columns: 1fr !important; gap: 36px !important; max-width: 100% !important; }
  .contact-big-title { font-size: clamp(36px, 9vw, 60px) !important; }
  .contact-script { font-size: clamp(42px, 11vw, 68px) !important; }
  .contact-form-wrap { padding: 22px 18px !important; border-radius: 0.75rem 2rem 0.75rem 2rem !important; }
  .contact-form-title { font-size: 18px !important; }
  /* Fix the 1fr 1fr info grid — force single column */
  .contact-inner > div:first-child > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pill-dark { padding: 6px 12px !important; font-size: 10.5px !important; }

  /* TRUST BADGES — 2×2 grid, no overlap */
  .trust-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 24px !important;
    padding: 0 !important;
    justify-items: stretch !important;
  }
  /* Fix the outer wrapper padding that causes overflow */
  .contact > div[style*="padding:0 48px"],
  .contact > div[style*="padding: 0 48px"] {
    padding: 0 20px !important;
  }
  .trust-badge {
    padding: 14px 12px !important;
    border-radius: 0.75rem !important;
    align-items: flex-start !important;
    min-width: 0 !important;
  }
  .trust-badge-main { font-size: 14px !important; padding-bottom: 4px !important; }
  .trust-badge-sub  { font-size: 8.5px !important; }

  /* FOOTER */
  footer { padding: 40px 20px 72px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; max-width: 100% !important; }
  .footer-desc { max-width: 100% !important; font-size: 13px !important; }
  .footer-bottom { font-size: 10px !important; line-height: 1.6 !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE  ≤768px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #usp-section { height: 420vh !important; }
  .usp-pillar-title { font-size: clamp(15px, 4.5vw, 20px) !important; }
  .usp-pillar-body  { font-size: 12px !important; }

  .related-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .related-card { aspect-ratio: 16/9 !important; }

  .contact-inner > div:first-child > div:last-child {
    display: flex !important; flex-direction: column !important; gap: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SMALL PHONE  ≤480px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100% !important; justify-content: center !important; padding: 12px 16px !important;
  }
  #usp-section { height: 380vh !important; }
  .section-heading { font-size: clamp(18px, 6vw, 28px) !important; }
  .wt-heading { font-size: clamp(20px, 6.5vw, 30px) !important; }
  .am-heading { font-size: clamp(20px, 6.5vw, 30px) !important; }
  .loc-h1 { font-size: clamp(20px, 7vw, 28px) !important; }
  .loc-h2 { font-size: clamp(24px, 9vw, 36px) !important; }
  .fp-tab { padding: 6px 9px !important; font-size: 8.5px !important; }
  .trust-badge-main { font-size: 13px !important; }
  footer { padding: 32px 16px 72px !important; }
  .footer-bottom { font-size: 9.5px !important; }
}

/* ─── PLAY BUTTON — force perfect center, fix popup-trigger interference ─── */
.video-thumb {
  position: relative !important;
}
.play-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center center !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}
.video-thumb:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12) !important;
}
/* Prevent popup-trigger from changing play button cursor/style */
.play-btn[data-variant],
.play-btn[data-formname] {
  all: unset;
  /* If popup-trigger.js adds data attrs, reset them visually */
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 72px !important; height: 72px !important;
  border-radius: 50% !important;
  background: var(--gold) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #1a0614 !important;
  cursor: pointer !important;
}

/* Mobile: slightly smaller play button */
@media (max-width: 768px) {
  .play-btn {
    width: 56px !important;
    height: 56px !important;
  }
  .play-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ─── AMENITIES IMAGE — explicit height so absolute slides are visible ─── */
/* Already set to 280px at ≤1080px; reduce slightly on small phones */
@media (max-width: 480px) {
  .am-img {
    height: 220px !important;
    min-height: 220px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   GALLERY MOBILE CAROUSEL
   ═══════════════════════════════════════════════════════ */

/* Hide carousel on desktop — inline style on element also ensures this */
.gallery-carousel-wrap { display: none !important; }

@media (max-width: 1080px) {
  /* Hide desktop mosaic, show carousel */
  .gallery-mosaic { display: none !important; }
  .gallery-carousel-wrap { display: block !important; position: relative !important; }

  /* Track — horizontal scroll container */
  .gallery-carousel-track {
    display: flex !important;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    /* Hide scrollbar */
  }
  .gallery-carousel-track::-webkit-scrollbar { display: none; }

  /* Each card — full width, uniform height */
  .gc-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 260px !important;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    position: relative;
  }
  .gc-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s ease;
  }
  .gc-item:hover img { transform: scale(1.04); }

  /* Dot indicators */
  .gc-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .gc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(201, 162, 74, 0.25);
    border: 1px solid rgba(201, 162, 74, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
  }
  .gc-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.4);
  }
}

@media (max-width: 480px) {
  .gc-item { height: 220px !important; }
  .gc-arrow { width: 34px; height: 34px; }
  .gc-arrow svg { width: 15px; height: 15px; }
}
