/* Villa Lora — Custom Styles */

/* ================================ */
/* BASE                              */
/* ================================ */

html {
  scroll-behavior: smooth;
}

/* Warm scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FFFCF7;
}
::-webkit-scrollbar-thumb {
  background: #BAE6FD;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0EA5E9;
}

/* ================================ */
/* HERO ANIMATIONS                   */
/* ================================ */

/* Slow zoom on hero background */
.hero-bg {
  animation: heroZoom 25s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Staggered fade-in for hero content */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Warm sunset gradient on hero title */
.hero-title {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFE4B5 40%, #FDBA74 70%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards;
}
.hero-fade-1 { animation-delay: 0.3s; }
.hero-fade-2 { animation-delay: 0.6s; }
.hero-fade-3 { animation-delay: 0.9s; }
.hero-fade-4 { animation-delay: 1.2s; }

/* Scroll indicator animation */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ================================ */
/* WAVE DIVIDER                      */
/* ================================ */

.wave-divider {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.wave-divider svg {
  display: block;
  height: 60px;
}

/* ================================ */
/* NAVIGATION                        */
/* ================================ */

.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-active {
  color: #0EA5E9 !important;
  font-weight: 600;
}

/* ================================ */
/* ANIMATIONS                        */
/* ================================ */

/* Fade-in on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.25s; }
.stagger > *:nth-child(3) { animation-delay: 0.4s; }

/* ================================ */
/* IMAGE EFFECTS                     */
/* ================================ */

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s ease;
}
.img-zoom:hover img {
  transform: scale(1.04);
}

/* ================================ */
/* REVIEW CAROUSEL                   */
/* ================================ */

.review-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}
.review-track::-webkit-scrollbar {
  display: none;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(380px, 85vw);
}

/* Review stars */
.stars {
  color: #F59E0B;
  letter-spacing: 2px;
}

/* ================================ */
/* 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.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ================================ */
/* FORM STYLES                       */
/* ================================ */

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

/* ================================ */
/* UTILITY CLASSES                   */
/* ================================ */

.amenity-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F0F9FF;
  color: #0EA5E9;
  flex-shrink: 0;
}

.price-highlight {
  background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 100%);
  color: white;
}

.page-enter {
  animation: fadeInUp 0.4s ease;
}

/* ================================ */
/* WHATSAPP BUTTON                   */
/* ================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ================================ */
/* MOBILE RESPONSIVE                 */
/* ================================ */

/* Sticky mobile CTA bottom padding */
@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }
  .whatsapp-float {
    bottom: 84px;
  }
}

/* Safe area for notched devices */
.safe-area-bottom {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Reduce hero zoom on mobile for performance */
@media (max-width: 640px) {
  .hero-bg {
    animation-duration: 30s;
  }
  .wave-divider svg {
    height: 40px;
  }
}
