/* Dropdown "Propiedades" en navbar desktop (FALL Consulting).
   Se abre en hover/focus. Mobile: no aplica (los menus mobile ya listan
   Propiedades y MLS como entradas separadas). */

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-caret {
  width: 10px;
  height: 6px;
  transition: transform 0.22s ease;
  opacity: 0.75;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* El menu desplegable. pointer-events + visibility para que no tape clicks cuando esta cerrado. */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  background: #0A0A0A;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.3);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10000;
}

/* Puente invisible: evita que el dropdown se cierre al mover el cursor
   del toggle al menu. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px);
}

.nav-dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 11px 14px !important;
  color: rgba(248, 247, 244, 0.82) !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(201, 168, 76, 0.1) !important;
  color: #C9A84C !important;
}

/* Pequeno triangulo arriba del menu (detalle visual sutil). */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #0A0A0A;
  border-top: 1px solid rgba(201, 168, 76, 0.28);
  border-left: 1px solid rgba(201, 168, 76, 0.28);
}

@media (max-width: 920px) {
  /* En mobile no usamos el dropdown; el menu mobile ya muestra
     Propiedades y MLS como entradas separadas. Ocultamos el
     dropdown para que no quede residuo si aparece fuera del nav. */
  .nav-dropdown-menu { display: none; }
  .nav-dropdown-caret { display: none; }
}
