/* 
  AS Enterprises - Real Estate Quantum Landing Page CSS Manifest
  Brand Palette:
  - Obsidian Black: #0F172A
  - Amber Gold: #D97706 (Accent)
  - Canvas White: #F8FAFC
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-obsidian: #0F172A;
  --color-obsidian-light: #1E293B;
  --color-gold: #D97706;
  --color-gold-hover: #B45309;
  --color-canvas: #F8FAFC;
  --color-slate-gray: #64748B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-canvas);
  color: var(--color-obsidian);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Custom Leaflet Map Dark Mode Filter */
.dark-leaflet-map .leaflet-tile-container {
  filter: invert(100%) hue-rotate(180deg) brightness(90%) contrast(90%);
}

.dark-leaflet-map {
  background-color: var(--color-obsidian) !important;
}

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

/* Floating WhatsApp Widget Pulsing */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-whatsapp 2s infinite;
}

/* CTA Glow Effects */
.btn-gold-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-gold-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-gold-glow:hover {
  transform: translateY(-2px);
}

.btn-gold-glow:hover::after {
  opacity: 1;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Property Grid Filter Transition */
.property-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card.hidden-card {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

/* Site Visit Modal Transitions */
.modal-overlay {
  transition: opacity 0.3s ease;
}

.modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active Property Category Tab Styles */
.tab-active {
  background-color: var(--color-gold);
  color: white;
}

.tab-inactive {
  background-color: white;
  color: var(--color-obsidian);
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.tab-inactive:hover {
  background-color: rgba(217, 119, 6, 0.05);
}

/* Premium Leaflet Map Styles */
.leaflet-container {
  background-color: var(--color-obsidian) !important;
  font-family: var(--font-body) !important;
}

/* Custom Popup Style */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  border-radius: 16px !important;
  padding: 4px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5) !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
}

.custom-leaflet-popup .leaflet-popup-close-button {
  color: #94a3b8 !important;
  font-size: 1.25rem !important;
  padding: 12px 12px 0 0 !important;
}

.custom-leaflet-popup .leaflet-popup-close-button:hover {
  color: var(--color-gold) !important;
  background: transparent !important;
}

/* Custom Premium Pin Marker Styling */
.custom-premium-marker {
  background: transparent !important;
  border: none !important;
}

.pulse-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  background-color: rgba(217, 119, 6, 0.25);
  border-radius: 50%;
  animation: marker-pulse 2s infinite;
  pointer-events: none;
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pin-card {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-gold), #b45309);
  border: 2px solid var(--color-obsidian);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-card:hover {
  transform: rotate(-45deg) scale(1.1);
  background: linear-gradient(135deg, #f59e0b, var(--color-gold));
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.6);
}

.pin-icon {
  transform: rotate(45deg);
  width: 18px;
  height: 18px;
  color: white;
}
