/**
 * Animation Styles
 * All keyframe animations and animation utilities
 */

 /* ===========================
   Text Animations
   =========================== */

@keyframes fadeInFromBottom {
  from {
    transform: translateY(30%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ===========================
   Scroll-Triggered Animations
   =========================== */

/* Base state - hidden, ready to animate */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Animated state - visible */
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variations */
.scroll-reveal--delay-1 { transition-delay: 0.1s; }
.scroll-reveal--delay-2 { transition-delay: 0.2s; }
.scroll-reveal--delay-3 { transition-delay: 0.3s; }
.scroll-reveal--delay-4 { transition-delay: 0.4s; }
.scroll-reveal--delay-5 { transition-delay: 0.5s; }
.scroll-reveal--delay-6 { transition-delay: 0.6s; }

/* Speed variations */
.scroll-reveal--fast { transition-duration: 0.4s; }
.scroll-reveal--slow { transition-duration: 1.2s; }

/* Direction variations */
.scroll-reveal--from-left {
  transform: translateX(-60px);
}
.scroll-reveal--from-left.is-visible {
  transform: translateX(0);
}

.scroll-reveal--from-right {
  transform: translateX(60px);
}
.scroll-reveal--from-right.is-visible {
  transform: translateX(0);
}

.scroll-reveal--fade-only {
  transform: none;
}

/* Scale/expand from left (for borders, lines, dividers) */
.scroll-reveal--scale-left {
  transform: scaleX(0);
  transform-origin: left center;
}
.scroll-reveal--scale-left.is-visible {
  transform: scaleX(1);
}

/* Scale/expand from center */
.scroll-reveal--scale-center {
  transform: scaleX(0);
  transform-origin: center center;
}
.scroll-reveal--scale-center.is-visible {
  transform: scaleX(1);
}


/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   Slide Animations
   =========================== */

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

img {
  transition: transform 0.6s ease-in; /* smooth both in and out */
  
}

img:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-out; /* smooth both in and out */
}
@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ===========================
   Fade Animations
   =========================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Scale Animations
   =========================== */

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scaleOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* ===========================
   Property Popup Shell
   =========================== */

.property-popup-shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  background: var(--color-bg-page, #fff);
  overflow-y: auto;
}

.property-popup-shell.active {
  display: block;
}

.property-popup-shell__content {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  
  .property-popup-content {
    /* width: 100vw;
    max-width: 100vw;
    padding: 0 20px; */
  }
  .property-popup-shell {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  .property-popup-shell__content {
    width: 100vw;
    max-width: 100vw;
  }
}

.property-popup-shell__loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-page, #fff);
  z-index: 10;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-text-dark, #000);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.property-popup-shell__loaded-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-top: 2rem;
  opacity: 0;
  background: var(--color-bg-page, #fff);
}

.metric-animate {
  animation: scaleIn 0.4s ease-out forwards;
}

.metric-animate {
  animation: fadeInFromBottom 0.4s ease-out forwards;
}

.metric-animate {
  animation: scaleIn 0.4s ease-out forwards;
}

