/* ====================================================================
   MAPA INTERACTIVO - ESTILOS
   Migración 1:1 de app/templates_legacy/property/includes_mapa/estilos_mapa.html
   ==================================================================== */

/* Filtros ocultos por defecto */
.filtros-ocultos-default {
  display: none !important;
}

/* ====================================================================
   DROPDOWN MULTI-SELECT DE TIPOS DE PROPIEDAD
   ==================================================================== */
.property-type-multiselect {
  position: relative;
  z-index: 99999 !important;
}

.property-type-multiselect .dropdown-menu {
  z-index: 999999 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.property-type-multiselect .dropdown-menu.show {
  display: block !important;
  z-index: 999999 !important;
}

.filtros-card,
.filtros-card .card-body,
.filtros-row,
#filtroTipoPropiedadContainer {
  overflow: visible !important;
  position: relative;
}

/* ====================================================================
   HEADER DINÁMICO
   ==================================================================== */
.dynamic-header-title {
  font-size: 1.2rem;
  color: var(--tema-texto-claro) !important;
}

.dynamic-property-icon {
  color: var(--tema-texto-claro) !important;
}

/* Utilidad heredada del monolito para texto gobernado por tema */
.texto-primario {
  color: var(--tema-texto-primario, #2c3e50) !important;
}

/* ====================================================================
   TARJETA DE FILTROS
   ==================================================================== */
.filtros-card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  background-color: var(--tema-fondo-tarjeta);
}

.filtro-label {
  color: var(--tema-primario) !important;
}

.filtro-label i {
  color: var(--tema-primario) !important;
}

.location-label {
  color: var(--tema-primario) !important;
}

.location-label i {
  color: var(--tema-primario) !important;
}

.filtro-select {
  border-radius: 8px;
  border: 2px solid var(--tema-borde-color);
  background-color: var(--tema-fondo-tarjeta);
  color: var(--tema-primario) !important;
}

.filtro-select:focus {
  border-color: var(--tema-primario);
  box-shadow: 0 0 0 0.25rem var(--tema-fondo-activo);
}

/* ====================================================================
   INPUT DE PRECIO
   ==================================================================== */
.filtro-input {
  border-radius: 8px;
  border: 2px solid var(--tema-borde-color);
  background-color: var(--tema-fondo-tarjeta);
  color: var(--tema-primario) !important;
  font-weight: 500;
  font-size: 14px;
}

.filtro-input:focus {
  border-color: var(--tema-primario);
  box-shadow: 0 0 0 0.25rem var(--tema-fondo-activo);
}

.filtro-input::placeholder {
  color: var(--tema-texto-silenciado, #adb5bd);
  font-weight: 400;
}

/* ====================================================================
   BOTÓN SELECTOR DE MONEDA
   ==================================================================== */
.currency-filter-btn {
  border-radius: 8px;
  border: 2px solid var(--tema-borde-color);
  background-color: var(--tema-fondo-tarjeta);
  color: var(--tema-primario) !important;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  height: 38px;
}

.currency-filter-btn:hover {
  border-color: var(--tema-primario);
  background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.05);
  color: var(--tema-primario) !important;
}

.currency-filter-btn:focus {
  border-color: var(--tema-primario);
  box-shadow: 0 0 0 0.25rem var(--tema-fondo-activo);
  color: var(--tema-primario) !important;
}

.currency-filter-btn .currency-symbol-compact {
  font-size: 1rem;
  min-width: 20px;
  margin-right: 4px;
}

.currency-filter-btn .currency-code-compact {
  font-size: 0.8rem;
  padding: 2px 6px;
  min-width: 40px;
}

/* ====================================================================
   BOTÓN CERRAR FILTROS (X)
   ==================================================================== */
.btn-cerrar-filtros-all {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--tema-texto-silenciado, #6c757d);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
}

.btn-cerrar-filtros-all:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--tema-texto-primario, #333);
}

/* ====================================================================
   BOTÓN LIMPIAR FILTROS
   ==================================================================== */
