.map-finder-wrap, #formulario{
        border: none !important;
}

.map-filter-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mmd-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
}

.mmd-checkbox:checked {
  background: #00aaff;
  border-color: #00aaff;
}

.mmd-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mmd-select {
    flex: 1;
    min-width: 220px;
    padding: 6px 7px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s ease;
    appearance: none;
    cursor: pointer;
}

.mmd-select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
    outline: none;
}

.mmd-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

#mmd-map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 10px;
}

/*Popup del mapa, usando Leaflet*/

.leaflet-popup-content {
    max-width: 90% !important; 
    width: auto !important; 
    margin: 10px ! important;
}

.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
}

html .custom-tabs .tab-content{
    display:none !important;
    max-height:180px;
    overflow-y:auto;
    font-size: 10pt;
}

html .custom-tabs .tab-content.active{
    display:block;
}

html .custom-tabs .tab-content.active{
    display:block !important;
}

html .custom-tabs .tab-content::-webkit-scrollbar{
    width:6px;
}

/* Contenedor del menú: Fondo suave y bordes redondeados */
html .custom-tabs .tab-menu {
    display: flex;
    background: #f1f3f4;
    padding: 5px;
    margin: 5px; /* Margen para que no toque los bordes del popup */
    border-radius: 30px !important; /* Estilo píldora */
    gap: 4px;
}

/* Botón base: Minimalista */
html .custom-tabs .tab-menu .tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase; /* Da un aire más profesional */
    letter-spacing: 0.5px;
    color: #5f6368;
    border-radius: 25px; /* Redondeado individual */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
}

/* Hover: Un cambio de color suave */
html .custom-tabs .tab-menu .tab-btn:hover {
    color: #202124;
    background: rgba(255, 255, 255, 0.5);
}

/* Botón ACTIVO: Fondo blanco, sombra y color corporativo */
html .custom-tabs .tab-menu .tab-btn.active {
    color: #0078A8 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* Sombra elegante */
    transform: scale(1.02); /* Efecto de "resalte" */
}

/*Cambio de estilo */
html .custom-tabs .tab-content {
    padding: 0 20px 20px 20px !important;
    color: #3c4043;
}

/*Estilos para las tablas del listado de centros del buscador*/
#wp-plugin-table-root .wp-custom-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* Forza el scroll horizontal */
    display: block !important;
    margin: 20px 0 !important;
    border: 1px solid #e5e7eb !important;
}

#wp-plugin-table-root table.wp-custom-table {
    width: 100% !important;
    min-width: 800px !important; /* Obliga a la tabla a ser más ancha que el móvil para que haya scroll */
    border-collapse: collapse !important;
    table-layout: auto !important;
}

#wp-plugin-table-root table.wp-custom-table th, 
#wp-plugin-table-root table.wp-custom-table td {
    padding: 16px !important;
    white-space: nowrap !important; /* Evita que el texto se amontone verticalmente */
}
