/**
 * Estilos del frontend para Mapas Pro ByE
 * 
 * @package MapasProBye
 * @version 1.2.7
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */

:root {
  --mpb-primary-color: #4285f4;
  --mpb-secondary-color: #34a853;
  --mpb-error-color: #ea4335;
  --mpb-warning-color: #fbbc04;
  --mpb-border-color: #e0e0e0;
  --mpb-text-color: #333333;
  --mpb-bg-color: #ffffff;
  --mpb-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Estilos para inputs de moneda (ocultar flechas)
   ========================================================================== */

/* Ocultar flechas en inputs numéricos - Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Ocultar flechas en inputs numéricos - Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ==========================================================================
   Ocultar campo Localidad en página de publicar (ID 3963)
   ========================================================================== */

/* Ocultar el contenedor completo de localidad (row y field-wrap) */
body.page-id-3963 .jet-form-builder-row:has(#localidad) {
  display: none !important;
}

body.page-id-3963 .jet-form-builder__field-wrap:has(#localidad) {
  display: none !important;
}

/* Fallback para navegadores que no soportan :has() */
body.page-id-3963 #localidad {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ==========================================================================
   Estilos para la sección de filtros principales basada en Figma
   ========================================================================== */

/* Sección principal de filtros */
.main-filters-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.main-filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
    text-align: center;
}

.main-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #34495E;
    margin-bottom: 8px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #E0E6ED;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    color: #2C3E50;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3498DB;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-select:hover {
    border-color: #BDC3C7;
}

.filters-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.btn-search, .btn-clear {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-search {
    background: #3498DB;
    color: #ffffff;
}

.btn-search:hover {
    background: #2980B9;
    transform: translateY(-1px);
}

.btn-clear {
    background: #ffffff;
    color: #7F8C8D;
    border: 1px solid #E0E6ED;
}

.btn-clear:hover {
    background: #F8F9FA;
    color: #2C3E50;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .main-filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .main-filters-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .btn-search, .btn-clear {
        width: 100%;
    }
}

/* ==========================================================================
   Contenedor principal
   ========================================================================== */

.mapas-pro-bye-container {
  font-family: var(--mpb-font-family);
  color: var(--mpb-text-color);
  max-width: 100%;
  margin: 0 auto;
}

/* Layouts */
.mapas-pro-bye-container.layout-two-column {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--mpb-spacing);
  min-height: 600px;
}

.mapas-pro-bye-container.layout-stacked {
  display: flex;
  flex-direction: column;
  gap: var(--mpb-spacing);
}

.mapas-pro-bye-container.layout-tabs .mapas-pro-bye-main {
  position: relative;
}

/* ==========================================================================
   Filtros
   ========================================================================== */

.mapas-pro-bye-filters {
  background: var(--mpb-bg-color);
  border: 1px solid var(--mpb-border-color);
  border-radius: var(--mpb-radius);
  padding: var(--mpb-spacing);
  box-shadow: var(--mpb-shadow);
}

.mapas-pro-bye-filters h3 {
  margin: 0 0 var(--mpb-spacing) 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--mpb-text-color);
}

.mapas-pro-bye-filters-form .filter-group {
  margin-bottom: var(--mpb-spacing);
}

.mapas-pro-bye-filters-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--mpb-text-color);
}

.mapas-pro-bye-filters-form input,
.mapas-pro-bye-filters-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--mpb-border-color);
  border-radius: 4px;
  font-size: 14px;
  background: var(--mpb-bg-color);
  transition: border-color 0.2s ease;
}