.btn-limpiar-filtros {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 1.2rem;
  background: var(--tema-texto-silenciado, #6c757d);
  color: white;
  border: 1px solid var(--tema-texto-silenciado, #5a6268);
  border-radius: 20px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-limpiar-filtros:hover {
  background: var(--tema-texto-secundario, #545b62);
  color: white;
  border-color: var(--tema-texto-secundario, #4e555b);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-limpiar-filtros:active {
  transform: scale(0.97);
}

.btn-limpiar-filtros i {
  color: white !important;
}

/* ====================================================================
   TOGGLE MAPA / SATÉLITE
   ==================================================================== */
.mapbox-style-control {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  background: var(--tema-fondo-tarjeta, white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mapbox-style-control .style-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: var(--tema-fondo-tarjeta, white);
  color: var(--tema-texto-primario, #333);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mapbox-style-control .style-btn:hover {
  background: var(--tema-fondo-hover, #f0f0f0);
}

.mapbox-style-control .style-btn.active {
  background: var(--tema-primario, #1e90ff);
  color: white;
}

.mapbox-style-control .style-btn:first-child {
  border-right: 1px solid var(--tema-borde-color, #e0e0e0);
}

@media (max-width: 576px) {
  .mapbox-style-control .style-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }
  .mapbox-style-control .style-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ====================================================================
   HEADER PREMIUM
   ==================================================================== */
.premium-header {
  background: var(--tema-gradiente-primario, linear-gradient(135deg, #1e90ff, #4169e1)) !important;
  border-radius: 12px !important;
  color: white !important;
  box-shadow: var(--tema-sombra-media, 0 4px 15px rgba(var(--tema-primario-rgb, 30, 144, 255), 0.3)) !important;
}

/* ====================================================================
   HEADER MAPA MÓVIL (estilo navbar)
   ==================================================================== */
.mapa-header-mobile {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.mapa-toggle-row {
  display: flex;
  width: 100%;
}

.mapa-toggle-row .mapa-toggle-btn {
  flex: 1;
  border-radius: 0;
  min-width: auto;
  padding: 0.5rem 0.5rem 0.4rem;
}

.mapa-toggle-row .mapa-toggle-btn.active::after {
  bottom: 0;
}

@media (min-width: 768px) {
  .mapa-header-mobile {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem !important;
  }
  .mapa-header-mobile > div:first-child {
    flex: 1;
    padding: 0 !important;
  }
  .mapa-toggle-row {
    width: auto;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
  }
  .mapa-toggle-row .mapa-toggle-btn {
    min-width: 100px;
    padding: 0.6rem 1.5rem 0.5rem;
  }
}

/* ====================================================================
   BOTONES TOGGLE DE MODO (Comprar / Alquilar / Hospedaje)
   ==================================================================== */
.mapa-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  position: relative;
}

.mapa-toggle-btn i {
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.mapa-toggle-label {
  font-size: 0.7rem;
  margin-top: 3px;
  font-weight: 600;
  opacity: 0.8;
}

.mapa-toggle-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.mapa-toggle-btn.active i {
  transform: scale(1.15);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.mapa-toggle-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.mapa-toggle-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.mapa-toggle-btn:active {
  transform: scale(0.95);
}

@media (max-width: 576px) {
  .mapa-toggle-btn {
    padding: 0.5rem 1rem 0.4rem;
    min-width: 80px;
  }

  .mapa-toggle-btn i {
    font-size: 1.1rem;
  }

  .mapa-toggle-label {
    font-size: 0.65rem;
  }
}

/* Blindaje de color para labels del header (evita colisiones de CSS global) */
.mapa-header-mobile .mapa-toggle-btn,
.mapa-header-mobile .mapa-toggle-btn i,
.mapa-header-mobile .mapa-toggle-btn .label-desktop,
.mapa-header-mobile .mapa-toggle-btn .label-mobile {
  color: rgba(255, 255, 255, 0.85) !important;
}

.mapa-header-mobile .mapa-toggle-btn.active,
.mapa-header-mobile .mapa-toggle-btn.active i,
.mapa-header-mobile .mapa-toggle-btn.active .label-desktop,
.mapa-header-mobile .mapa-toggle-btn.active .label-mobile {
  color: #ffffff !important;
}

/* Las etiquetas dentro de filtros deben heredar el color de tema, no negro por defecto */
.filtro-label,
.filtro-label i,
.filtro-label span,
.location-label,
.location-label i,
.location-label span,
.texto-primario,
.texto-primario i,
.texto-primario span {
  color: var(--tema-primario, #1e90ff) !important;
}

/* ====================================================================
   CONTENEDOR Y MAPA
   ==================================================================== */
.mapa-container-mobile {
  margin-top: 1.5rem;
}

.map-container-card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: margin-top 0.3s ease;
}

.property-map {
  height: 82vh;
  min-height: 550px;
  width: 100%;
  border-radius: 8px;
}

/* ====================================================================
   PANEL DE CARACTERÍSTICAS (chips expandibles)
   ==================================================================== */
.features-panel-card {
  border-radius: 8px;
  border: 2px solid var(--tema-borde-color, #e3f2fd);
  box-shadow: 0 4px 12px rgba(var(--tema-primario-rgb, 30, 144, 255), 0.1);
}

.features-chips-container {
  gap: 8px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1.5px solid var(--tema-borde-color, #cde);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--tema-fondo-tarjeta, white);
  color: var(--tema-texto-primario, #333);
  transition: all 0.15s ease;
  user-select: none;
}

.feature-chip input[type="checkbox"] {
  display: none;
}

.feature-chip:hover {
  border-color: var(--tema-primario, #1e90ff);
  background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.06);
}

.feature-chip.selected,
.feature-chip:has(input:checked) {
  border-color: var(--tema-primario, #1e90ff);
  background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.12);
  color: var(--tema-primario, #1e90ff);
}

.chip-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.features-count-badge {
  display: none;
}

.features-count-badge.visible {
  display: inline-flex;
}

.features-expandable-panel {
  width: 100%;
}

.features-select-btn {
  border-radius: 8px;
  border: 2px solid var(--tema-borde-color, #e3f2fd);
  background: var(--tema-fondo-tarjeta, white);
  color: var(--tema-primario, #1e90ff) !important;
  position: relative;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.features-select-btn:hover,
.features-select-btn:focus,
.features-select-btn:active {
  background: var(--tema-fondo-hover, #f0f8ff);
  border-color: var(--tema-primario, #1e90ff);
  color: var(--tema-primario, #1e90ff) !important;
  box-shadow: none;
}

.features-select-btn .label-desktop,
.features-select-btn .label-mobile {
  color: var(--tema-primario, #1e90ff) !important;
}

/* ====================================================================
   BOTÓN "MÁS FILTROS"
   ==================================================================== */
.btn-mas-filtros {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tema-primario, #1e90ff);
  background: transparent;
  border: 1.5px solid var(--tema-borde-color, #cde);
  border-radius: 20px;
  padding: 5px 16px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-mas-filtros:hover {
  background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.06);
  border-color: var(--tema-primario, #1e90ff);
}

/* ====================================================================
   ESTADÍSTICAS DEL MAPA
   ==================================================================== */
.mapa-stats-panel {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0;
}

.mapa-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--tema-texto-secundario, #666);
}

.mapa-stat-item strong {
  color: var(--tema-primario, #1e90ff);
  font-size: 1rem;
}

.stat-card {
  border-radius: 7px;
  border: none;
  box-shadow: 0 1px 4px rgba(var(--tema-primario-rgb, 30, 144, 255), 0.1);
  background: var(--tema-fondo-tarjeta, linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%));
  border-left: 3px solid var(--tema-primario, #1e90ff);
}

.stat-number {
  color: var(--tema-primario, #1e90ff) !important;
  font-size: 1.1rem;
}

.stat-label {
  color: var(--tema-texto-primario, #2c3e50);
  font-weight: 500;
  font-size: 0.85rem;
}

.stat-mobile {
  display: none;
}

.stat-desktop {
  display: inline;
}

.stat-icon {
  color: var(--tema-primario, #1e90ff);
}

/* ====================================================================
   FOOTER SPACER
   ==================================================================== */
.footer-spacer {
  height: 0px;
}

/* ====================================================================
   LABEL DESKTOP / MOBILE
   ==================================================================== */
.label-mobile {
  display: none;
}

.label-desktop {
  display: inline;
}

@media (min-width: 576px) {
  .label-mobile {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .mapa-container-mobile {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: hidden;
  }

  .mapa-container-mobile .premium-header.mapa-header-mobile {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 12px;
  }

  .mapa-container-mobile .filtros-card,
  .mapa-container-mobile .map-container-card,
  .mapa-container-mobile .property-map {
    border-radius: 0 !important;
  }

  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }

  .filtro-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.2rem !important;
  }

  .filtros-card {
    margin-bottom: 0.5rem !important;
  }

  .filtros-card .card-body {
    padding: 0.5rem !important;
  }

  .filtros-card .filtros-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  .filtros-card .filtros-row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .filtros-card .form-select {
    font-size: 0.8rem !important;
    padding: 0.35rem 2rem 0.35rem 0.5rem !important;
    height: auto !important;
  }

  .filtros-card .filtro-input,
  .filtros-card .form-control {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.5rem !important;
    height: auto !important;
  }

  .filtros-card .currency-filter-btn {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.4rem !important;
    height: auto !important;
  }

  .btn-mas-filtros {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem;
    margin-top: 0.4rem;
    background: var(--tema-fondo-hover, #e3f2fd);
    border: 1px dashed var(--tema-primario, #1e90ff);
    border-radius: 6px;
  }

  .stat-mobile {
    display: inline;
  }

  .stat-desktop {
    display: none;
  }

  .stat-card {
    min-height: auto;
  }

  .stat-card .card-body {
    padding: 0.4rem !important;
  }

  .stat-number {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }
}

/* ====================================================================
   TEMA NOCTURNO - OVERRIDES ESPECÍFICOS
   ==================================================================== */
[data-tema="nocturno"] .filtros-card {
  background-color: var(--tema-fondo-tarjeta, #161b22) !important;
  border: 1px solid var(--tema-borde-color, rgba(79, 195, 247, 0.2)) !important;
}

[data-tema="nocturno"] .filtro-select,
[data-tema="nocturno"] .filtro-input,
[data-tema="nocturno"] .currency-filter-btn {
  background-color: var(--tema-fondo-input, #21262d) !important;
  border-color: var(--tema-borde-color, rgba(79, 195, 247, 0.25)) !important;
  color: var(--tema-texto-primario, #e6edf3) !important;
}

[data-tema="nocturno"] .filtro-select option {
  background-color: #21262d;
  color: #e6edf3;
}

[data-tema="nocturno"] .feature-chip {
  background: var(--tema-fondo-tarjeta, #161b22) !important;
  border-color: var(--tema-borde-color, rgba(79, 195, 247, 0.25)) !important;
  color: var(--tema-texto-primario, #e6edf3) !important;
}

[data-tema="nocturno"] .feature-chip.selected {
  background: var(--tema-fondo-activo, rgba(79, 195, 247, 0.15)) !important;
  border-color: var(--tema-primario, #4fc3f7) !important;
  color: var(--tema-primario, #4fc3f7) !important;
}

[data-tema="nocturno"] .features-panel-card,
[data-tema="nocturno"] .map-container-card {
  background: var(--tema-fondo-tarjeta, #161b22) !important;
  border-color: var(--tema-borde-color, rgba(79, 195, 247, 0.2)) !important;
}

[data-tema="nocturno"] .mapbox-style-control {
  background: var(--tema-fondo-tarjeta, #161b22) !important;
  border: 1px solid var(--tema-borde-color, rgba(79, 195, 247, 0.2)) !important;
}

[data-tema="nocturno"] .mapbox-style-control .style-btn {
  background: var(--tema-fondo-tarjeta, #161b22) !important;
  color: var(--tema-texto-primario, #e6edf3) !important;
}

[data-tema="nocturno"] .mapbox-style-control .style-btn:hover {
  background: var(--tema-fondo-hover, rgba(79, 195, 247, 0.1)) !important;
}

[data-tema="nocturno"] .mapbox-style-control .style-btn.active {
  background: var(--tema-primario, #4fc3f7) !important;
  color: #0d1117 !important;
}

/* ====================================================================
   TEMA NATURAL - OVERRIDES ESPECÍFICOS
   ==================================================================== */
[data-tema="natural"] .filtros-card {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
}

[data-tema="natural"] .filtro-select,
[data-tema="natural"] .filtro-input,
[data-tema="natural"] .currency-filter-btn {
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

[data-tema="natural"] .filtro-select option {
  background-color: #1a1a1a;
  color: #ffffff;
}

[data-tema="natural"] .filtro-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-tema="natural"] .feature-chip {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

[data-tema="natural"] .feature-chip.selected {
  background: rgba(76, 175, 80, 0.25) !important;
  border-color: #4CAF50 !important;
  color: #ffffff !important;
}

[data-tema="natural"] .features-panel-card,
[data-tema="natural"] .map-container-card {
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
}

[data-tema="natural"] .mapbox-style-control {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
}

[data-tema="natural"] .mapbox-style-control .style-btn {
  background: transparent !important;
  color: #ffffff !important;
}

[data-tema="natural"] .mapbox-style-control .style-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-tema="natural"] .mapbox-style-control .style-btn.active {
  background: var(--tema-primario, #4CAF50) !important;
  color: white !important;
}

[data-tema="natural"] .btn-mas-filtros {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

[data-tema="natural"] .btn-mas-filtros:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-tema="natural"] .mapa-stat-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-tema="natural"] .mapa-stat-item strong,
[data-tema="natural"] .stat-icon {
  color: #ffffff !important;
}

/* Estadísticas inferiores (cards): asegurar herencia correcta por tema */
[data-tema="natural"] .stat-number {
  color: #ffffff !important;
}

[data-tema="natural"] .stat-label,
[data-tema="natural"] .stat-desktop,
[data-tema="natural"] .stat-mobile {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ====================================================================
   TEMA FUTURISTA - OVERRIDES ESPECÍFICOS
   ==================================================================== */
[data-tema="futurista"] .filtros-card {
  background: rgba(5, 15, 30, 0.85) !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.1) !important;
}

[data-tema="futurista"] .filtro-select,
[data-tema="futurista"] .filtro-input,
[data-tema="futurista"] .currency-filter-btn {
  background: rgba(5, 15, 30, 0.9) !important;
  border-color: rgba(0, 247, 255, 0.35) !important;
  color: #00f7ff !important;
}

[data-tema="futurista"] .filtro-select option {
  background-color: #0a0a0a;
  color: #00f7ff;
}

[data-tema="futurista"] .filtro-input::placeholder {
  color: rgba(0, 247, 255, 0.4) !important;
}

[data-tema="futurista"] .filtro-label,
[data-tema="futurista"] .location-label {
  color: #00f7ff !important;
  text-shadow: 0 0 6px rgba(0, 247, 255, 0.3) !important;
}

[data-tema="futurista"] .feature-chip {
  background: rgba(5, 15, 30, 0.8) !important;
  border-color: rgba(0, 247, 255, 0.3) !important;
  color: rgba(0, 247, 255, 0.8) !important;
}

[data-tema="futurista"] .feature-chip:hover {
  border-color: rgba(0, 247, 255, 0.6) !important;
  background: rgba(0, 247, 255, 0.08) !important;
}

[data-tema="futurista"] .feature-chip.selected {
  background: rgba(0, 247, 255, 0.12) !important;
  border-color: #00f7ff !important;
  color: #00f7ff !important;
  box-shadow: 0 0 8px rgba(0, 247, 255, 0.3) !important;
}

[data-tema="futurista"] .features-panel-card {
  background: rgba(5, 15, 30, 0.85) !important;
  border-color: rgba(0, 247, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.1) !important;
}

[data-tema="futurista"] .map-container-card,
[data-tema="futurista"] .property-map {
  background: #0a0a0a !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.15) !important;
}

[data-tema="futurista"] .mapbox-style-control {
  background: rgba(5, 15, 30, 0.9) !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.15) !important;
}

[data-tema="futurista"] .mapbox-style-control .style-btn {
  background: transparent !important;
  color: #00f7ff !important;
}

[data-tema="futurista"] .mapbox-style-control .style-btn:hover {
  background: rgba(0, 247, 255, 0.1) !important;
}

[data-tema="futurista"] .mapbox-style-control .style-btn.active {
  background: rgba(0, 247, 255, 0.2) !important;
  color: #00f7ff !important;
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.3) !important;
}

[data-tema="futurista"] .mapa-toggle-btn {
  background: rgba(0, 247, 255, 0.08) !important;
  color: rgba(0, 247, 255, 0.7) !important;
}

[data-tema="futurista"] .mapa-toggle-btn.active {
  background: rgba(0, 247, 255, 0.18) !important;
  color: #00f7ff !important;
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.3) !important;
}

[data-tema="futurista"] .mapa-toggle-btn.active::after {
  background: #00f7ff !important;
  box-shadow: 0 0 6px rgba(0, 247, 255, 0.6) !important;
}

[data-tema="futurista"] .mapa-toggle-btn:hover:not(.active) {
  background: rgba(0, 247, 255, 0.12) !important;
  color: #00f7ff !important;
}

[data-tema="futurista"] .btn-mas-filtros {
  border-color: rgba(0, 247, 255, 0.35) !important;
  color: #00f7ff !important;
}

[data-tema="futurista"] .btn-mas-filtros:hover {
  background: rgba(0, 247, 255, 0.08) !important;
  border-color: rgba(0, 247, 255, 0.6) !important;
  box-shadow: 0 0 8px rgba(0, 247, 255, 0.2) !important;
}

[data-tema="futurista"] .btn-limpiar-filtros {
  background: transparent !important;
  border-color: rgba(0, 247, 255, 0.3) !important;
  color: rgba(0, 247, 255, 0.7) !important;
}

[data-tema="futurista"] .btn-limpiar-filtros:hover {
  background: rgba(0, 247, 255, 0.08) !important;
  color: #00f7ff !important;
}

[data-tema="futurista"] .btn-limpiar-filtros i {
  color: rgba(0, 247, 255, 0.7) !important;
}

[data-tema="futurista"] .mapa-stat-item {
  color: rgba(0, 247, 255, 0.7) !important;
}

[data-tema="futurista"] .mapa-stat-item strong,
[data-tema="futurista"] .stat-icon {
  color: #00f7ff !important;
  text-shadow: 0 0 6px rgba(0, 247, 255, 0.4) !important;
}

[data-tema="futurista"] .premium-header {
  background: rgba(5, 15, 30, 0.9) !important;
  border: 1px solid rgba(0, 247, 255, 0.4) !important;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.2) !important;
}

/* ====================================================================
   TEMA NATURAL - LABELS FILTROS (fondo oscuro → texto claro)
   ==================================================================== */
[data-tema="natural"] .filtro-label,
[data-tema="natural"] .filtro-label i,
[data-tema="natural"] .location-label,
[data-tema="natural"] .location-label i {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none !important;
}

[data-tema="natural"] .btn-limpiar-filtros {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

[data-tema="natural"] .btn-limpiar-filtros:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

[data-tema="natural"] .btn-limpiar-filtros i {
  color: #ffffff !important;
}

[data-tema="natural"] .mapa-header-mobile .mapa-toggle-btn,
[data-tema="natural"] .mapa-header-mobile .mapa-toggle-btn i,
[data-tema="natural"] .mapa-header-mobile .mapa-toggle-btn .label-desktop,
[data-tema="natural"] .mapa-header-mobile .mapa-toggle-btn .label-mobile,
[data-tema="natural"] .filtro-label,
[data-tema="natural"] .filtro-label i,
[data-tema="natural"] .filtro-label span,
[data-tema="natural"] .location-label,
[data-tema="natural"] .location-label i,
[data-tema="natural"] .location-label span,
[data-tema="natural"] .texto-primario,
[data-tema="natural"] .texto-primario i,
[data-tema="natural"] .texto-primario span {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ====================================================================
   TEMA NOCTURNO - LABELS FILTROS
   ==================================================================== */
[data-tema="nocturno"] .filtro-label,
[data-tema="nocturno"] .filtro-label i,
[data-tema="nocturno"] .location-label,
[data-tema="nocturno"] .location-label i {
  color: var(--tema-primario, #4fc3f7) !important;
}

[data-tema="nocturno"] .btn-mas-filtros {
  border-color: rgba(79, 195, 247, 0.3) !important;
  color: var(--tema-primario, #4fc3f7) !important;
}

[data-tema="nocturno"] .btn-limpiar-filtros {
  background: rgba(79, 195, 247, 0.12) !important;
  border-color: rgba(79, 195, 247, 0.3) !important;
  color: rgba(79, 195, 247, 0.9) !important;
}

[data-tema="nocturno"] .btn-limpiar-filtros i {
  color: rgba(79, 195, 247, 0.9) !important;
}

[data-tema="nocturno"] .mapa-header-mobile .mapa-toggle-btn,
[data-tema="nocturno"] .mapa-header-mobile .mapa-toggle-btn i,
[data-tema="nocturno"] .mapa-header-mobile .mapa-toggle-btn .label-desktop,
[data-tema="nocturno"] .mapa-header-mobile .mapa-toggle-btn .label-mobile,
[data-tema="nocturno"] .filtro-label,
[data-tema="nocturno"] .filtro-label i,
[data-tema="nocturno"] .filtro-label span,
[data-tema="nocturno"] .location-label,
[data-tema="nocturno"] .location-label i,
[data-tema="nocturno"] .location-label span,
[data-tema="nocturno"] .texto-primario,
[data-tema="nocturno"] .texto-primario i,
[data-tema="nocturno"] .texto-primario span {
  color: var(--tema-primario, #4fc3f7) !important;
}

[data-tema="default"] .mapa-header-mobile .mapa-toggle-btn,
[data-tema="default"] .mapa-header-mobile .mapa-toggle-btn i,
[data-tema="default"] .mapa-header-mobile .mapa-toggle-btn .label-desktop,
[data-tema="default"] .mapa-header-mobile .mapa-toggle-btn .label-mobile {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ====================================================================
   HEADER PREMIUM - DYNAMIC TITLE/ICON USANDO VARIABLES DE TEMA
   ==================================================================== */
.dynamic-header-title,
.dynamic-property-icon {
  color: var(--tema-texto-claro, #ffffff) !important;
}

/* En tema futurista el header premium tiene fondo oscuro → texto cyan */
[data-tema="futurista"] .dynamic-header-title,
[data-tema="futurista"] .dynamic-property-icon {
  color: #00f7ff !important;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.4) !important;
}

[data-tema="futurista"] .mapa-header-mobile .mapa-toggle-btn,
[data-tema="futurista"] .mapa-header-mobile .mapa-toggle-btn i,
[data-tema="futurista"] .mapa-header-mobile .mapa-toggle-btn .label-desktop,
[data-tema="futurista"] .mapa-header-mobile .mapa-toggle-btn .label-mobile,
[data-tema="futurista"] .filtro-label,
[data-tema="futurista"] .filtro-label i,
[data-tema="futurista"] .filtro-label span,
[data-tema="futurista"] .location-label,
[data-tema="futurista"] .location-label i,
[data-tema="futurista"] .location-label span,
[data-tema="futurista"] .texto-primario,
[data-tema="futurista"] .texto-primario i,
[data-tema="futurista"] .texto-primario span {
  color: #00f7ff !important;
  text-shadow: 0 0 6px rgba(0, 247, 255, 0.35) !important;
}

