
/* ================================================================
   FIREFLY PATTAYA — FINAL SCREENSHOT STYLE
   Consistent cinematic hero/header treatment across every page.
   ================================================================ */

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

.site-header,
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(5, 10, 8, 0.34) !important;
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}

.subpage-hero {
  position: relative !important;
  width: 100% !important;
  height: 80vh !important;
  min-height: 680px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.subpage-hero .hero-bg-wrapper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.subpage-hero .hero-bg-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.01) !important;
  filter: saturate(.92) contrast(1.02) !important;
}

.subpage-hero .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(3,8,7,.46) 0%, rgba(3,8,7,.18) 34%, rgba(3,8,7,.52) 100%),
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.02), rgba(0,0,0,.22) 78%) !important;
}

.subpage-hero .hero-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 96px 32px 56px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  transform: none !important;
}

.subpage-hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 26px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #e6b83d !important;
  text-align: center !important;
}

.subpage-hero .hero-title {
  width: min(92vw, 1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
  font-size: clamp(3.2rem, 5.2vw, 5.6rem) !important;
  line-height: .98 !important;
  letter-spacing: -.035em !important;
  text-align: center !important;
  color: #fff !important;
  white-space: normal !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.subpage-hero .hero-subtitle {
  width: min(88vw, 820px) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: clamp(1rem, 1.35vw, 1.35rem) !important;
  line-height: 1.65 !important;
  text-align: center !important;
  color: rgba(255,255,255,.93) !important;
}

.subpage-hero .firefly-three-canvas,
.subpage-hero .pro-3d-field {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.subpage-hero::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 26% !important;
  z-index: 4 !important;
  pointer-events: none !important;
  background: linear-gradient(to bottom, transparent, rgba(3,7,5,.86)) !important;
}

@media (max-width: 900px) {
  .subpage-hero {
    height: 78vh !important;
    min-height: 600px !important;
  }

  .subpage-hero .hero-content {
    padding: 88px 22px 48px !important;
  }

  .subpage-hero .hero-title {
    width: 94vw !important;
    font-size: clamp(2.7rem, 8vw, 4.5rem) !important;
  }

  .subpage-hero .hero-subtitle {
    width: 92vw !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 600px) {
  .subpage-hero {
    height: 76svh !important;
    min-height: 560px !important;
  }

  .subpage-hero .hero-content {
    padding: 92px 18px 38px !important;
  }

  .subpage-hero .eyebrow {
    margin-bottom: 18px !important;
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }

  .subpage-hero .hero-title {
    width: 94vw !important;
    margin-bottom: 16px !important;
    font-size: clamp(2.45rem, 11vw, 3.8rem) !important;
    line-height: 1.02 !important;
  }

  .subpage-hero .hero-subtitle {
    width: 92vw !important;
    font-size: .94rem !important;
    line-height: 1.55 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-hero .hero-bg-img {
    transform: none !important;
  }
}

/* ================================================================
   FIREFLY FINAL POLISH — BOOKING / NIGHT / SECTION CONSISTENCY
   ================================================================ */

/* Booking bar: preserve its original dimensions while keeping all
   decorative/marquee layers behind it. */
.booking-section-wrapper {
  position: relative !important;
  z-index: 1000 !important;
  isolation: isolate !important;
  margin-top: 0 !important;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
  padding-top: 0 !important;
}

.booking-section-wrapper .container,
.booking-bar {
  position: relative !important;
  z-index: 1001 !important;
}

.booking-bar {
  overflow: visible !important;
}

.booking-field,
.booking-bar > div:last-child {
  position: relative !important;
  z-index: 1002 !important;
}

.booking-input[type="date"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  color-scheme: dark !important;
  cursor: pointer !important;
}

.booking-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .95 !important;
  cursor: pointer !important;
  filter: none !important;
}

/* Decorative layers after the booking bar stay visually behind it. */
.booking-section-wrapper ~ * {
  z-index: auto;
}

/* Nighttime Wonder: cleaner editorial presentation, no image tilt. */
.firefly-night-section {
  position: relative !important;
  isolation: isolate !important;
  padding: clamp(7rem, 10vw, 10rem) 0 clamp(6rem, 9vw, 9rem) !important;
  overflow: hidden !important;
}

.firefly-night-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(224,190,82,.09), transparent 28%),
    linear-gradient(180deg, rgba(4,8,6,.10), rgba(3,6,4,.38));
}

.night-content {
  position: relative !important;
  z-index: 3 !important;
}

.night-content .eyebrow {
  margin-bottom: 1.15rem !important;
}

.night-content .section-title {
  max-width: 1050px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.02 !important;
}

.night-content .lead {
  color: rgba(245,236,217,.78) !important;
  line-height: 1.75 !important;
}

.night-image-showcase {
  max-width: 1080px !important;
  margin: clamp(3rem, 5vw, 4.5rem) auto 0 !important;
  border-radius: 6px !important;
  transform: none !important;
  box-shadow:
    0 35px 90px rgba(0,0,0,.58),
    0 0 0 1px rgba(216,184,90,.10),
    0 0 55px rgba(216,184,90,.08) !important;
}

.night-image-showcase::after {
  content: "FIREFLY AFTER DARK";
  position: absolute;
  left: 1.25rem;
  bottom: 1.15rem;
  z-index: 2;
  padding: .55rem .8rem;
  border: 1px solid rgba(245,236,217,.20);
  background: rgba(5,9,7,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245,236,217,.86);
  font: 600 .58rem/1 var(--font-sans);
  letter-spacing: .20em;
}

.night-image-showcase img {
  display: block !important;
  width: 100% !important;
  height: clamp(380px, 46vw, 590px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter 1.1s ease !important;
}

.night-image-showcase:hover img {
  transform: scale(1.025) !important;
  filter: saturate(1.04) contrast(1.03) !important;
}

/* Keep the cinematic journey image fixed and straight. */
.cinematic-space .space-stage,
.cinematic-space .space-image,
.cinematic-space .space-image img {
  rotate: 0deg !important;
  transform-origin: center center !important;
}

.cinematic-space .space-image img {
  backface-visibility: hidden !important;
}

/* Consistent premium section rhythm across the site. */
.section + .section,
.firefly-night-section + .section,
.testimonials-section + .section {
  position: relative;
}

/* Avoid accidental clipping of editorial headings during reveal. */
.testimonials-section {
  padding-top: clamp(7rem, 10vw, 10rem) !important;
}

.testimonials-heading .section-title {
  padding-top: .12em;
}

@media (max-width: 768px) {
  .booking-section-wrapper {
    margin-bottom: 2.5rem !important;
  }

  .firefly-night-section {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
  }

  .night-content .section-title {
    line-height: 1.06 !important;
  }

  .night-image-showcase img {
    height: 330px !important;
  }

  .night-image-showcase::after {
    left: .75rem;
    bottom: .75rem;
    font-size: .5rem;
  }

  .testimonials-section {
    padding-top: 5.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .night-image-showcase img,
  .cinematic-space .space-image img {
    transition: none !important;
    transform: none !important;
  }
}
