/* ==========================================================================
   SUN BROKERS AGENCY — LUXURY REAL ESTATE STYLESHEET
   Optimized for Shared Hosting | Tailored with UI-UX Pro Max Principles
   ========================================================================== */

:root {
  --color-sun-gold: #E5A93C;
  --color-warm-amber: #F59E0B;
  --color-gold-light: #FEF3C7;
  --color-gold-dark: #B45309;
  
  --color-midnight-navy: #0B192C;
  --color-royal-blue: #1E3E62;
  --color-slate-navy: #1E293B;
  --color-muted-slate: #64748B;
  
  --color-pure-white: #FFFFFF;
  --color-pearl-cream: #F8FAFC;
  --color-light-gray: #F1F5F9;
  --color-border: #E2E8F0;
  --color-dark-charcoal: #0F172A;
  
  --color-emerald: #10B981;
  --color-whatsapp: #25D366;
  
  --shadow-subtle: 0 4px 20px -2px rgba(11, 25, 44, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(11, 25, 44, 0.08);
  --shadow-hover: 0 20px 40px -8px rgba(11, 25, 44, 0.16);
  --shadow-gold: 0 10px 25px -3px rgba(229, 169, 60, 0.35);
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-slate-navy);
  background-color: var(--color-pure-white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sun-gold);
}

/* Selection */
::selection {
  background-color: var(--color-gold-light);
  color: var(--color-midnight-navy);
}

/* Glassmorphism & Navbar effects */
.glass-header {
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark-card {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 169, 60, 0.2);
}

/* Hero Section Overlay */
.hero-gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 25, 44, 0.75) 0%,
    rgba(11, 25, 44, 0.60) 50%,
    rgba(11, 25, 44, 0.95) 100%
  );
}

/* Gold Gradient Accents */
.text-gradient-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #F59E0B 50%, #FDE68A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #D97706 100%);
}

.bg-gradient-gold:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
}

.border-gradient-gold {
  border-image: linear-gradient(135deg, #E5A93C, #F59E0B) 1;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(229, 169, 60, 0.45);
}

.btn-outline-gold {
  border: 1.5px solid var(--color-sun-gold);
  color: var(--color-sun-gold);
  background: transparent;
  transition: var(--transition-smooth);
}
.btn-outline-gold:hover {
  background: var(--color-sun-gold);
  color: var(--color-midnight-navy);
  transform: translateY(-2px);
}

/* Interactive Card Hovers */
.property-card {
  transition: var(--transition-smooth);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.property-card:hover .property-img {
  transform: scale(1.06);
}

.property-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Neighborhood Cards */
.neighborhood-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: var(--transition-smooth);
}
.neighborhood-card:hover {
  transform: translateY(-5px);
}
.neighborhood-card .overlay {
  background: linear-gradient(to top, rgba(11, 25, 44, 0.92) 0%, rgba(11, 25, 44, 0.35) 60%, rgba(11, 25, 44, 0.05) 100%);
  transition: var(--transition-smooth);
}
.neighborhood-card:hover .overlay {
  background: linear-gradient(to top, rgba(11, 25, 44, 0.96) 0%, rgba(11, 25, 44, 0.45) 60%, rgba(11, 25, 44, 0.15) 100%);
}
.neighborhood-card:hover img {
  transform: scale(1.08);
}

/* Floating WhatsApp Pulse */
.whatsapp-pulse {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  animation: pulse-glow 2.5s infinite;
}
.whatsapp-pulse:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Pulse badge */
.status-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Star rating golden shine */
.star-gold {
  color: #F59E0B;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-sun-gold);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.2);
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(11, 25, 44, 0.8);
  backdrop-filter: blur(8px);
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .whatsapp-pulse span {
    display: none;
  }
  .whatsapp-pulse {
    padding: 14px;
    border-radius: 50%;
  }
}
