/* ============================================================
   Another House – Golden Room Landing Page
   Styles
============================================================ */

html { scroll-behavior: smooth; }

/* Khi Tailwind CDN chậm/bị chặn: giữ ảnh & logo trong khung (tránh “phóng to” toàn màn hình) */
#navbar img[alt*="Another House"] {
  max-height: 2.75rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
#intro img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 35rem;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Sticky header blur ─────────────────────────────────────── */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 241, 230, 0.88);
  transition: box-shadow 0.3s ease;
}
.nav-blur.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }

/* ── Gold glow button ────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, #d4a373, #b8875a);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212,163,115,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #b8875a, #9a6f47);
  box-shadow: 0 8px 28px rgba(212,163,115,0.55);
  transform: translateY(-2px);
}
.btn-gold:active { transform: translateY(0); }

/* ── Fade-up animation ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll arrow bounce ─────────────────────────────────────── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}
.scroll-arrow { animation: scrollBounce 2s ease-in-out infinite; }

/* ── Section divider ─────────────────────────────────────────── */
.section-divider {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, #d4a373, #636b2f);
}

/* ── Room card ───────────────────────────────────────────────── */
.room-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.room-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,30,30,0.12); }
.room-card .room-img { transition: transform 0.5s ease; }
.room-card:hover .room-img { transform: scale(1.05); }

/* ── Gallery item ───────────────────────────────────────────── */
.gallery-item { transition: transform 0.3s ease, filter 0.3s ease; cursor: pointer; }
.gallery-item:hover { transform: scale(1.04); filter: brightness(1.1); }

/* ── Feature card ────────────────────────────────────────────── */
.feature-card { transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); }

/* ── Lightbox ────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 12px; }

/* ── Mobile menu ─────────────────────────────────────────────── */
#mobile-menu {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateX(100%); opacity: 0;
}
#mobile-menu.open { transform: translateX(0); opacity: 1; }

/* ── Star ────────────────────────────────────────────────────── */
.star { color: #d4a373; }

/* ── Video play button ───────────────────────────────────────── */
.play-btn {
  width: 72px; height: 72px;
  background: rgba(212,163,115,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(212,163,115,0.5);
}
.play-btn:hover {
  background: #d4a373;
  box-shadow: 0 0 0 16px rgba(212,163,115,0);
  transform: scale(1.08);
}

/* ── Step connector line ──────────────────────────────────────── */
.step-line { border-top: 2px dashed #d4a373; opacity: 0.4; }

/* ── Step number circle ──────────────────────────────────────── */
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #d4a373, #b8875a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.2rem;
  color: white; flex-shrink: 0;
}

/* ── Amenity pill ────────────────────────────────────────────── */
.amenity-pill {
  background: #f5f1e6;
  border: 1px solid rgba(212,163,115,0.3);
  transition: all 0.2s ease;
}
.amenity-pill:hover {
  background: #d4a373;
  color: white;
  border-color: #d4a373;
}

/* ── Parallax hero ───────────────────────────────────────────── */
.hero-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
@media (max-width: 768px) { .hero-bg { background-attachment: scroll; } }

/* ── Video overlay gradient ──────────────────────────────────── */
.video-overlay {
  background: linear-gradient(180deg, rgba(30,30,30,0.6) 0%, rgba(30,30,30,0.4) 50%, rgba(30,30,30,0.7) 100%);
}

/* ── Availability badge pulse ────────────────────────────────── */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,107,47,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(99,107,47,0); }
}
.availability-badge { animation: badgePulse 2.5s ease-in-out infinite; }

/* ── Floating contact (Zalo + phone) ─────────────────────────── */
.contact-float {
  position: fixed;
  right: 14px;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.contact-float > * { pointer-events: auto; }

.contact-float__btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-float__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.contact-float__btn:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: 3px;
}

.contact-float__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 132, 255, 0.45);
  animation: contactFloatRipple 2.2s ease-out infinite;
  pointer-events: none;
}
.contact-float__ripple--delay {
  animation-delay: 1.1s;
}

@keyframes contactFloatRipple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%, 100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.contact-float__face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-float__btn--zalo .contact-float__face {
  background: #fff;
  padding: 6px;
}
.contact-float__zalo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.contact-float__btn--phone .contact-float__face {
  background: linear-gradient(145deg, #1e3a5f, #152a45);
}
.contact-float__phone-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-float__btn--key .contact-float__face {
  background: linear-gradient(145deg, #d4a373, #b8875a);
}
.contact-float__btn--key img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .contact-float__ripple {
    animation: none;
    display: none;
  }
}
