/* Estilos Personalizados - Imobiliária Omega (Preto e Dourado) */

/* Fontes de Alto Padrão e Luxo */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Tenor+Sans&display=swap');

:root {
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #997A15;
  --gold-gradient: linear-gradient(135deg, #DFBA73 0%, #F5E2B3 50%, #B88628 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F5E2B3 0%, #DFBA73 50%, #C59B4E 100%);
  --bg-dark: #0A0A0B;
  --bg-card: #121215;
  --bg-card-hover: #18181E;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #F3F4F6;
  overflow-x: hidden;
}

/* Famílias Tipográficas Sofisticadas */
.font-luxury {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-brand {
  font-family: 'Tenor Sans', 'Montserrat', sans-serif;
}

.font-serif-luxury {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Gradientes e Textos Dourados */
.text-gold-gradient {
  background: linear-gradient(135deg, #F3E5AB 0%, #DFBA73 35%, #C59B4E 75%, #B88628 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-subtle {
  color: #DFBA73;
}

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

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

.border-gold-glow {
  border-color: rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
}

.border-gold-glow:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Efeito Glassmorphism Escuro */
.glass-panel {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-nav {
  background: rgba(10, 10, 11, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Animações e Transições Suaves */
.property-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.5);
}

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

.property-card:hover .property-image {
  transform: scale(1.06);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-pulse {
  animation: pulse-gold 2.5s infinite;
}

@keyframes pulse-gold {
  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);
  }
}

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

::-webkit-scrollbar-track {
  background: #0A0A0B;
}

::-webkit-scrollbar-thumb {
  background: #2D2614;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

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

/* Linha Divisória Dourada */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.6) 50%, transparent 100%);
}

/* Modal Overlay Animation */
/* Utilitários para Experiência Mobile Fluida */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Área Segura para iPhones / Smartphones modernos */
.pb-safe {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Suporte a toque suave */
@media (max-width: 768px) {
  html {
    -webkit-tap-highlight-color: transparent;
  }
  
  .glass-panel {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* -------------------------------------------------------------
   MAPA INTERATIVO LEAFLET - TEMA ESCURO DE LUXO
   ------------------------------------------------------------- */
#propertiesMap {
  background: #0A0A0B;
}

/* Marcador Dourado Estilizado com o Símbolo Ômega */
.omega-pin-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.omega-marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  animation: marker-pulse-anim 2s infinite ease-out;
  pointer-events: none;
}

@keyframes marker-pulse-anim {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.omega-marker-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #F3E5AB 0%, #DFBA73 45%, #B88628 100%);
  position: absolute;
  transform: rotate(-45deg);
  left: 5px;
  top: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 16px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border: 2px solid #0A0A0B;
}

.omega-marker-pin:hover {
  transform: rotate(-45deg) scale(1.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9), 0 0 24px rgba(212, 175, 55, 0.8);
}

.omega-marker-icon {
  transform: rotate(45deg);
  color: #0A0A0B;
  font-weight: 800;
  font-size: 15px;
  font-family: 'Tenor Sans', 'Montserrat', sans-serif;
  line-height: 1;
}

/* Customização dos Popups do Leaflet */
.leaflet-popup-content-wrapper {
  background: #121215 !important;
  color: #F3F4F6 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.12) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  min-width: 250px;
  max-width: 280px;
}

.leaflet-popup-tip {
  background: #121215 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #DFBA73 !important;
  padding: 4px !important;
  font-size: 16px !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(10, 10, 11, 0.8) !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  z-index: 100 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #0A0A0B !important;
  background: #DFBA73 !important;
}

/* Controles de Zoom do Leaflet Customizados */
.leaflet-bar {
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.leaflet-bar a {
  background-color: rgba(18, 18, 22, 0.95) !important;
  color: #DFBA73 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
  transition: all 0.2s ease !important;
}

.leaflet-bar a:hover {
  background-color: #B88628 !important;
  color: #0A0A0B !important;
}

/* Marcadores Personalizados do Painel Administrativo */
.custom-admin-pin {
  background: transparent !important;
  border: none !important;
}

.custom-admin-pin > div {
  transition: transform 0.2s ease-in-out;
}

.custom-admin-pin:hover > div {
  transform: rotate(-45deg) scale(1.18) !important;
}

/* ============================================================ */
/* INTRODUÇÃO CINEMATOGRÁFICA PREMIUM (3 SEGUNDOS)              */
/* ============================================================ */
#introSplash {
  background: #000000;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), filter 0.75s ease-out;
}

.intro-content {
  animation: introFadeInScale 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* Shimmer / reflexo de luz dourada que varre a logo */
.intro-logo-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.intro-logo-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 235, 175, 0) 30%,
    rgba(255, 235, 175, 0.5) 50%,
    rgba(212, 175, 55, 0.25) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: introShimmerSweep 1.8s ease-in-out 0.6s infinite;
  pointer-events: none;
}

@keyframes introShimmerSweep {
  0% {
    left: -120%;
  }
  100% {
    left: 200%;
  }
}

/* Barra de progresso dourada de 2.6 segundos */
.intro-progress-bar {
  width: 0%;
  animation: introProgress 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

@keyframes introProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 65%;
  }
  100% {
    width: 100%;
  }
}

/* Efeito de saída cinematográfico suave */
.intro-exit {
  opacity: 0 !important;
  transform: scale(1.08) !important;
  filter: blur(10px) !important;
  pointer-events: none !important;
}