.mapas-pro-bye-filters-form input:focus,
.mapas-pro-bye-filters-form select:focus {
  outline: none;
  border-color: var(--mpb-primary-color);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.mapas-pro-bye-location-input {
  position: relative;
}

/* Autocomplete dropdown */
.pac-container {
  font-family: var(--mpb-font-family) !important;
  border-radius: 4px !important;
  border: 1px solid var(--mpb-border-color) !important;
  box-shadow: var(--mpb-shadow) !important;
}

.pac-item {
  padding: 8px 12px !important;
  font-size: 14px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.pac-item:hover {
  background-color: #f5f5f5 !important;
}

.pac-item-selected {
  background-color: var(--mpb-primary-color) !important;
  color: white !important;
}

/* Botones de filtros */
.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: var(--mpb-spacing);
}

.mapas-pro-bye-filters .btn {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.mapas-pro-bye-filters .btn-primary {
  background-color: var(--mpb-primary-color);
  color: white;
}

.mapas-pro-bye-filters .btn-primary:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
}

.mapas-pro-bye-filters .btn-secondary {
  background-color: #f8f9fa;
  color: var(--mpb-text-color);
  border: 1px solid var(--mpb-border-color);
}

.mapas-pro-bye-filters .btn-secondary:hover {
  background-color: #e9ecef;
}

.mapas-pro-bye-filters .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Contenido principal
   ========================================================================== */

.mapas-pro-bye-main {
  display: flex;
  flex-direction: column;
  gap: var(--mpb-spacing);
}

/* Resultados */
.mapas-pro-bye-results {
  background: var(--mpb-bg-color);
  border: 1px solid var(--mpb-border-color);
  border-radius: var(--mpb-radius);
  overflow: hidden;
  box-shadow: var(--mpb-shadow);
}

.results-header {
  padding: var(--mpb-spacing);
  background: #f8f9fa;
  border-bottom: 1px solid var(--mpb-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.results-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.results-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Items de resultado */
.result-item {
  display: flex;
  padding: var(--mpb-spacing);
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.result-item:hover {
  background-color: #f8f9fa;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item.active {
  background-color: #e3f2fd;
  border-left: 3px solid var(--mpb-primary-color);
}

.result-image {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: var(--mpb-primary-color);
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
}

.result-price {
  font-weight: 700;
  color: var(--mpb-secondary-color);
  font-size: 16px;
  margin: 4px 0;
}

.result-details {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-details span {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ==========================================================================
   Mapa
   ========================================================================== */

.mapas-pro-bye-map-container {
  position: relative;
  background: var(--mpb-bg-color);
  border: 1px solid var(--mpb-border-color);
  border-radius: var(--mpb-radius);
  overflow: hidden;
  box-shadow: var(--mpb-shadow);
}

.mapas-pro-bye-map {
  width: 100%;
  min-height: 500px;
}

/* Controles del mapa */
.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  background: white;
  border: 1px solid var(--mpb-border-color);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  box-shadow: var(--mpb-shadow);
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

/* InfoWindow personalizado */
.custom-info-window {
  max-width: 250px;
  font-family: var(--mpb-font-family);
}

.info-window-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.info-window-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: var(--mpb-primary-color);
}

.info-window-price {
  font-weight: 700;
  color: var(--mpb-secondary-color);
  font-size: 16px;
  margin: 4px 0 8px 0;
}

.info-window-details {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.info-window-actions {
  display: flex;
  gap: 8px;
}

.info-window-btn {
  padding: 6px 12px;
  border: none !important;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background-color: #ffc300 !important;
  color: #000 !important;
}

.info-window-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.info-window-btn:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.info-window-btn-primary {
  background-color: var(--mpb-primary-color);
  color: white;
}

.info-window-btn-secondary {
  background-color: #f8f9fa;
  color: var(--mpb-text-color);
  border: 1px solid var(--mpb-border-color);
}

/* ==========================================================================
   Estados de carga y errores
   ========================================================================== */

.mapas-pro-bye-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-size: 14px;
  color: #666;
}

.mapas-pro-bye-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--mpb-primary-color);
  border-radius: 50%;
  animation: mpb-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes mpb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mapas-pro-bye-message {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 14px;
}

.mapas-pro-bye-message--error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.mapas-pro-bye-message--warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
}

.mapas-pro-bye-message--info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.mapas-pro-bye-message--success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .mapas-pro-bye-container.layout-two-column {
    grid-template-columns: 1fr 1.5fr;
  }
}

@media (max-width: 768px) {
  .mapas-pro-bye-container.layout-two-column {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .mapas-pro-bye-filters {
    order: 1;
  }
  
  .mapas-pro-bye-main {
    order: 2;
  }
  
  .results-list {
    max-height: 300px;
  }
  
  .mapas-pro-bye-map {
    min-height: 400px;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .filter-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --mpb-spacing: 12px;
  }
  
  .mapas-pro-bye-map {
    min-height: 300px;
  }
  
  .result-item {
    flex-direction: column;
    text-align: center;
  }
  
  .result-image {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .custom-info-window {
    max-width: 200px;
  }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.mpb-hidden {
  display: none !important;
}

.mpb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mpb-text-center {
  text-align: center;
}

.mpb-mt-0 { margin-top: 0; }
.mpb-mb-0 { margin-bottom: 0; }
.mpb-mt-1 { margin-top: calc(var(--mpb-spacing) * 0.5); }
.mpb-mb-1 { margin-bottom: calc(var(--mpb-spacing) * 0.5); }
.mpb-mt-2 { margin-top: var(--mpb-spacing); }
.mpb-mb-2 { margin-bottom: var(--mpb-spacing); }

/* ==========================================================================
   Dark mode support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --mpb-bg-color: #1a1a1a;
    --mpb-text-color: #e0e0e0;
    --mpb-border-color: #404040;
  }
  
  .mapas-pro-bye-filters,
  .mapas-pro-bye-results,
  .mapas-pro-bye-map-container {
    background: var(--mpb-bg-color);
    color: var(--mpb-text-color);
  }
  
  .results-header {
    background: #2a2a2a;
  }
  
  .result-item:hover {
    background-color: #2a2a2a;
  }
  
  .mapas-pro-bye-filters-form input,
  .mapas-pro-bye-filters-form select {
    background: #2a2a2a;
    color: var(--mpb-text-color);
    border-color: var(--mpb-border-color);
  }
}

/* ==========================================================================
   Estilos para Google Places Autocomplete Handler
   ========================================================================== */

/* Indicador de carga */
.mpb-loading {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: mpb-slide-down 0.3s ease;
}

.mpb-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid #90caf9;
  border-top: 2px solid #1976d2;
  border-radius: 50%;
  animation: mpb-spin 0.8s linear infinite;
}

/* Mensaje de éxito */
.mpb-success-message {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #e8f5e9;
  border: 1px solid #81c784;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: #2e7d32;
  z-index: 10;
  animation: mpb-slide-down 0.3s ease;
}

/* Mensaje de error */
.mpb-error-message {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: #c62828;
  z-index: 10;
  animation: mpb-slide-down 0.3s ease;
}

/* Campos deshabilitados */
.mpb-disabled {
  position: relative;
}

.mpb-disabled::after {
  content: '🔒';
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.mpb-disabled select {
  background-color: #f5f5f5 !important;
  cursor: not-allowed !important;
  color: #666 !important;
}

/* Enlace para editar ubicación */
.mpb-edit-location-link {
  display: block !important;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2767AA !important;
  text-decoration: none !important;
  background-color: #E6EFF6;
  border: 1px solid #2767AA;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  line-height: 1.5;
}

.mpb-edit-location-link:hover {
  background-color: #2767AA !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-color: #2767AA;
}

.mpb-edit-location-link:active {
  transform: scale(0.98);
}

.mpb-edit-location-link:focus {
  outline: 2px solid #2767AA;
  outline-offset: 2px;
}

/* Animaciones */
@keyframes mpb-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mpb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive para mensajes */
@media (max-width: 768px) {
  .mpb-loading,
  .mpb-success-message,
  .mpb-error-message {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .mpb-loading::before {
    width: 12px;
    height: 12px;
  }
}

/* ========================================
   MODAL DE FILTROS (DISEÑO FIGMA)
   ======================================== */

.filters-modal-content {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 0 32px 0 8px;
}

.filters-modal-overlay.show .filters-modal-content {
    transform: translateY(0);
}

/* Header del modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #061720;
}

.modal-icon {
    font-size: 24px;
}

.modal-close {
    background: #061720;
    border: none;
    border-radius: 14px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #333;
}

.modal-close span {
    color: white;
    font-size: 12px;
    line-height: 1;
}

/* Divisores */
.modal-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0 20px;
}

/* Cuerpo del modal */
.modal-body {
    padding: 20px 19px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Secciones de filtros */
.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 16px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #061720;
}

.section-content {
    padding-left: 0;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #061720;
    margin-bottom: 11px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    height: 45px;
    background: #f9f9f9;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    padding: 11px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #a7a7a7;
    appearance: none;
    cursor: pointer;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #2767aa;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a7a7a7;
    pointer-events: none;
    font-size: 14px;
}

/* Grupos de checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkbox-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border: 1px solid #363636;
    border-radius: 1px;
    appearance: none;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #2767aa;
    border-color: #2767aa;
}

.checkbox-item input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    line-height: 1;
}

.checkbox-item label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #061720;
    cursor: pointer;
    margin-bottom: 0;
}

/* Grupos de ranges/sliders */
.range-group {
    margin-bottom: 20px;
}

.range-group:last-child {
    margin-bottom: 0;
}

.range-header {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-bottom: 10px;
}

.range-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #3e3e3e;
    line-height: 22px;
}

.range-value {
    background: #3e3e3e;
    color: white;
    padding: 3px 16px;
    border-radius: 100px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.range-slider-container {
    position: relative;
    width: 100%;
}

.range-slider {
    width: 100%;
    height: 31px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-track {
    width: 100%;
    height: 16px;
    background: #e8def8;
    border-radius: 16px;
}

.range-slider::-webkit-slider-thumb {
    width: 4px;
    height: 44px;
    background: #1d1b20;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    opacity: 0.38;
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 16px;
    background: #e8def8;
    border-radius: 16px;
    border: none;
}

.range-slider::-moz-range-thumb {
    width: 4px;
    height: 44px;
    background: #1d1b20;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    opacity: 0.38;
}

.range-dots {
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.range-dots .dot {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    opacity: 0.66;
}

.range-dots .dot.active {
    background: #2767aa;
    opacity: 1;
}

/* Slider eléctrico (estilo diferente) */
.electric-range::-webkit-slider-track {
    background: #adc5df;
}

.electric-range::-webkit-slider-thumb {
    background: #a9a8aa;
    width: 2px;
    opacity: 1;
}

.electric-range::-moz-range-track {
    background: #adc5df;
}

.electric-range::-moz-range-thumb {
    background: #a9a8aa;
    width: 2px;
    opacity: 1;
}

/* ==========================================================================
   Spinner de carga para filtros en tiempo real
   ========================================================================== */

.filter-loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.filter-loading-spinner .spinner {
    font-size: 16px;
    color: #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-loading-spinner .spinner::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de filtros aplicados */
.main-filters-section select.filter-applied {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.filter-item.has-filter .filter-label {
    color: #0073aa;
    font-weight: 600;
}

/* Mensajes de resultados */
.search-results-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.search-results-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.search-results-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.search-results-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animación de carga en lista de propiedades */
.properties-list.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.properties-list:not(.loading) {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Estilos para lista de propiedades actualizada (diseño Figma)
   ========================================================================== */

.property-item {
    display: flex;
    width: 508px;
    height: 187px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Sección de imagen */
.property-image-section {
    width: 211px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 10px 11px;
    box-sizing: border-box;
}

.property-badges {
    display: flex;
    flex-direction: column;
    gap: 119px;
    width: 100px;
}

.badge-arriendo {
    background: #2767aa;
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-arriendo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: white;
    text-align: center;
    line-height: 1;
}

.badge-location {
    background: #ffc300;
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.location-icon {
    font-size: 12px;
}

.location-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 11px;
    color: #061720;
    text-align: center;
    line-height: 1;
}

/* Sección de información */
.property-info-section {
    width: 297px;
    height: 100%;
    background: white;
    padding: 20px 21px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.property-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #061720;
    margin: 0 0 30px 0;
    line-height: 1.2;
    width: 255px;
}

.property-details-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 206px;
}

.price-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 13px;
    color: #061720;
    line-height: 1;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #ffc300;
    line-height: 1;
}

.price-frequency {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 13px;
    color: #061720;
    line-height: 1;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

.area-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-icon {
    font-size: 16px;
    color: #666;
}

.property-area {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 13px;
    color: #061720;
    line-height: 1;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .property-item {
        width: 100%;
        max-width: 400px;
        height: auto;
        flex-direction: column;
    }
    
    .property-image-section {
        width: 100%;
        height: 150px;
    }
    
    .property-badges {
        gap: 10px;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .property-info-section {
        width: 100%;
        padding: 15px;
    }
    
    .property-title {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .price-section {
        width: 100%;
    }
}

.no-properties-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* ==========================================================================
   Estilos para efectos de hover entre propiedades y marcadores V2 - OPTIMIZADOS
   ========================================================================== */

/* Estados de hover para propiedades - Mejorados y unificados */
.property-item:hover,
.property-item.marker-hover,
.property-item.hover-active,
.property-item.marker-triggered-hover,
.property-item.property-hover-active,
.property-item.property-highlighted {
    box-shadow: 0 8px 16px rgba(39, 103, 170, 0.25) !important;
    transform: translateY(-6px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid #FFC300 !important;
    position: relative !important;
    z-index: 10 !important;
}

div[role="dialog"] .property-item {
  box-shadow: none !important;  
  outline: none !important;
}

div[role="dialog"] .property-item:hover {
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

div[role="dialog"] * {
  outline: none !important;
}

/* Efecto especial cuando es activado desde marcador */
.property-item.marker-triggered-hover {
    background: linear-gradient(145deg, #ffffff, #f8f9fb) !important;
    box-shadow: 0 12px 30px rgba(39, 103, 170, 0.25), 0 0 20px rgba(255, 195, 0, 0.2) !important;
}

/* Marcadores personalizados optimizados */
.custom-marker {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    transform-origin: center bottom !important;
    will-change: transform, z-index !important;
    pointer-events: auto !important;
    user-select: none !important;
}

.marker-pin {
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
}

.marker-pin svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: filter 0.3s ease !important;
}

.marker-price {
    background: #ffffff !important;
    color: #2767AA !important;
    padding: 3px 8px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border: 2px solid #2767AA !important;
    margin-top: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 60px !important;
    text-align: center !important;
}

/* Estados de hover para marcadores - Unificados */
.custom-marker:hover,
.custom-marker.hover-active,
.custom-marker.property-triggered-hover,
.custom-marker.marker-hover-active,
.custom-marker.marker-highlight {
    transform: scale(1.15) translateY(-8px) !important;
    z-index: 1000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-marker:hover .marker-price,
.custom-marker.hover-active .marker-price,
.custom-marker.property-triggered-hover .marker-price,
.custom-marker.marker-hover-active .marker-price,
.custom-marker.marker-highlight .marker-price {
    background: #FFC300 !important;
    color: #061720 !important;
    border-color: #FFC300 !important;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4) !important;
}

.custom-marker:hover .marker-pin svg,
.custom-marker.hover-active .marker-pin svg,
.custom-marker.property-triggered-hover .marker-pin svg,
.custom-marker.marker-hover-active .marker-pin svg,
.custom-marker.marker-highlight .marker-pin svg {
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 8px rgba(255, 195, 0, 0.3)) !important;
}

/* Animaciones mejoradas */
@keyframes markerBounce {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.05); }
    75% { transform: translateY(-6px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes markerBounceSmooth {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-8px); }
    100% { transform: scale(1.1) translateY(-6px); }
}

/* Aplicar animación cuando se requiera */
.marker-bounce-animation {
    animation: markerBounceSmooth 0.4s ease-out !important;
}

/* Estados debug para testing */
.debug-hover-property {
    outline: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.debug-hover-marker {
    outline: 2px solid blue !important;
    background: rgba(0, 0, 255, 0.1) !important;
}

/* Efectos de pulsación para debugging visual */
@keyframes debugPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.debug-pulse {
    animation: debugPulse 1s infinite !important;
}

/* Solucionar problemas de z-index en contenedores */
.properties-list {
    position: relative !important;
    z-index: 1 !important;
}

.mapas-pro-bye-map-container {
    position: relative !important;
    z-index: 2 !important;
}

/* Asegurar visibilidad en modo oscuro */
@media (prefers-color-scheme: dark) {
    .property-item.hover-active,
    .property-item.marker-triggered-hover {
        background: linear-gradient(145deg, #2a2a2a, #1a1a1a) !important;
        border-color: #FFC300 !important;
        color: #e0e0e0 !important;
    }
}

.custom-marker.marker-highlight .marker-price {
    background: #FFC300;
    color: #061720;
    border-color: #FFC300;
    box-shadow: 0 4px 12px rgba(255, 195, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Animaciones mejoradas */
@keyframes markerBounce {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.05); }
    75% { transform: translateY(-6px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes markerBounceSmooth {
    0% { 
        transform: translateY(0) scale(1); 
    }
    30% { 
        transform: translateY(-8px) scale(1.15);
    }
    60% { 
        transform: translateY(-3px) scale(1.1);
    }
    100% { 
        transform: translateY(-10px) scale(1.2);
    }
}

@keyframes propertyPulse {
    0% { 
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    50% { 
        background: linear-gradient(145deg, #ffffff, #f0f7ff);
        box-shadow: 0 8px 25px rgba(39, 103, 170, 0.2);
    }
    100% { 
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }
}

/* Efectos de transición suaves */
.property-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-item .property-title {
    transition: color 0.3s ease;
}

.property-item .property-price {
    transition: all 0.3s ease;
}


/* Optimizaciones para rendimiento */
.custom-marker,
.property-item {
    will-change: transform, box-shadow;
}

.custom-marker * {
    pointer-events: none;
}

.custom-marker {
    pointer-events: auto;
}

/* Animación para el marcador resaltado - MEJORADA */
@keyframes markerBounce {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.05); }
    75% { transform: translateY(-6px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

/* Estados adicionales para interacciones mejoradas */
.property-item.property-clicked {
    transform: scale(0.98);
    transition: transform 0.1s ease-out;
}

.property-item.marker-clicked {
    animation: markerClickPulse 0.6s ease-out;
}

@keyframes markerClickPulse {
    0% { 
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    30% { 
        background: linear-gradient(145deg, #e8f4fd, #ffffff);
        box-shadow: 0 8px 25px rgba(39, 103, 170, 0.25);
        transform: translateY(-2px);
    }
    100% { 
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
        transform: translateY(-4px);
    }
}

/* Responsive mejorado para efectos hover */
@media (max-width: 768px) {
    .property-item:hover,
    .property-item.marker-hover,
    .property-item.property-highlighted {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .custom-marker.marker-highlight {
        animation: markerBounceSmooth 0.3s ease-out;
    }
    
    @keyframes markerBounceSmooth {
        0% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-6px) scale(1.1); }
        100% { transform: translateY(-8px) scale(1.15); }
    }
}

/* Estados de carga mejorados */
.properties-list.loading .property-item {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(20%);
}

.properties-list:not(.loading) .property-item {
    opacity: 1;
    pointer-events: auto;
    filter: none;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .property-item,
    .custom-marker,
    .marker-pin,
    .marker-price {
        animation: none !important;
        transition: none !important;
    }
    
    .property-item:hover,
    .property-item.marker-hover,
    .property-item.property-highlighted {
        transform: none;
        box-shadow: 0 0 0 3px #2767AA;
    }
}

/* ==========================================================================
   ESTILOS PARA CLUSTERING DE MARCADORES
   ========================================================================== */

/* Cluster marcador principal */
.mapas-pro-bye-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: #2767AA !important;
    color: white !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    font-size: 14px !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 100 !important;
    user-select: none !important;
}

/* Estados de hover para clusters */
.mapas-pro-bye-cluster:hover {
    background: #FFC300 !important;
    color: #061720 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(255, 195, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
}

/* Variaciones por tamaño de cluster */
.mapas-pro-bye-cluster.cluster-small {
    width: 40px !important;
    height: 40px !important;
    font-size: 12px !important;
    border-width: 2px !important;
}

.mapas-pro-bye-cluster.cluster-medium {
    width: 50px !important;
    height: 50px !important;
    font-size: 14px !important;
    border-width: 3px !important;
}

.mapas-pro-bye-cluster.cluster-large {
    width: 60px !important;
    height: 60px !important;
    font-size: 16px !important;
    border-width: 4px !important;
    background: #1a4f7a !important;
}

.mapas-pro-bye-cluster.cluster-large:hover {
    background: #ffb000 !important;
    color: #061720 !important;
}

/* Animación para clusters */
@keyframes clusterPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(39, 103, 170, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Animación al hacer click en cluster */
.mapas-pro-bye-cluster.cluster-clicked {
    animation: clusterExpandClick 0.4s ease-out !important;
}

@keyframes clusterExpandClick {
    0% { 
        transform: scale(1);
        background: #2767AA;
    }
    25% { 
        transform: scale(1.2);
        background: #FFC300;
        color: #061720;
    }
    50% { 
        transform: scale(0.95);
        background: #2767AA;
        color: white;
    }
    100% { 
        transform: scale(1);
        background: #2767AA;
        color: white;
    }
}

/* Efectos de loading para clusters */
.mapas-pro-bye-cluster.loading {
    animation: clusterLoading 1.5s ease-in-out infinite !important;
}

@keyframes clusterLoading {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Clusters en modo debug */
.cluster-debug .mapas-pro-bye-cluster {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.8) !important;
}

.cluster-debug .mapas-pro-bye-cluster::after {
    content: 'DEBUG' !important;
    position: absolute !important;
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: red !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* Responsive para clusters */
@media (max-width: 768px) {
    .mapas-pro-bye-cluster {
        width: 45px !important;
        height: 45px !important;
        font-size: 13px !important;
        border-width: 2px !important;
    }
    
    .mapas-pro-bye-cluster.cluster-small {
        width: 35px !important;
        height: 35px !important;
        font-size: 11px !important;
    }
    
    .mapas-pro-bye-cluster.cluster-large {
        width: 55px !important;
        height: 55px !important;
        font-size: 15px !important;
        border-width: 3px !important;
    }
    
    .mapas-pro-bye-cluster:hover {
        transform: scale(1.05) !important;
    }
}

/* Accesibilidad para clusters */
@media (prefers-reduced-motion: reduce) {
    .mapas-pro-bye-cluster,
    .mapas-pro-bye-cluster:hover,
    .mapas-pro-bye-cluster.cluster-clicked {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .mapas-pro-bye-cluster:focus {
        outline: 3px solid #FFC300 !important;
        outline-offset: 2px !important;
    }
}

/* Estados de focus para accesibilidad */
.mapas-pro-bye-cluster:focus {
    outline: 2px solid #FFC300 !important;
    outline-offset: 2px !important;
}

/* Compatibilidad con modo oscuro */
@media (prefers-color-scheme: dark) {
    .mapas-pro-bye-cluster {
        border-color: #333 !important;
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1) !important;
    }
    
    .mapas-pro-bye-cluster:hover {
        box-shadow: 0 6px 15px rgba(255, 195, 0, 0.3), 0 2px 8px rgba(255, 255, 255, 0.1) !important;
    }
}

/* ==========================================================================
   CLUSTER HOVER EFFECTS - COMPATIBILIDAD CON SISTEMA BIDIRECCIONAL
   ========================================================================== */

/* Clusters resaltados por hover de propiedades */
.mapas-pro-bye-cluster.cluster-highlighted,
.mapas-pro-bye-cluster.marker-hover-triggered {
    background: #FFC300 !important;
    color: #061720 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 8px 20px rgba(255, 195, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
    border-color: #ffb000 !important;
    animation: clusterHighlightPulse 1.5s ease-in-out infinite !important;
}

/* Animación de pulsación para clusters resaltados */
@keyframes clusterHighlightPulse {
    0% { 
        box-shadow: 0 8px 20px rgba(255, 195, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 10px 25px rgba(255, 195, 0, 0.7), 0 6px 15px rgba(0, 0, 0, 0.4);
    }
    100% { 
        box-shadow: 0 8px 20px rgba(255, 195, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Estados especiales para debugging cluster hover */
.mapas-pro-bye-cluster[data-highlighted-property] {
    position: relative !important;
}

.mapas-pro-bye-cluster[data-highlighted-property]::after {
    content: "🎯" !important;
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    font-size: 12px !important;
    background: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Prevenir conflictos con otros estados */
.mapas-pro-bye-cluster.cluster-highlighted:hover {
    /* Mantener el estado resaltado incluso en hover */
    background: #FFC300 !important;
    color: #061720 !important;
    transform: scale(1.15) !important;
}

/* Responsive para efectos de cluster hover */
@media (max-width: 768px) {
    .mapas-pro-bye-cluster.cluster-highlighted,
    .mapas-pro-bye-cluster.marker-hover-triggered {
        transform: scale(1.1) !important;
        box-shadow: 0 6px 15px rgba(255, 195, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    @keyframes clusterHighlightPulse {
        0% { 
            box-shadow: 0 6px 15px rgba(255, 195, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
        }
        50% { 
            box-shadow: 0 8px 18px rgba(255, 195, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
        }
        100% { 
            box-shadow: 0 6px 15px rgba(255, 195, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
        }
    }
}

/* Accesibilidad para clusters resaltados */
@media (prefers-reduced-motion: reduce) {
    .mapas-pro-bye-cluster.cluster-highlighted,
    .mapas-pro-bye-cluster.marker-hover-triggered {
        animation: none !important;
        transform: none !important;
        border: 3px solid #FFC300 !important;
        box-shadow: 0 0 0 2px #061720 !important;
    }
}

button.clear-all-filters {
    border-radius: 5px !important;
    border: 1px solid #2767AA !important;
    background: #2767AA !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    font-family: 'Segoe UI' !important;
}


/* Estilo handlers */

.jet-range__slider .jet-range__slider__input {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: absolute;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent !important;
    z-index: 0 !important;
}
.jet-range__slider {
    position: relative;
    margin: 0 0 20px;
    border: 0;
    padding: 0;
}

.jet-range__slider__track__range {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(0, currentColor), color-stop(currentColor), color-stop(0, transparent)) no-repeat 0 100%/100% 100%;
    background: linear-gradient(90deg, transparent var(--low), currentColor 0, currentColor var(--high), transparent 0) no-repeat 0 100% / 100% 100%;
}

.jet-range__slider__input {
    height: 16px;
}
.jet-range__values {
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #061720;
    text-align: left;
}
.jet-filter-label {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #061720;
    margin: 10px 0px 10px 0px;
}

.jet-range__slider__track {
    height: 4px;
    background-color: #FFC300 !important;
}
.jet-range__slider__track {
    position: relative;
    color: #d0d0d0;
    height: 4px;
    background: #f9f9f9;
}
.jet-range__slider__track__range {
    color: #0066FF;
}

.jet-range__slider .jet-range__slider__input--min {
    z-index: 21;
}
.jet-range__slider .jet-range__slider__input--max {
    z-index: 20;
}
.jet-range__slider .jet-range__slider__input:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: none
}

.jet-range__slider .jet-range__slider__input::-webkit-slider-runnable-track {
    cursor: default;
    height: initial;
    width: initial;
    border-radius: initial;
    background: none;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    outline: 0
}

.jet-range__slider .jet-range__slider__input::-webkit-slider-thumb {
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    padding: 0;
    margin: 0;
    background-color: #858585;
    border-radius: 50%
}

.jet-range__slider .jet-range__slider__input::-webkit-slider-progress {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: none !important;
    -webkit-appearance: none !important;
    appearance: none !important
}

.jet-range__slider .jet-range__slider__input::-moz-focus-outer {
    border: 0
}

.jet-range__slider .jet-range__slider__input::-moz-range-track {
    cursor: default;
    height: initial;
    width: initial;
    border-radius: initial;
    background: none;
    border: none;
    box-shadow: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0
}

.jet-range__slider .jet-range__slider__input::-moz-range-progress {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: none !important;
    -moz-appearance: none !important;
    appearance: none !important
}

.jet-range__slider .jet-range__slider__input::-moz-range-thumb {
    cursor: pointer;
    pointer-events: auto;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    padding: 0;
    margin: 0;
    background-color: #858585;
    border-radius: 50%
}

.jet-range__slider .jet-range__slider__input::-ms-thumb {
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    padding: 0;
    margin: 0;
    background-color: #858585;
    border-radius: 50%
}

.jet-range__slider .jet-range__slider__input::-ms-fill-lower {
    background: none
}

.jet-range__slider .jet-range__slider__input::-ms-fill-upper {
    background: none
}

.jet-range__slider .jet-range__slider__input--min {
    z-index: 21
}

.jet-range__slider .jet-range__slider__input--min::-webkit-slider-thumb {
    background-position-x: left
}

.jet-range__slider .jet-range__slider__input--min::-moz-range-thumb {
    background-position-x: left
}

.jet-range__slider .jet-range__slider__input--min::-ms-thumb {
    background-position-x: left
}

.jet-range__slider .jet-range__slider__input--max {
    z-index: 20
}

.jet-range__slider .jet-range__slider__input--max::-webkit-slider-thumb {
    background-position-x: right
}

.jet-range__slider .jet-range__slider__input--max::-moz-range-thumb {
    background-position-x: right
}

.jet-range__slider .jet-range__slider__input--max::-ms-thumb {
    background-position-x: right
}

/* Map filters*/
    .mapas-pro-bye-header {
        display: flex;
        justify-content: space-between;
    }

    div.properties-list {
        scrollbar-color: #2767AA #ffffff;
    }

    /* Sección de filtros aplicados */
    .applied-filters-section {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
    }

    .applied-filters-container {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .applied-filters-label {
        font-size: 14px;
        font-weight: 600;
        color: #2767AA;
        white-space: nowrap;
    }

    .applied-filters-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        flex: 1;
    }

    .applied-filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #2767AA;
        color: white;
        padding: 4px 8px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
    }

    .applied-filter-tag .remove-filter  {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 16px;
    padding: 6px 8px;
    width: 22px;
    margin: 4px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 10px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

    .applied-filter-tag .remove-filter:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .clear-all-filters {
        background: #dc3545;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .clear-all-filters:hover {
        background: #c82333;
    }

    /* Header */


    .header-controls {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .btn-filters {
        border-radius: 5px;
        border: 1px solid #2767AA;
        background: #F9F9F9 !important;
        width: fit-content;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 24px;
    }

    .btn-map-view {
        border-radius: 5px !important;
        border: 1px solid #2767AA !important;
        background: #2767AA !important;
        color: #fff !important;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 24px;
    }

    .sort-dropdown select {
        background-color: #f9f9f9;
        border: 1px solid #c4c4c4;
        height: 46px;
        padding: 10px 16px;
        border-radius: 5px;
        font-size: 16px;
        color: #a7a7a7;
        width: 200px;
    }

    /* Filtros principales */
    .main-filters-section {
        width: 100% !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background-color: transparent !important;
    }

    .main-filters-section .filters-row {
        background-color: white;
        width: 100% !important;
        margin: 20px 0;
        padding: 24px !important;
        border-radius: 10px !important;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
    }

    .filters-row {
        display: flex;
        align-items: center;
        gap: 0;
        margin-bottom: 15px;
        justify-content: space-evenly;
    }

    .filter-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
        min-width: 160px;
    }

    .filter-icon {
        font-size: 20px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-label {
        color: #2767AA !important;
        font-family: 'Segoe UI', sans-serif !important;
        font-size: 18px !important;
        font-style: normal !important;
        font-weight: 700 !important;
        line-height: normal !important;
        margin: 0 !important;
    }

    .filter-header {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .filter-dropdown {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 210px;
    }

    .filter-dropdown select {
        background: transparent;
        border: none;
        font-size: 16px;
        color: #a7a7a7;
        outline: none;
        appearance: none;
        cursor: pointer;
        width: 100%;
    }

    .dropdown-arrow {
        color: #a7a7a7;
        font-size: 12px;
        pointer-events: none;
    }

    .filter-separator {
        width: 1px;
        height: 68px;
        background-color: #2767AA;
        flex-shrink: 0;
    }

    .all-filters-link {
        text-align: left;
        padding-left: 48px;
        padding-bottom: 24px !important;
    }

    .all-filters-link a {
        color: #368DFF;
        font-family: 'Segoe UI', sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: auto;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }

    /* Layout principal */

    .property-item * {
        font-family: 'Segoe UI';
    }

    .mapas-pro-bye-main-layout {
        display: flex;
        gap: 20px;
        padding: 0 60px;
        min-height: calc(100vh - 200px);
    }

    /* Columna de propiedades */
    .properties-column {
        flex: 0 0 508px;
        position: relative;
    }

    /* Lista de propiedades */
    .properties-list {
        max-height: 800px;
        overflow-y: auto;
        padding: 16px;
    }

    .property-card {
        display: flex;
        background: white;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .property-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .property-image {
        flex: 0 0 211px;
        height: 188px;
        background-size: cover;
        background-position: center;
        position: relative;
        border-radius: 10px 0 0 10px;
    }

    .property-badges {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .badge-type {
        background-color: #2767aa;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        font-weight: bold;
    }

    .badge-location {
        background-color: #ffc300;
        color: #061720;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 5px;
        position: absolute;
        bottom: 10px;
        left: 10px;
    }

    .property-details {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .property-title {
        font-size: 16px;
        font-weight: bold;
        color: #061720;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .property-price-section {
        margin-bottom: 15px;
    }

    .property-price-label {
        font-size: 13px;
        color: #061720;
        margin-bottom: 5px;
    }

    .property-price-info {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .property-price {
        font-size: 16px;
        font-weight: bold;
        color: #ffc300;
    }

    .property-period {
        font-size: 13px;
        color: #061720;
    }

    .property-area {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #061720;
    }

    /* Controles de scroll */
    .scroll-controls {
        position: absolute;
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .scroll-up,
    .scroll-down {
        background-color: #2767aa;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 12px;
    }

    .scroll-indicator {
        background-color: #2767aa;
        width: 8px;
        height: 350px;
        border-radius: 50px;
    }

    /* Columna del mapa */
    .map-column {
        flex: 1;
        position: relative;
    }

    .mapas-pro-bye-map {
        height: 800px;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        position: relative;
    }

    .map-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        background: #f5f5f5;
        color: #666;
    }

    /* Botón "Buscar en esta zona" */
    .search-in-area-container {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        pointer-events: none;
    }

    .btn-search-in-area {
        background: #2767aa;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        pointer-events: auto;
        white-space: nowrap;
    }

    .btn-search-in-area:hover {
        background: #1a4d7a;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .btn-search-in-area:active {
        transform: translateY(0);
    }

    .search-icon {
        font-size: 16px;
    }

    /* Modal de filtros - Diseño Figma */
    .filters-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
        z-index: 99999 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .filters-modal-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .filters-modal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 400px;
        height: 100vh;
        background: #ffffff;
        border-radius: 0 10px 10px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 42px 0 8px 16px;
        box-sizing: border-box;
    }

    .filters-modal-overlay.show .filters-modal-sidebar {
        transform: translateX(0);
    }

    .filters-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
        padding-right: 12px;
    }

    .filters-modal-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .filters-modal-title span {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 18px;
        color: #061720;
        line-height: normal;
    }

    .filters-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .filters-modal-close {
        background: #2767aa !important;
        border: none;
        width: 24px;
        height: 24px;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background-color 0.2s ease;
    }

    .filters-modal-close:hover {
        background: #1e5291;
    }

    .filters-modal-close svg {
        width: 12px;
        height: 12px;
        fill: white;
    }

    .filters-modal-divider {
        height: 1px;
        background: linear-gradient(90deg, #2767AA 0%, rgba(39, 103, 170, 0) 100%);
        margin: 0 -19px 20px -19px;
        width: calc(100% + 38px);
    }

    .filters-modal-content {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .filter-slider-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 350px;
    }

    .filter-slider-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 45px;
        flex-wrap: wrap;
    }

    .filters-modal-sidebar .filter-label {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 16px !important;
        line-height: 22px;
        color: #3e3e3e;
        flex-shrink: 0;
    }

    .filter-value-indicator {
        background: #3e3e3e;
        border-radius: 100px;
        padding: 12px 16px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
    }

    .filter-value-indicator {
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #ffffff;
        letter-spacing: 0.1px;
        text-align: center;
        white-space: nowrap;
    }

    .filter-slider-container {
        position: relative;
        width: 350px;
        height: 31px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .filter-range-slider {
        width: 100%;
        height: 16px;
        background: rgba(29, 27, 32, 0.12);
        border-radius: 16px;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        position: relative;
        cursor: pointer;
    }

    .filter-range-slider::-webkit-slider-track {
        height: 16px;
        border-radius: 16px;
        background: rgba(29, 27, 32, 0.12);
    }

    .filter-range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 4px;
        height: 44px;
        background: #1d1b20;
        border-radius: 2px;
        cursor: pointer;
        opacity: 0.38;
        position: relative;
        z-index: 2;
    }

    .filter-range-slider::-moz-range-track {
        height: 16px;
        border-radius: 16px;
        background: rgba(29, 27, 32, 0.12);
        border: none;
    }

    .filter-range-slider::-moz-range-thumb {
        width: 4px;
        height: 44px;
        background: #1d1b20;
        border-radius: 2px;
        cursor: pointer;
        opacity: 0.38;
        border: none;
    }

    /* Active track para sliders */
    .filter-range-slider {
        background: linear-gradient(to right, #2767aa 0%, #2767aa 60%, rgba(29, 27, 32, 0.12) 60%, rgba(29, 27, 32, 0.12) 100%);
    }

    /* Dots para sliders (diseño figma) */
    .filter-slider-container::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 4px;
        right: 4px;
        transform: translateY(-50%);
        height: 4px;
        background: repeating-linear-gradient(to right, rgb(29 27 32 / 0%) 0px, rgb(29 27 32 / 29%) 4px, transparent 4px, transparent 26px);
        pointer-events: none;
        z-index: 1;
    }

    .range-dots .dot.active {
        background: #2767aa;
    }

    /* Responsive */
    @media (max-width: 1400px) {
        .filters-row {
            gap: 0px;
        }

        .filter-item {
            min-width: 140px;
        }

        .filter-dropdown {
            width: 160px;
        }
    }

    @media (max-width: 1200px) {
        .mapas-pro-bye-main-layout {
            flex-direction: column;
        }

        .properties-column {
            flex: none;
            width: 100%;
        }

        .map-column {
            width: 100%;
        }

        .mapas-pro-bye-map {
            height: 500px;
        }

        .filters-row {
            flex-wrap: wrap;
            gap: 20px;
        }
    }

    @media (max-width: 768px) {
        .mapas-pro-bye-header {
            flex-direction: column;
            gap: 20px;
            margin: 20px;
            padding: 20px;
        }

        .header-controls {
            flex-direction: column;
            width: 100%;
            gap: 10px;
        }

        .mapas-pro-bye-main-layout {
            padding: 0 20px;
        }

        .main-filters-section {
            margin: 0 20px 20px 20px;
            padding: 20px;
        }

        .filters-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

    }

/* No UI Slider */
    .noUi-target {
        background: #FFC300 !important;
        border-radius: 10px !important;
        border: none!important;
        box-shadow: none!important;
        height: 4px !important;
        margin: 20px 0 25px 0 !important;
        position: relative!important;
    }

    .noUi-base,
    .noUi-connects {
        width: 100%!important;
        height: 100%!important;
        position: relative!important;
        z-index: 1!important;
    }

    .noUi-connects {
        overflow: hidden!important;
        z-index: 0!important;
        border-radius: 10px!important;
    }

    .noUi-connect,
    .noUi-origin {
        will-change: transform!important;
        position: absolute!important;
        z-index: 1!important;
        top: 0!important;
        right: 0!important;
        height: 100%!important;
        width: 100%!important;
    }

    .noUi-connect {
        background: #0085f2 !important;
        border-radius: 10px!important;
    }

    .noUi-origin {
        height: 10%!important;
    }

    .noUi-handle {
        box-sizing: border-box!important;
        position: absolute!important;
        background: #858585!important;
        border: none!important;
        border-radius: 50px!important;
        cursor: grab!important;
        height: 16px !important;
        width: 16px !important;
        top: -6px !important;
        right: -8px !important;
        z-index: 10!important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2)!important;
        transition: all 0.15s ease!important;
    }

    .noUi-handle:active {
        cursor: grabbing!important;
        transform: scale(1.2)!important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3)!important;
        z-index: 20!important;
    }

    .noUi-handle:hover {
        background: #5e5e5e!important;
        transform: scale(1.1)!important;
        z-index: 15!important;
    }

    .noUi-handle:focus {
        outline: none!important;
        background: #5e5e5e!important;
        box-shadow: 0 0 0 2px rgb(139 139 139 / 30%)!important;
    }

    /* Removemos los iconos del handle para diseño minimalista */
    .noUi-handle:before,
    .noUi-handle:after {
        display: none!important;
    }

    .noUi-state-tap .noUi-connect,
    .noUi-state-tap .noUi-origin {
        transition: transform 0.2s!important;
    }

    .noUi-state-drag * {
        cursor: inherit !important;
    }

    /* Ocultamos tooltips nativos para usar nuestro sistema personalizado */
    .noUi-tooltip {
        display: none!important;
    }

    /* Estilos específicos para el contexto de modal */
    .jet-filters-modal .noUi-target {
        margin: 20px 0 25px 0!important;
    }

    .jet-filters-modal .noUi-handle {
        z-index: 1000!important;
    }

    .jet-filters-modal .noUi-handle:active {
        z-index: 1010!important;
    }

    .jet-filters-modal .noUi-handle:hover {
        z-index: 1005!important;
    }

    /* Contenedor para el sistema de slider personalizado */
    .range-slider-container {
        margin: 20px 0!important;
        padding: 0!important;
    }

    /* Label superior */
    .range-slider-label {
        font-size: 14px!important;
        font-weight: 500!important;
        margin-bottom: 15px!important;
        color: #333!important;
        display: block!important;
        text-align: left!important;
    }

    /* Valores inferiores */
    .range-values-display {
        margin-top: 15px!important;
        font-size: 13px!important;
        color: #666!important;
        font-weight: 400!important;
        text-align: left!important;
        line-height: 1.2!important;
    }

    /* Contenedor del slider propiamente */
    .nouislider-wrapper {
        position: relative!important;
        padding: 0 8px!important;
    }

    /* Responsivo para móviles */
    @media (max-width: 768px) {
        .noUi-handle {
            width: 28px!important;
            height: 28px!important;
            right: -14px!important;
            top: -10px!important;
        }
        
        .noUi-tooltip {
            font-size: 11px!important;
            padding: 5px 7px!important;
        }
    }
.range-slider-label {
        font-family: "Montserrat", Sans-serif!important;
    font-size: 16px!important;
    font-weight: 700!important;
    color: var(--e-global-color-secondary)!important;
    margin: 10px 0px 10px 0px!important;
}
.noUi-pips-horizontal {
    display:none!important;
}
.range-values-display {
    font-family: "Montserrat", Sans-serif!important;
    font-size: 14px!important;
    font-weight: 600!important;
    color: var(--e-global-color-secondary)!important;
    text-align: left!important;
}
.select2-selection__choice__display {
    color: #000;
    font-size: 80%;
}
  /* NUEVO: Estilos para el modal de filtros secundarios */
    .mapas-pro-bye-filters-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mapas-pro-bye-filters-modal.show {
        opacity: 1;
    }

    .mapas-pro-bye-filters-modal .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .mapas-pro-bye-filters-modal .modal-content {
        position: relative;
        background: white;
        border-radius: 12px;
        max-width: 460px;
        width: 100%;
        max-height: 100vh;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .mapas-pro-bye-filters-modal.show .modal-content {
        transform: translateY(0);
    }

    .mapas-pro-bye-filters-modal .modal-header {
        padding: 20px 24px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mapas-pro-bye-filters-modal .modal-header h3 {
        margin: 0;
        color: #2767AA;
        font-size: 18px;
        font-weight: 600;
    }

    .mapas-pro-bye-filters-modal .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .mapas-pro-bye-filters-modal .modal-close:hover {
        background-color: #f0f0f0;
    }

    .mapas-pro-bye-filters-modal .modal-body {
        padding: 0 24px 24px;
        max-height: 100vh;
        height: 100vh;
        overflow-y: auto;
    }

    .mapas-pro-bye-filters-modal .modal-footer {
        padding: 20px 24px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }

    .mapas-pro-bye-filters-modal .btn-secondary,
    .mapas-pro-bye-filters-modal .btn-primary {
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mapas-pro-bye-filters-modal .btn-secondary {
        background-color: #f8f9fa;
        color: #666;
        border: 1px solid #ddd;
    }

    .mapas-pro-bye-filters-modal .btn-secondary:hover {
        background-color: #e9ecef;
    }

    .mapas-pro-bye-filters-modal .btn-primary {
        background-color: #2767AA;
        color: white;
    }

    .mapas-pro-bye-filters-modal .btn-primary:hover {
        background-color: #1e5a96;
    }


    .filters-modal-content .range-slider-container[style*="display: none"],
    .filters-modal-content .filter-group[style*="display: none"] {
        display: none !important;
    }

    .filters-modal-content .range-slider-label {
        font-weight: 600;
        color: #2767AA;
        margin-bottom: 12px;
        font-size: 15px;
    }

    /* Responsive para modal */
    @media (max-width: 768px) {
/* ==========================================================================
   Spinner de carga para Google Places
   ========================================================================== */

/* Contenedor del spinner */
.mpb-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--mpb-primary-color);
    margin-top: 12px;
    animation: mpb-fade-in 0.3s ease-in;
}

/* Spinner circular */
.mpb-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--mpb-primary-color);
    border-radius: 50%;
    animation: mpb-spin 0.8s linear infinite;
}

/* Texto del spinner */
.mpb-loading span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Overlay de carga sobre contenedor principal */
.mpb-section-is-loading {
    position: relative;
}

.mpb-section-is-loading > :not(.mpb-section-loading-overlay) {
    opacity: 0.45;
    transition: opacity 0.2s ease-in-out;
}

.mpb-section-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 30;
    border-radius: 8px;
}

.mpb-section-loading-overlay .mpb-spinner {
    width: 26px;
    height: 26px;
    border-width: 3px;
}

.mpb-section-loading-overlay span {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Animación de rotación */
@keyframes mpb-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de aparición */
@keyframes mpb-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner para campo de barrio específicamente */
.mpb-neighborhood-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.mpb-neighborhood-loading .mpb-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.mpb-neighborhood-loading span {
    font-size: 12px;
    color: #666;
}


/* ==========================================================================
   Enlaces de acción (Editar ubicación, Elegir barrio)
   ========================================================================== */

/* Enlace para editar ubicación */
.mpb-edit-location-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #2767AA;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mpb-edit-location-link:hover {
    background: #e9ecef;
    color: #1e5a96;
    border-color: #2767AA;
    text-decoration: none;
}

/* Enlace para elegir barrio */
.mpb-choose-neighborhood-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: white;
    color: #2767AA;
    border: 1px solid #2767AA;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mpb-choose-neighborhood-link:hover {
    background: #2767AA;
    color: white;
    text-decoration: none;
}


/* ==========================================================================
   Mapa estático de ubicación seleccionada
   ========================================================================== */

.mpb-location-map-container {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #2767AA;
    animation: mpb-fade-in 0.4s ease-in;
}

.mpb-location-map {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
}

.mpb-location-map-label {
    background: #2767AA;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpb-location-map-label::before {
    content: "📍";
    font-size: 16px;
}


/* ==========================================================================
   Resumen de búsquedas relacionadas
   ========================================================================== */

.mpb-search-summary {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border-left: 4px solid #2767AA;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(39, 103, 170, 0.1);
    animation: mpb-fade-in 0.4s ease-in;
}

.mpb-search-summary-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.mpb-search-summary-content {
    flex: 1;
    margin: 20px 0 !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #2767AA !important;
}

.mpb-search-summary-content strong {
    display: block;
    color: #1e5a96;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.mpb-search-summary-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mpb-search-summary-content ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.mpb-search-summary-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2767AA;
    font-weight: bold;
    font-size: 16px;
}


/* ==========================================================================
   Mensajes de estado (éxito, error)
   ========================================================================== */
        .mapas-pro-bye-filters-modal .modal-content {
            width: 95%;
            max-height: 90vh;
        }

        .mapas-pro-bye-filters-modal .modal-body {
            max-height: 60vh;
        }

        .mapas-pro-bye-filters-modal .modal-header,
        .mapas-pro-bye-filters-modal .modal-footer {
            padding: 16px 20px;
        }

        .mapas-pro-bye-filters-modal .modal-body {
            padding: 20px;
        }
}

/* Overlay de carga sobre contenedor principal */
.mpb-section-is-loading {
    position: relative;
}

.mpb-section-is-loading > :not(.mpb-section-loading-overlay) {
    opacity: 0.45;
    transition: opacity 0.2s ease-in-out;
}

.mpb-section-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 30;
    border-radius: 8px;
}

.mpb-section-loading-overlay .mpb-spinner {
    width: 26px;
    height: 26px;
    border-width: 3px;
}

.mpb-section-loading-overlay span {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Animación de rotación */
@keyframes mpb-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de aparición */
@keyframes mpb-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner para campo de barrio específicamente */
.mpb-neighborhood-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.mpb-neighborhood-loading .mpb-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.mpb-neighborhood-loading span {
    font-size: 12px;
    color: #666;
}

.mpb-search-summary-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.mpb-search-summary-content {
    flex: 1;
    margin: 20px 0 !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #2767AA !important;
}

.mpb-search-summary-content strong {
    display: block;
    color: #1e5a96;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.mpb-search-summary-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mpb-search-summary-content ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.mpb-search-summary-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2767AA;
    font-weight: bold;
    font-size: 16px;
}