/* ==========================================================================
   ANANTA STAY — Visual & responsive enhancements (Nov 2026)
   Loaded after style.css on boys.html and girls.html
   ========================================================================== */

/* ---------- Prevent sideways scroll from slide-in reveals ---------- */
section, footer, .photo-marquee { overflow-x: clip; }

/* ---------- Global polish ---------- */
.section-title { letter-spacing: -0.5px; }
.section-eyebrow, .section-tag { display: inline-block; }
.section-header .section-eyebrow {
  padding: 6px 16px; border-radius: 999px;
  background: rgba(216,155,25,0.1); border: 1px solid rgba(216,155,25,0.35);
}

/* ---------- Hero ---------- */
.hero-overlay {
  background:
    radial-gradient(ellipse at center, rgba(3,27,51,0.35) 0%, rgba(3,27,51,0.65) 70%),
    linear-gradient(180deg, rgba(3,27,51,0.55) 0%, rgba(3,27,51,0.2) 40%, rgba(3,27,51,0.9) 100%);
}
.hero-title { text-shadow: 0 6px 30px rgba(0,0,0,0.35); }
.hero-scroll-indicator { display: none; }
.hero-content { padding-bottom: 40px; }

/* ---------- Highlights — floating cards overlapping the hero ---------- */
.highlights {
  background: transparent; padding: 0 0 60px;
  position: relative; z-index: 5; margin-top: -80px;
}
.highlight-item {
  background: var(--white);
  border: 1px solid rgba(6,40,74,0.06);
  box-shadow: 0 20px 45px rgba(6,40,74,0.14);
}
.highlight-item:hover { border-color: var(--gold); }

/* ---------- Photo marquee strip ---------- */
.photo-marquee {
  overflow: hidden; padding: 10px 0 70px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.photo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 240px; width: 180px; object-fit: cover; flex: none;
  border-radius: 18px; box-shadow: 0 10px 26px rgba(6,40,74,0.15);
  transition: transform 0.5s var(--ease-cine);
}
.marquee-track img:nth-child(even) { margin-top: 28px; }
.marquee-track img:hover { transform: scale(1.04); }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ---------- Settle section — dark premium band ---------- */
.settle-section {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(216,155,25,0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(11,58,102,0.9), transparent 60%),
    var(--deep-navy);
  position: relative; overflow: hidden;
}
.settle-section .section-title { color: var(--white); }
.settle-section .section-subtitle { color: rgba(255,255,255,0.72); }
.settle-section .section-tag { color: var(--light-gold); }
.settle-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: none;
}
.settle-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(216,155,25,0.55); }
.settle-card h4 { color: var(--white); }
.settle-card p { color: rgba(255,255,255,0.68); }
.settle-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(216,155,25,0.28), rgba(216,155,25,0.08));
  border: 1px solid rgba(216,155,25,0.4);
}

