@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --color-gold-50: #fbf7eb;
  --color-gold-100: #f5ebcd;
  --color-gold-200: #ecd79c;
  --color-gold-300: #dfbc61;
  --color-gold-400: #d4a337;
  --color-gold-500: #c58626;
  --color-gold-600: #aa681c;
  --color-gold-700: #85491a;
  --color-gold-800: #6d3a1b;
  --color-gold-900: #5c301a;
  
  --color-gold-primary: #c5a059;
  --color-gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  
  --color-anthracite-950: #0d0d0d;
  --color-anthracite-900: #121212;
  --color-anthracite-800: #1a1a1a;
  --color-anthracite-700: #262626;
  --color-anthracite-600: #333333;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fcfbf7;
  color: #1a1a1a;
  scroll-behavior: smooth;
}

/* Luxury Fonts */
.font-serif-luxury {
  font-family: 'Playfair Display', serif;
}

.font-sans-luxury {
  font-family: 'Montserrat', sans-serif;
}

/* Glassmorphism */
.glass-header {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Gold details and buttons */
.text-gold {
  color: var(--color-gold-primary);
}

.bg-gold {
  background-color: var(--color-gold-primary);
}

.bg-gold-gradient {
  background: var(--color-gold-gradient);
}

.border-gold {
  border-color: var(--color-gold-primary);
}

.border-gold-light {
  border-color: rgba(212, 175, 55, 0.3);
}

/* Card hover animation */
.villa-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, border-color;
  text-decoration: none !important;
}

.villa-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(197, 160, 89, 0.18);
  border-color: rgba(197, 160, 89, 0.4);
}

.villa-card-dark {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, border-color;
  border: 1px solid rgba(212, 175, 55, 0.05);
}

.villa-card-dark:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(197, 160, 89, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.villa-card-image-wrap {
  overflow: hidden;
}

.villa-card-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.villa-card:hover .villa-card-image,
.villa-card-dark:hover .villa-card-image {
  transform: scale(1.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aa7c11;
}

/* Text glow */
.text-glow {
  text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.gold-glow-hover {
  transition: all 0.3s ease;
}

.gold-glow-hover:hover {
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Loader Styles */
.custom-loader {
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top: 3px solid var(--color-gold-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Premium Gallery & Upload Previews */
.gallery-thumbnail-wrap {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumbnail-wrap:hover {
  transform: translateY(-2px);
}
#imagePreviewContainer img {
  transition: transform 0.3s ease;
}
#imagePreviewContainer div:hover img {
  transform: scale(1.05);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease;
}

.toast-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* WhatsApp Solar Wave Effect */
.whatsapp-btn-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

.whatsapp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background-color: #25D366;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.whatsapp-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  background-color: rgba(37, 211, 102, 0.35);
  z-index: -1;
  pointer-events: none;
}

.whatsapp-wave-1 {
  animation: solarWave 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-wave-2 {
  animation: solarWave 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.whatsapp-wave-3 {
  animation: solarWave 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1) 1.4s;
}

@keyframes solarWave {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
