/* ==========================================================================
   Residencial Araní REAL ESTATE - Premium Stylesheet
   Theme: Gothic Romantic / Corpse Bride Seasonal Edition
   ========================================================================== */

/* Google Fonts are imported in index.html for high performance */

:root {
  --color-midnight: #101B30;
  --color-midnight-dark: #0B1322;
  --color-deep-blue: #203B60;
  --color-ethereal: #7FCBEE;
  --color-violet: #817198;
  --color-warm-white: #F8F7F4;
  --color-wine: #850F1A;
  --color-wine-hover: #9E1321;
  --color-pale-blue: #F4F7FB;
  --color-pale-blue-alt: #EDF3F8;
  --color-text-muted: #5C6A7D;
  --color-whatsapp: #25D366;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #0B1322;
}
::-webkit-scrollbar-thumb {
  background: #203B60;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7FCBEE;
}

/* Hero Background */
.hero-bg {
  background-image: 
    linear-gradient(180deg, rgba(16, 27, 48, 0.88) 0%, rgba(16, 27, 48, 0.72) 45%, rgba(16, 27, 48, 0.94) 100%), 
    url('https://lh3.googleusercontent.com/aida-public/AB6AXuBdtGMXwhhigyVvFwCx3SGd1F4PVgAbQf-kDbMFqE8pLEPfc6cZnMR1rYIOh5orAsSgw7J-8ZRqsrwn8OaONkhoQ3yjvP57DITIeufMTMXAlEog8ynER0BcHcwl9T9nCkFh6Viwvr5IwHse1gLvrc4xVNO-VUhO4Gm2Oeo3WwyN4O22jOty-Gi9eN6kDhWQOdGg7uiK8cFU0T2c9eYZDfT87XVZ9M8cepGHZEQsVC8HoYnHOiw432Lz');
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Scarcity Background */
.scarcity-bg {
  background-image: 
    linear-gradient(180deg, rgba(16, 27, 48, 0.92) 0%, rgba(16, 27, 48, 0.84) 60%, rgba(11, 19, 34, 0.96) 100%), 
    url('https://lh3.googleusercontent.com/aida-public/AB6AXuDHKGjpXAkmtLbHwfRhk9AFWLilWhq8fgiz8u3vI3c5r9BVSB-zIOhTiNLhyNjwecUSPlBt3GgTU_hmrff6sTeyWXhmavana_GEJ_Ga4_f_khp5ofKqJVhRgugUCvjgjc6J5mYJfOpcGY6leJsxduydh6_6G2thuRTtg0azIjWnnhTePVji_2SBZ5jTtf5nqMiWQy_NKWIXjmm5z_sCZETJ_cS6Z-EjgMo-DRXCMxN_gU29kXh1FiHD');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Diagonal Sold Out Badge */
.badge-diagonal {
  transform: rotate(-12deg);
}

/* Celestial Moon Glow Animation */
@keyframes moonPulse {
  0%, 100% {
    box-shadow: 0 0 25px 8px rgba(127, 203, 238, 0.4), 0 0 55px 18px rgba(127, 203, 238, 0.2);
    opacity: 0.92;
  }
  50% {
    box-shadow: 0 0 35px 14px rgba(127, 203, 238, 0.65), 0 0 75px 28px rgba(127, 203, 238, 0.35);
    opacity: 1;
  }
}

.moon-glow {
  animation: moonPulse 6s ease-in-out infinite;
}

/* Butterfly Flutter & Float Animations */
@keyframes butterflyFloat1 {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
  25% { transform: translateY(-14px) translateX(8px) rotate(6deg) scale(1.05); }
  50% { transform: translateY(-24px) translateX(-6px) rotate(-4deg) scale(0.98); }
  75% { transform: translateY(-10px) translateX(-12px) rotate(4deg) scale(1.03); }
  100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
}

@keyframes butterflyFloat2 {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  33% { transform: translateY(-18px) translateX(-10px) rotate(-8deg); }
  66% { transform: translateY(-8px) translateX(12px) rotate(5deg); }
  100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

@keyframes butterflyWing {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.42); }
}

.butterfly-anim-1 {
  animation: butterflyFloat1 7s ease-in-out infinite;
}

.butterfly-anim-2 {
  animation: butterflyFloat2 8.5s ease-in-out infinite;
}

.butterfly-wings {
  transform-origin: center;
  animation: butterflyWing 0.4s ease-in-out infinite;
}

/* Ethereal Glow */
.glow-ethereal {
  text-shadow: 0 0 16px rgba(127, 203, 238, 0.65), 0 0 32px rgba(127, 203, 238, 0.3);
}

.glow-box-ethereal {
  box-shadow: 0 0 20px rgba(127, 203, 238, 0.25);
}

/* Modal Animations & Styles */
.modal-backdrop {
  background-color: rgba(11, 19, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease-out;
}

.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop:not(.hidden) {
  opacity: 1;
}

.modal-backdrop.hidden .modal-content {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
}

.modal-backdrop:not(.hidden) .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Toast Notification */
#toastNotification {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #7FCBEE;
  outline-offset: 2px;
}

/* Card Hover Elevation */
.property-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(16, 27, 48, 0.1), 0 10px 10px -5px rgba(16, 27, 48, 0.04);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-bg {
    background-position: 65% center;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .moon-glow, 
  .butterfly-anim-1, 
  .butterfly-anim-2, 
  .butterfly-wings,
  .property-card {
    animation: none !important;
    transition: none !important;
  }
}
