/*
 * JV PROPERTIES - LUXURY CUSTOM STYLESHEET
 * 
 * Provides style tokens, custom cursor layout, glassmorphic panel formulas,
 * print stylesheets, animations, and library overrides.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --gold-primary: #D4AF37;
  --gold-dark: #AA7C11;
  --gold-light: #F3E5AB;
  --gold-glow: rgba(212, 175, 55, 0.2);
  --obsidian: #0D0D0D;
  --obsidian-light: #1A1A1A;
  --obsidian-card: #151515;
  --cream: #FDFBF7;
  --cream-dark: #F5EFEB;
  --text-muted: #A3A3A3;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Base resets */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--obsidian);
  color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}



/* Glassmorphism Formulas */
.glass-panel {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-luxury {
  background: rgba(21, 21, 21, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(214, 175, 55, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Luxury Interactive Buttons */
.gold-btn {
  position: relative;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  color: var(--obsidian);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: 1px solid transparent;
}

.gold-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.gold-btn:hover::before {
  left: 100%;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  border-color: var(--gold-light);
}

.gold-btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.gold-btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--cream);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Custom Luxury Cards */
.luxury-card {
  background: var(--obsidian-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}
.luxury-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.05);
  transform: translateY(-5px);
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #161616 25%, #2c2c2c 50%, #161616 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
}
@keyframes loading-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Luxury Form Inputs */
.luxury-input {
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  transition: var(--transition-smooth);
}
.luxury-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  outline: none;
}
.luxury-input option {
  background-color: var(--obsidian-light);
  color: var(--cream);
}

/* Swiper Overrides */
.swiper-button-next, .swiper-button-prev {
  color: var(--gold-primary) !important;
}
.swiper-pagination-bullet-active {
  background: var(--gold-primary) !important;
}

/* Flatpickr Luxury Dark Theme Overrides */
.flatpickr-calendar {
  background: var(--obsidian-light) !important;
  border: 1px solid rgba(214, 175, 55, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
  color: var(--cream) !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
  background: var(--gold-primary) !important;
  border-color: var(--gold-primary) !important;
  color: var(--obsidian) !important;
}
.flatpickr-day {
  color: var(--cream) !important;
}
.flatpickr-day:hover {
  background: rgba(214, 175, 55, 0.2) !important;
}
.flatpickr-months .flatpickr-month, .flatpickr-weekday {
  color: var(--gold-primary) !important;
  fill: var(--gold-primary) !important;
}

/* Animated Counters */
.counter-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Preloader styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--obsidian);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Custom Gold Glow effect */
.gold-glow {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.box-gold-glow {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: 100%;
}
.toast-card {
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Wishlist Animations */
.heart-active {
  color: #EF4444 !important;
  fill: #EF4444 !important;
  transform: scale(1.1);
}

/* PRINT STYLESHEET */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  header, footer, .gold-btn, .gold-btn-outline, #schedule-visit-sidebar, .no-print, #emi-calculator-controls, #floating-whatsapp, #scroll-to-top {
    display: none !important;
  }
  .glass-panel, .glass-panel-luxury, .luxury-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: black !important;
  }
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  .print-page-break {
    page-break-before: always;
  }
}