/* ---------- Room option cards with photo ---------- */
.room-options-grid { gap: 32px; }
.room-option-card {
  padding: 0; overflow: hidden; position: relative;
  background: var(--white); border: 1px solid #E6EAF0;
  box-shadow: 0 14px 40px rgba(6,40,74,0.08);
}
.room-option-card.option-featured { border: 2px solid var(--gold); }
.option-media { position: relative; height: 250px; overflow: hidden; }
.option-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-cine);
}
.option-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,27,51,0.55), transparent 55%);
}
.room-option-card:hover .option-media img { transform: scale(1.07); }
.option-ribbon {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--gold); color: var(--deep-navy);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.option-ribbon.ribbon-navy { background: var(--navy); color: var(--white); }
.option-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.option-features li { padding-bottom: 10px; border-bottom: 1px dashed #E6EAF0; }
.option-features li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Amenities ---------- */
.amenities { background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%); }
.amenity-card { border-color: #E9EDF2; }
.amenity-icon {
  background: linear-gradient(135deg, var(--navy), #0E4A82);
  box-shadow: 0 8px 18px rgba(6,40,74,0.25);
}

/* ---------- Gallery ---------- */
.filter-btn { border: 1px solid #E2E8F0; }
.gallery-item { box-shadow: 0 10px 28px rgba(6,40,74,0.1); }

/* ---------- Location ---------- */
.location-map { height: 100%; min-height: 380px; box-shadow: 0 18px 40px rgba(6,40,74,0.12); }

/* ---------- Floating WhatsApp (desktop) ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 950;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  transition: transform 0.3s var(--ease-spring);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.2s ease-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
@keyframes waPulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .location-map { min-height: 340px; }
}

@media (max-width: 768px) {
  .wa-float { display: none; }

  /* Section rhythm */
  .rooms, .settle-section, .room-options-section, .amenities, .location, .faq-section, .contact-cta { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .section-subtitle { font-size: 0.92rem; }
  .section-divider { display: none; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero { min-height: 640px; height: 100svh; }
  .hero-content { padding: 0 18px 70px; }
  .hero-eyebrow { letter-spacing: 2.5px; font-size: 0.7rem; margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 26px; }
  .hero-cta-group { flex-direction: row; flex-wrap: nowrap; gap: 10px; margin-bottom: 22px; }
  .hero-cta-group .btn-primary, .hero-cta-group .btn-secondary-light {
    flex: 1; width: auto; max-width: none; padding: 13px 12px;
    justify-content: center; font-size: 0.88rem;
  }
  .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero-badge { width: auto; max-width: none; padding: 7px 14px; font-size: 0.76rem; }

  /* Highlights */
  .highlights { margin-top: -56px; padding-bottom: 36px; }
  .highlights-grid { gap: 10px; }
  .highlight-item { padding: 18px 10px; border-radius: 14px; }
  .highlight-icon { font-size: 1.5rem; margin-bottom: 6px; }
  .highlight-number { font-size: 1.05rem; }
  .highlight-label { font-size: 0.75rem; }

  /* Marquee */
  .photo-marquee { padding: 0 0 44px; }
  .marquee-track { gap: 12px; animation-duration: 45s; }
  .marquee-track img { height: 170px; width: 128px; border-radius: 14px; }
  .marquee-track img:nth-child(even) { margin-top: 18px; }

  /* Settle — compact 2-column */
  .settle-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .settle-card { padding: 20px 14px; border-radius: 14px; text-align: left; }
  .settle-icon { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; margin-bottom: 12px; }
  .settle-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
  .settle-card p { font-size: 0.78rem; line-height: 1.5; }

  /* Room options */
  .room-options-grid { gap: 22px; }
  .option-media { height: 200px; }
  .option-body { padding: 22px 20px 24px; }
  .option-header h3 { font-size: 1.25rem; }
  .option-desc { margin-bottom: 16px; }
  .option-features { gap: 9px; margin-bottom: 22px; }
  .option-features li { font-size: 0.86rem; padding-bottom: 8px; }

  /* Gallery — 2-column mosaic */
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; padding: 9px 16px; font-size: 0.82rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; gap: 10px; }
  .gallery-item { border-radius: 12px; }
  .gallery-item.gallery-featured { grid-column: span 2 !important; grid-row: span 2 !important; }
  .gallery-item.gallery-wide { grid-column: span 2 !important; grid-row: span 1 !important; }
  .gallery-overlay {
    opacity: 1; padding: 10px 12px;
    background: linear-gradient(to top, rgba(3,27,51,0.85) 0%, transparent 55%);
  }
  .gallery-category, .gallery-btn { display: none; }
  .gallery-title { font-size: 0.78rem; line-height: 1.3; }
  .gallery-item .play-badge { width: 48px; height: 48px; font-size: 1.1rem; }

  /* Life */
  .life-content { padding: 70px 0; }
  .life-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* Amenities — compact 2-column */
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .amenity-card { padding: 18px 10px; border-radius: 14px; }
  .amenity-icon { width: 44px; height: 44px; font-size: 1.15rem; margin-bottom: 10px; }
  .amenity-card h4 { font-size: 0.88rem; margin-bottom: 3px; }
  .amenity-card p { font-size: 0.74rem; }

  /* Location */
  .location-grid { gap: 24px; }
  .location-detail-item { padding: 14px; }
  .btn-directions { width: 100%; justify-content: center; }
  .location-map { min-height: 280px; }
  .location-map iframe { min-height: 280px !important; }

  /* FAQ */
  .faq-question { font-size: 0.92rem; padding: 16px 18px; }

  /* Footer — compact */
  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.1rem; }
  .hero-cta-group .btn-primary, .hero-cta-group .btn-secondary-light { font-size: 0.8rem; padding: 12px 8px; }
  .settle-card p, .amenity-card p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .wa-float::before { animation: none; }
}
