
:root {
    /* NUEVA PALETA CELESTE UNIFICADA */
    --dbm-primary: #00BFFF;       /* Deep Sky Blue */
    --dbm-secondary: #1E90FF;     /* Dodger Blue */
    --dbm-accent: #0073aa;        /* Wordpress Blue (para textos) */
    --dbm-success: #28a745;
    --dbm-warning: #FFBF00;
    --dbm-text: #444444;
    --dbm-bg-light: #f4f9ff;      /* Fondo muy suave azulado */
    --dbm-white: #ffffff;
    --dbm-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
    --dbm-shadow-hover: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* =========================================
   ESTILOS GENERALES Y RESET
   ========================================= */

html, body { 
    overflow-y: scroll !important; 
    overflow-x: hidden !important; 
    min-height: 100% !important; 
    height: auto !important; 
}

#page, .site, .site-content, #content, .content-area, main[role="main"], .elementor, .elementor-page, .elementor-section, .elementor-section-stretched, .elementor-container, .elementor-column, .elementor-column-wrap, .elementor-widget-wrap, .et_pb_section, .et_pb_row, .avada-container, .x-container, .x-section, [class*="overflow-hidden"], [class*="overflow_hidden"] { 
    height: auto !important; 
    min-height: auto !important; 
    overflow: visible !important; 
    overflow-x: visible !important; 
    overflow-y: visible !important; 
}

header, .site-header, .main-header, #site-header, .et_fixed_nav, .elementor-fixed-header, .fixed-nav, .fixed-header, .fixed-nav-bar { 
    position: fixed !important; 
    z-index: 99999999 !important; 
    top: 0 !important; 
}


/* --- CORRECCIÓN VISUAL: LISTA DESPLEGABLE --- */

/* --- SOLUCIÓN NUCLEAR PARA EL DROPDOWN CORTADO --- */

/* --- SOLUCIÓN PARA LISTA CORTADA (OVERFLOW) --- */

/* --- CORRECCIÓN FLOTANTE (OVERLAY) --- */

/* 1. El padre directo del input debe ser el ancla */
/* --- FIX FINAL: LISTA DESPLEGABLE --- */

/* 1. LIMITAR A 4 RESULTADOS */
/* --- LISTA FLOTANTE CORREGIDA (4 ÍTEMS) --- */

/* --- FIX DE CAPAS (Z-INDEX STACKING) --- */

/* 1. El Formulario (Padre de la lista) debe estar ENCIMA de los botones */
#dbm-search-form {
    position: relative !important;
    z-index: 50 !important; /* Capa Alta */
}

/* 2. Los Botones (que están debajo) deben estar en una capa INFERIOR */
.dbm-buttons-wrapper {
    position: relative !important;
    z-index: 10 !important; /* Capa Baja */
}

/* 3. Asegurar que el contenedor del input permita que la lista salga */
.dbm-autocomplete-wrapper {
    position: relative !important;
    z-index: 100 !important; /* Más alto que el propio formulario */
    overflow: visible !important;
}

/* 4. La Lista Flotante (Configuración Final) */
.dbm-autocomplete-items {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    
    /* Z-Index Supremo para ganar a todo */
    z-index: 999999 !important; 
    /* --- CAMBIO AQUÍ: Altura para 2 elementos --- */
    max-height: 200px !important; /* Ajustado para mostrar solo 2 */
    overflow-y: auto !important;  /* Mantiene el scroll */
    /* -------------------------------------------- */
    
    /* Estilo Visual */
    background: #ffffff !important;
    border: 1px solid #d1e3ff !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    
    /* Scroll y Limite (4 items aprox) */
    max-height: 220px !important;
    overflow-y: auto !important;
}

/* 5. FIX PARA ELEMENTOR (Si usas Elementor, esto es vital) */
/* Elementor suele recortar el contenido que se sale de la caja */
.elementor-widget-container,
.elementor-widget,
.elementor-column-wrap,
.elementor-element {
    overflow: visible !important;
}




/* 6. Fix específico para móviles si los botones "saltan" encima */
@media (max-width: 768px) {
    .dbm-search-form {
        margin-bottom: 0 !important;
        /* En móvil a veces transform: translate rompe el z-index, lo reseteamos si existe */
        transform: none !important; 
    }
}

/* =========================================
   FORMULARIO DE BÚSQUEDA (CONTENEDOR)
   ========================================= */

.dbm-search-container { 
    margin-bottom: 40px; 
    max-width: 950px; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 20px; 
    font-family: 'Quicksand', sans-serif; 
    font-weight: 500; 
}

.dbm-search-form { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    width: 100%; 
    flex-wrap: wrap; 
    justify-content: center; 
    background: rgba(255, 255, 255, 0.35); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    padding: 25px; 
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.dbm-search-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.15) !important;
    border-color: rgba(0, 191, 255, 0.6) !important;
}

/* Inputs y Selects */
.dbm-search-form select, 
.dbm-search-form input[type="text"].dbm-input-text-especialidad,
.dbm-search-form .dbm-city-filter-wrapper select { 
    padding: 12px 25px; 
    height: 50px; 
    line-height: normal; 
    border-radius: 50px; 
    font-weight: 500; 
    border: 1px solid #d1e3ff; 
    color: #555;
    background-color: #fafdff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
}

/* Icono flecha en selects */
.dbm-search-form select, 
.dbm-search-form .dbm-city-filter-wrapper select { 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300BFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-24.8%200l-87%2087-87-87a17.6%2017.6%200%200%200-24.8%2024.8l99.1%2099.2a17.6%2017.6%200%200%200%2024.8%200l99.1-99.2a17.6%2017.6%200%200%200%200-24.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px auto;
    appearance: none; -webkit-appearance: none;
}

.dbm-search-form input[type="text"].dbm-input-text-especialidad { flex: 2; min-width: 220px; }
.dbm-city-filter-wrapper { flex: 1; min-width: 200px; }

.dbm-search-form select:focus, 
.dbm-search-form input[type="text"].dbm-input-text-especialidad:focus { 
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.15); 
    border-color: var(--dbm-primary); 
    background-color: #fff;
    outline: none; 
}

/* Corrección de tamaño fuente en ciudad */
.dbm-search-form .dbm-city-filter-wrapper select,
.dbm-city-filter-wrapper select {
    font-size: 0.85em !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* =========================================
   BOTÓN BUSCAR (SOLUCIÓN DEFINITIVA "BLANCO")
   ========================================= */

.dbm-search-form input[type="submit"] { 
    /* Usamos la propiedad 'background' para forzar degradado y anular cualquier color plano */
    background: linear-gradient(135deg, var(--dbm-primary), var(--dbm-secondary)) !important; 
    
    /* Propiedades de texto forzadas */
    color: #ffffff !important; 
    -webkit-text-fill-color: #ffffff !important; /* Fix para Safari/Webkit */
    text-shadow: none !important;
    
    /* Reset de bordes y estilos base */
    border: none !important; 
    font-weight: 700 !important; 
    letter-spacing: 1.2px !important; 
    cursor: pointer !important; 
    font-size: 0.9em !important; 
    height: 50px !important;
    border-radius: 50px !important;
    box-shadow: var(--dbm-shadow) !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    
    /* Alineación de texto centrada */
    padding-left: 35px !important;     
    padding-right: 35px !important;
    text-align: center !important;     
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.dbm-search-form input[type="submit"]:hover { 
    background: linear-gradient(135deg, var(--dbm-secondary), var(--dbm-primary)) !important; 
    box-shadow: var(--dbm-shadow-hover) !important;
    transform: translateY(-2px) !important; 
}

.dbm-search-form input[type="submit"]:disabled,
.dbm-search-form input[type="submit"].disabled {
    background: #cccccc !important; 
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Ocultar elementos no deseados */
#dbm-retry-geo, 
.dbm-retry-geo-link {
    display: none !important;
}

/* =========================================
   ESPECIALIDADES Y FILTROS (PILLS)
   ========================================= */

.dbm-top-specialties-wrapper {
    width: 70% !important;
    max-width: 950px !important;
    margin: 25px auto 10px auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.dbm-top-specialties-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; 
    justify-content: center !important;
    gap: 10px !important;
}

.dbm-pill-btn {
    display: inline-block !important;
    padding: 8px 20px !important;
    background-color: #fff !important;
    color: var(--dbm-primary) !important;
    border: 1px solid var(--dbm-primary) !important;
    border-radius: 50px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.7em !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    white-space: nowrap !important;
    line-height: normal !important;
}

.dbm-pill-btn:hover {
    background: linear-gradient(135deg, var(--dbm-primary), var(--dbm-secondary)) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3) !important;
}

/* =========================================
   BOTONES GRANDES (MÉDICO GENERAL / ENFERMERÍA)
   ========================================= */

.dbm-buttons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 15px !important;
    margin: 15px auto 0 auto !important;
    max-width: 600px !important;
    width: 100% !important;
}

.dbm-btn-urgency {
    flex: 1 !important;
    min-width: 200px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #00BFFF, #1E90FF) !important; 
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    border: none !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    font-family: 'Quicksand', sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.dbm-btn-urgency:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6) !important;
}

/* Botón Enfermería (Color Específico) */
.dbm-btn-nursing {
    background: linear-gradient(135deg, #20B2AA, #008080) !important;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4) !important;
}

.dbm-btn-nursing:hover {
    background: linear-gradient(135deg, #008080, #20B2AA) !important;
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.6) !important;
}

/* =========================================
   GRID DE RESULTADOS (PROFILEGRID)
   ========================================= */

.dbm-user-grid { display: grid; grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 20px auto; padding: 0; gap: 10px; list-style: none; }
.dbm-user-card { background-color: var(--dbm-white); border: 1px solid rgba(204, 204, 204, 0.1); border-radius: 15px; padding: 20px; display: flex; align-items: center; box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; text-decoration: none !important; position: relative; overflow: hidden; font-family: 'Quicksand', sans-serif; font-weight: 500; }
li.dbm-verified-card .dbm-user-card { box-shadow: 0 0 15px rgba(0, 128, 0, 0.3); border-color: rgba(0, 128, 0, 0.2); }
.dbm-user-grid li:hover .dbm-user-card { box-shadow: 0 0 20px rgba(0, 0, 0, 0.25); transform: translateY(-2px); }
.dbm-avatar-wrapper { width: 75px; height: 75px; border-radius: 45%; overflow: hidden; margin-right: 26.46px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); flex-shrink: 0; }
.dbm-info { display: flex; flex-direction: column; padding-top: 5px; text-align: left; }
.dbm-name-wrapper { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.dbm-name-wrapper strong { text-align: left; font-size: 0.9em; line-height: 1.2; font-weight: 600; }
.dbm-verified-badge { font-size: 1em; color: var(--dbm-accent); line-height: 1; flex-shrink: 0; }
.dbm-detail-line { font-size: 0.75em; color: var(--dbm-text); line-height: 1.3; margin-bottom: 2px; text-align: left; }
.dbm-detail-line strong { color: #1976D2; font-weight: 600; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); }
.dbm-card-icon { margin-right: 5px; display: inline-block; vertical-align: middle; } 
.dbm-detail-line span:not(.status-available):not(.status-unavailable):not(.status-unavailable-override):not(.availability-detail):not(.dbm-verified-badge):not(.dbm-card-icon):not(.status-cita) { font-weight: 500; color: #0052cc !important; margin-right: 5px; }
.dbm-detail-line.dbm-small-text { font-size: 0.7em; color: #000000; }
.dbm-verified-ribbon { position: absolute; width: 80px; height: 80px; overflow: hidden; pointer-events: none; z-index: 3; top: -5px; left: -5px; }
.dbm-verified-ribbon span { position: absolute; display: block; width: 115px; padding: 3px 0; background-color: #0052cc; color: var(--dbm-white); font-size: 0.6em; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,.2); text-transform: uppercase; text-align: center; box-shadow: 0 0 5px rgba(0,0,0,.2); left: -18px; top: 22px; transform: rotate(-45deg); }

/* COLORES DE ESTADO (STATUS) */
.dbm-info .status-cita { color: #006400 !important; } /* Verde Oscuro */
.dbm-info .status-available { color: #28a745 !important; } /* Verde Éxito */
.dbm-info .status-unavailable { color: #C8A2C8 !important; } /* Lila */
.dbm-info .status-unavailable-override { color: #FFBF00 !important; } /* Naranja */

/* Color del bullet */
.dbm-info .status-cita::before { background-color: #006400 !important; }
.dbm-info .status-available::before { background-color: #28a745 !important; }
.dbm-info .status-unavailable::before { background-color: #C8A2C8 !important; }
.dbm-info .status-unavailable-override::before { background-color: #FFBF00 !important; }


/* =========================================
   LAYOUT DE RESULTADOS Y MAPA
   ========================================= */

.dbm-results-wrapper { display: flex; justify-content: center; gap: 30px; padding: 0 15px; max-width: 1400px; margin: 20px auto; align-items: flex-start; font-family: 'Quicksand', sans-serif; font-weight: 500; min-height: auto !important; }
.dbm-user-list-wrapper { flex-basis: 550px; flex-grow: 0; flex-shrink: 0; max-height: 85vh; overflow-y: auto; padding-right: 10px; position: relative; }
.dbm-user-list-wrapper::-webkit-scrollbar { width: 4px; background: transparent; }
.dbm-user-list-wrapper::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
/* --- FIX MAPA INVISIBLE --- */

#dbm-map-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

#dbm-map-container:hover {
  /* Sube el elemento y hace la sombra más profunda */
  transform: translateY(-5px); 
  box-shadow: 0 25px 50px -10px rgba(0,0,0,0.2);
}


#dbm-map-container {
    height: 100% !important;
    min-height: 800px !important; /* Altura mínima obligatoria */
    width: 100% !important;
     border-radius: 24px !important;
    /* box-shadow: 0 10px 20px rgba(0, 191, 255, 0.15);*/
     
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    background: #f4f9ff; /* Color de fondo por si tarda en cargar */
}




/* En móviles, altura fija */
@media (max-width: 1000px) {
    #dbm-map-container {
        min-height: 350px !important;
        margin-top: 20px !important;
    }
}
#dbm-profile-map { width: 100%; height: 400px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); margin-bottom: 20px; }

/* Paginación */
.dbm-pagination { clear: both; text-align: center; margin: 30px 0; font-family: 'Quicksand', sans-serif; font-weight: 500; }
.dbm-page-numbers { display: inline-block; padding: 0; margin: 0; list-style: none; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.dbm-page-numbers li { display: inline; margin: 0; }
.dbm-page-numbers a, .dbm-page-numbers span { display: inline-block; padding: 8px 14px; margin-left: -1px; line-height: 1.42857143; color: var(--dbm-accent); text-decoration: none; background-color: #fff; border: 1px solid #ddd; transition: background-color 0.2s ease, color 0.2s ease; }
.dbm-page-numbers li:first-child a, .dbm-page-numbers li:first-child span { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.dbm-page-numbers li:last-child a, .dbm-page-numbers li:last-child span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.dbm-page-numbers a:hover, .dbm-page-numbers a:focus { z-index: 2; color: #005a87; background-color: #eee; border-color: #ddd; }
.dbm-page-numbers .current { z-index: 3; color: #fff; cursor: default; background-color: var(--dbm-accent); border-color: var(--dbm-accent); font-weight: 600; }
.dbm-page-numbers .disabled { color: #777; cursor: not-allowed; background-color: #fff; border-color: #ddd; opacity: 0.6; }
.dbm-page-numbers .dbm-dots { color: #777; background-color: #fff; border-color: #ddd; cursor: default; }

/* Utilities */
.dbm-results-count { text-align: center; font-size: 0.9em; color: var(--dbm-text); margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.dbm-user-location-marker { display: block !important; }
.dbm-user-coordinates-footer { position: fixed; bottom: 0; left: 0; right: auto; background-color: rgba(149, 195, 243, 0.37); padding: 2px 8px; font-size: 0.4em; color: var(--dbm-white); font-weight: 500; border-top-right-radius: 4px; box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.1); z-index: 999 !important; display: block !important; }
.dbm-hp-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; pointer-events: none; }
.dbm-contact-reveal { display: inline-block; padding: 5px 12px; background: var(--dbm-bg-light); border-radius: 20px; font-size: 0.85em; color: #1976D2; cursor: pointer; border: 1px solid #1976D2; margin-top: 10px; font-weight: 600; }
.dbm-weather-container { padding: 0; text-align: center; margin-bottom: 25px; min-height: 20px; width: 100%; }
.dbm-weather-info, .dbm-weather-info-desktop { display: inline-block; padding: 0; background-color: transparent; box-shadow: none; font-size: 0.75em; font-weight: 500; color: var(--dbm-text); visibility: hidden; }
.dbm-weather-top-mobile { order: -3; display: block; width: 100%; box-sizing: border-box; }
.dbm-weather-above-city { position: absolute; top: -25px; left: 0; width: 100%; text-align: center; margin-bottom: 0; display: none; }

/* Loader General */
.dbm-loader-container { width: 100%; display: flex; justify-content: center; align-items: center; margin-top: 15px; flex-basis: 100%; }
.dbm-loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--dbm-primary); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; display: inline-block; margin-right: 10px; }
.dbm-loader-text { font-size: 0.9em; color: var(--dbm-text); font-weight: 600; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* =========================================
   MODAL DE GEOLOCALIZACIÓN
   ========================================= */

.dbm-modal-search-wrapper {
    position: relative !important; 
    margin-top: 15px;
    width: 100%;
}

/* Spinner Específico Geo */
.dbm-geo-spinner {
    position: absolute !important;
    right: 40px !important; 
    top: 50% !important;
    margin-top: -10px !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(0, 191, 255, 0.2) !important;
    border-top: 3px solid var(--dbm-primary) !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    z-index: 99 !important;
    display: none; 
}

#dbm-modal-geo-input, #dbm-modal-geo-input-nursing {
    width: 100%;
    padding: 10px 15px 10px 35px; /* Espacio para icono */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9em;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    padding-right: 60px; /* Espacio para la X */
}

#dbm-modal-geo-input:focus, #dbm-modal-geo-input-nursing:focus {
    background-color: #fff;
    border-color: var(--dbm-primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
    outline: none;
}

.dbm-modal-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1002;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.dbm-geo-result-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.85em;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
}

.dbm-geo-result-item:last-child { border-bottom: none; }
.dbm-geo-result-item:hover { background-color: #f0f9ff; color: var(--dbm-primary); }

.dbm-clear-btn {
    position: absolute;
    right: 30px; 
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    font-weight: bold;
    z-index: 10;
    line-height: 1;
}
.dbm-clear-btn:hover { color: #d00; }

/* Etiqueta de Cercanía */
.dbm-dist-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 3px 0;
    gap: 8px;
}

.dbm-badge-near {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-block;
    animation: pulseBadge 2s infinite;
}

.dbm-modal-card-dist {
    margin: 0 !important;
    display: inline-block;
}

@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


/* =========================================
   MODAL GENERAL (RESULTADOS)
   ========================================= */

.dbm-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    z-index: 2147483647 !important; 
    display: none; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(5px); 
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.dbm-modal-overlay.active { display: flex; opacity: 1; }

.dbm-modal-container {
    background: #fff; width: 90%; max-width: 1100px; 
    height: 65vh !important;
    border-radius: 20px; overflow: hidden; display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    flex-direction: row; position: relative; animation: slideUp 0.4s ease;
    margin-top: 30px !important; 
    max-height: 700px;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.dbm-modal-close {
    position: absolute; top: 15px; right: 15px; background: none;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    cursor: pointer; z-index: 1001;
    font-size: 24px; color: #333; display: flex; justify-content: center; align-items: center;
    transition: transform 0.2s;
}
.dbm-modal-close:hover { transform: scale(1.1); background: #f0f0f0; }

.dbm-modal-list-panel {
    width: 40%; background: #f9fbfc; border-right: 1px solid #e2e8f0;
    display: flex; flex-direction: column; height: 100%;
}
.dbm-modal-map-panel { width: 60%; height: 100%; position: relative; }
#dbm-modal-map { width: 100%; height: 100%; }

.dbm-modal-header { padding: 20px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.dbm-modal-header h3 { margin: 0; color: var(--dbm-secondary); font-size: 1.2em; font-weight: 700; }
.dbm-modal-header p { margin: 5px 0 0 0; font-size: 0.85em; color: #666; }

.dbm-modal-results { flex: 1; overflow-y: auto; padding: 15px; }
.dbm-modal-card {
    background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 12px;
    border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 15px;
}
.dbm-modal-card:hover, .dbm-modal-card.active {
    border-color: var(--dbm-primary); box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15); transform: translateY(-2px);
}
.dbm-modal-card img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.dbm-modal-card-info { flex: 1; }
.dbm-modal-card-name { font-weight: 600; color: #333; font-size: 0.95em; display: block; margin-bottom: 2px; }
.dbm-modal-card-dist { font-size: 0.8em; color: var(--dbm-success); font-weight: 600; background: #e6fffa; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.dbm-modal-card-address { font-size: 0.75em; color: #888; margin-top: 4px; display: block; }
.dbm-modal-cta-call {
    text-decoration: none; background: var(--dbm-secondary); color: #fff;
    width: 35px; height: 35px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; font-size: 1.1em;
}

/* Modal Enfermería (Theme Override) */
.dbm-container-nursing { max-width: 800px !important; }
.dbm-modal-nursing-theme .dbm-full-width-panel { width: 100% !important; border-right: none; }
.dbm-modal-nursing-theme .dbm-modal-map-panel { display: none !important; }

.dbm-modal-nursing-theme .dbm-modal-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    align-content: start;
}

.dbm-modal-nursing-theme .dbm-modal-card {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    padding: 15px !important;
    margin-bottom: 0;
    height: 100%;
}

.dbm-modal-nursing-theme .dbm-modal-card img {
    margin-right: 15px !important;
    margin-bottom: 0 !important;
    width: 65px !important; 
    height: 65px !important;
}

.dbm-modal-nursing-theme .dbm-modal-card-info {
    width: auto !important;
    flex: 1;
    align-items: flex-start !important;
    gap: 5px;
}

.dbm-nursing-specialty {
    font-size: 0.85em;
    color: #20B2AA;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.dbm-nursing-phone {
    font-size: 0.9em;
    color: #555;
    background: #f0fdf4;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #dcfce7;
    margin-top: 5px;
    display: inline-block;
}

/* Paginación Modal */
.dbm-modal-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.dbm-modal-page-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--dbm-text);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.dbm-modal-page-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.dbm-modal-page-btn.active {
    background: var(--dbm-secondary);
    color: #fff;
    border-color: var(--dbm-secondary);
    box-shadow: 0 4px 10px rgba(0,0,139,0.2);
}

.dbm-modal-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   SKELETON LOADING (UNIFICADO)
   ========================================= */

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.dbm-skeleton-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dbm-skeleton-avatar, .dbm-skeleton-line {
    background: #f6f7f8;
    background-image: linear-gradient(90deg, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 200% 100%; 
    animation: shimmer 1.5s infinite linear forwards;
}

.dbm-skeleton-avatar {
    width: 50px !important; height: 50px !important; border-radius: 50% !important; flex-shrink: 0;
}
.dbm-skeleton-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dbm-skeleton-line { height: 12px !important; border-radius: 4px !important; }
.dbm-line-medium { width: 70%; } .dbm-line-short { width: 40%; } .dbm-line-long { width: 90%; }


/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (min-width: 1001px) { 
    .dbm-user-location-marker { display: none !important; } 
    .dbm-weather-above-city { display: block !important; }
    .dbm-weather-top-mobile { display: none !important; }
}

@media (max-width: 1000px) {
    .dbm-detail-line.status-line { display: block; }
    .dbm-info .status-available, .dbm-info .status-unavailable, .dbm-info .status-unavailable-override, .dbm-info .status-cita { display: block; margin-right: 0; }
    
    .dbm-search-form input[type="submit"] { 
        width: 100%; 
        flex-basis: 100%; 
        margin-top: 15px; 
    }
    
    .dbm-results-wrapper { flex-direction: column; gap: 20px; padding: 0 15px; max-width: 900px; margin: 20px auto; }
    .dbm-user-list-wrapper { flex-basis: auto; width: 100%; max-width: 100%; order: 1; max-height: none; overflow-y: visible; }
    /* --- FIX MAPA INVISIBLE --- */
#dbm-map-container {
    height: 100% !important;
    min-height: 500px !important; /* Altura mínima obligatoria */
    width: 100% !important;
    
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    background: #f4f9ff; /* Color de fondo por si tarda en cargar */
}

/* En móviles, altura fija */
@media (max-width: 1000px) {
    #dbm-map-container {
        min-height: 350px !important;
        margin-top: 20px !important;
         
    }
}
}

/* --- MÓVIL PRINCIPAL (TABLET VERTICAL Y CELULAR) --- */
@media (max-width: 768px) {

    /* 1. BUSCADOR COMPACTO Y CUADRADO */
    .dbm-search-form { 
        display: inline-flex !important;
        gap: 15px; 
        padding: 25px 15px !important; 
        border-radius: 20px !important; 
        width: 100% !important;  
        max-width: 100% !important; 
        margin-left: 0 !important;  
        margin-right: 0 !important; 
        box-sizing: border-box !important;
    }

    .dbm-search-form input[type="text"].dbm-input-text-especialidad,
    .dbm-city-filter-wrapper,
    .dbm-search-form input[type="submit"] { 
        width: 100% !important; 
        min-width: 100% !important; 
        margin: 0 !important; 
    }

    /* Ajuste texto botón móvil */
    .dbm-search-form input[type="submit"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center !important;
    }

    /* 2. CARRUSEL HORIZONTAL PARA ESPECIALIDADES */
    .dbm-top-specialties-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* CORRECCIÓN FINAL: CONTENEDOR MÁS ALTO (MAYOR PADDING Y MIN-HEIGHT) */
    .dbm-top-specialties-container {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        
        padding-top: 25px !important;    /* Aumentado */
        padding-bottom: 35px !important; /* Aumentado */
        padding-left: 15px !important;
        padding-right: 15px !important;
        
        width: 100% !important;
        min-height: 80px !important;     /* Altura mínima asegurada */
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
    }
    .dbm-pill-btn { flex-shrink: 0 !important; }
    .dbm-top-specialties-container::-webkit-scrollbar { display: none; }

    /* 3. BOTONES GRANDES */
    .dbm-buttons-wrapper {
        flex-direction: row !important; 
        gap: 10px !important;
    }
    .dbm-btn-urgency {
        min-width: auto !important; 
        padding: 10px 5px !important;
        font-size: 0.85em !important;
    }

    /* 4. MODALES EN MÓVIL */
    .dbm-modal-container { 
        flex-direction: column; 
        width: 95% !important; 
        height: 80vh !important; 
        overflow: hidden; 
        border-radius: 15px;
        margin-top: 10px !important; 
        max-height: none;
    }

    .dbm-modal-map-panel { width: 100%; height: 55%; order: 1; position: relative; }
    #dbm-modal-map { height: 100%; }
    .dbm-modal-list-panel { width: 100%; height: 45%; order: 2; display: flex; flex-direction: column; background: #fff; z-index: 20; border-top: 1px solid #eee; }

    .dbm-modal-header { padding: 10px 15px; background: #fff; flex-shrink: 0; border-bottom: 1px solid #f0f0f0; }
    .dbm-modal-header h3 { font-size: 1em; margin-bottom: 5px; }
    .dbm-modal-header p { display: none; }

    /* Resultados Horizontal (Carrusel) */
    .dbm-modal-results {
        display: flex;
        flex-direction: row; 
        overflow-x: auto; 
        overflow-y: hidden; 
        padding: 10px 15px;
        gap: 15px;
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; 
        flex: 1; 
        align-items: center; 
        background-color: #f8fafc;
    }
    .dbm-modal-results::-webkit-scrollbar { display: none; }

    /* Tarjetas Compactas */
    .dbm-modal-card {
        min-width: 85%; 
        width: 85%;
        margin-bottom: 0; 
        scroll-snap-align: center; 
        background: #fff;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: row; 
        align-items: center;
        padding: 8px 12px !important;
        height: auto !important;
        min-height: auto !important;
        gap: 10px !important;
    }
    .dbm-modal-card.active { border-color: var(--dbm-primary); box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2); transform: none; }

    .dbm-modal-card img { width: 50px !important; height: 50px !important; margin-right: 10px !important; flex-shrink: 0; }
    .dbm-modal-card-name { font-size: 0.9em !important; margin-bottom: 0 !important; line-height: 1.2 !important; }
    .dbm-modal-card-address, .dbm-modal-card-dist { font-size: 0.7em !important; margin-top: 2px !important; }
    .dbm-modal-cta-call { width: 30px !important; height: 30px !important; font-size: 0.9em !important; }

    .dbm-modal-pagination { padding: 5px; overflow-x: auto; white-space: nowrap; justify-content: flex-start; }
    .dbm-modal-close { background: none !important; top: 10px; right: 10px; width: 40px; height: 30px; font-size: 25px; color: black; font-weight: 700; }

    /* Enfermería Móvil (Vertical) */
    .dbm-modal-nursing-theme .dbm-modal-results.dbm-vertical-list { display: block !important; overflow-x: hidden !important; overflow-y: auto !important; padding-bottom: 20px; }
    .dbm-modal-nursing-theme .dbm-modal-card { width: 100% !important; min-width: 100% !important; margin-bottom: 15px !important; padding: 10px !important; flex-direction: row !important; }
    .dbm-nursing-specialty { font-size: 0.7em !important; margin-bottom: 2px !important; }
    .dbm-nursing-phone { padding: 2px 8px !important; font-size: 0.75em !important; margin-top: 3px !important; }
}


/* =========================================
   AUTOCOMPLETADO (DROPDOWN)
   ========================================= */

/* 1. WRAPPER (CONTENEDOR DEL INPUT)
   IMPORTANTE: En tu HTML debes envolver el input de texto en un div con esta clase.
   Esto asegura que el dropdown salga exactamente debajo del input, no de todo el formulario.
*/
.dbm-autocomplete-wrapper {
    position: relative !important;
    display: block;
    /* Heredamos las propiedades de tamaño que antes tenía el input solo */
    flex: 2;
    min-width: 220px;
    width: 100%;
}

/* El input dentro del wrapper debe ocupar todo el espacio */
.dbm-autocomplete-wrapper input[type="text"].dbm-input-text-especialidad {
    width: 100% !important;
    position: relative;
    z-index: 2; /* Para que el texto pase por encima si hay solapamientos */
}

/* Mejora del dropdown de autocompletado */
.dbm-autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999 !important; /* Asegurar que flote sobre el mapa */
    border: 1px solid #d1e3ff;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
}

.dbm-autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background 0.2s;
}

.dbm-autocomplete-items div:hover {
    background-color: #eef8ff;
    color: #0073aa;
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. ITEMS INDIVIDUALES */
.dbm-autocomplete-items div {
    padding: 12px 20px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f4f9ff;
    color: var(--dbm-text);
    font-size: 0.95em;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    text-align: left;
    transition: all 0.1s ease;
}

/* Último elemento sin borde y redondeado */
.dbm-autocomplete-items div:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}
.dbm-autocomplete-items div:first-child {
    border-radius: 15px 15px 0 0;
}

/* 4. ESTADOS (HOVER Y ACTIVO POR TECLADO) */
.dbm-autocomplete-items div:hover,
.dbm-autocomplete-items div.dbm-autocomplete-active {
    background-color: #f0f9ff !important; /* Fondo celeste muy suave */
    color: var(--dbm-primary) !important;
    padding-left: 25px; /* Pequeño desplazamiento visual */
    font-weight: 600;
}

/* Resaltado del texto coincidente (lo que el usuario escribió) */
.dbm-autocomplete-items div strong {
    color: var(--dbm-secondary);
    font-weight: 700;
}

/* 5. SCROLLBAR PERSONALIZADO PARA EL DROPDOWN */
.dbm-autocomplete-items::-webkit-scrollbar {
    width: 6px;
}
.dbm-autocomplete-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 15px 15px 0;
}
.dbm-autocomplete-items::-webkit-scrollbar-thumb {
    background: #c1ddff;
    border-radius: 10px;
}
.dbm-autocomplete-items::-webkit-scrollbar-thumb:hover {
    background: var(--dbm-secondary);
}

/* 6. AJUSTE RESPONSIVE (MÓVIL) */
@media (max-width: 768px) {
    .dbm-autocomplete-wrapper {
        flex: 100%;
        min-width: 100%;
        width: 100%;
    }
    
    .dbm-autocomplete-items {
        /* En móvil, pegamos un poco más el dropdown */
        margin-top: 4px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}


/* --- FIX FINAL: LISTA FLOTANTE (OVERLAY) --- */

/* 1. El contenedor del input es la referencia */
.dbm-autocomplete-wrapper {
    position: relative !important;
    z-index: 10000 !important; /* Muy alto para estar sobre botones */
    overflow: visible !important; /* Permitir que la lista salga */
}

/* 2. La Lista Flotante */
.dbm-autocomplete-items {
    position: absolute !important;
    top: 100% !important; /* Justo debajo del input */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    
    /* Dimensiones y Scroll */
    max-height: 220px !important; /* Muestra aprox 4 elementos */
    overflow-y: auto !important;
    
    /* Apariencia */
    background-color: #ffffff !important;
    border: 1px solid #d1e3ff !important;
    border-top: none !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    
    /* Capa Superior */
    z-index: 99999 !important; 
}

/* 3. Corrección para Elementor (Si usas Elementor) */
/* Elementor suele recortar el contenido que sobresale. Esto lo evita. */
.elementor-widget-container,
.elementor-widget,
.elementor-column-wrap,
.elementor-element {
    overflow: visible !important;
}

/* 4. Asegurar que los botones de abajo no tapen */
.dbm-buttons-wrapper {
    position: relative !important;
    z-index: 1 !important; /* Nivel bajo */
}

/* --- SWITCH TOGGLE --- */
.dbm-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
}

.dbm-switch input { opacity: 0; width: 0; height: 0; }

.dbm-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.dbm-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .dbm-slider { background-color: #2196F3; }
input:focus + .dbm-slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .dbm-slider:before { transform: translateX(26px); }

.dbm-slider.round { border-radius: 34px; }
.dbm-slider.round:before { border-radius: 50%; }

.dbm-switch-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    vertical-align: middle;
}


/* --- UX MÓVIL: STICKY MAP TOGGLE --- */

.dbm-mobile-toggle-wrapper { display: none; } /* Oculto en PC */

@media (max-width: 768px) {
    /* 1. Botón Flotante */
    .dbm-mobile-toggle-wrapper {
        display: block;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999999;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    }

    .dbm-floating-btn {
        background-color: #222;
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.2s;
    }
    
    .dbm-floating-btn:active { transform: scale(0.95); }

    /* 2. Comportamiento por defecto (Ver Lista, Ocultar Mapa) */
    #dbm-map-container { 
        display: none !important; /* Mapa oculto al inicio en móvil */
        height: 70vh !important;  /* Altura grande para cuando se vea */
    }
    
    .dbm-user-list-wrapper {
        display: block !important;
    }

    /* 3. Comportamiento "Modo Mapa" (Activado por JS) */
    body.dbm-show-map #dbm-map-container { display: block !important; }
    body.dbm-show-map .dbm-user-list-wrapper { display: none !important; }
    body.dbm-show-map .dbm-pagination { display: none !important; }
}


/* --- FIX AUTOCOMPLETADO MÓVIL --- */
@media (max-width: 768px) {
    .dbm-autocomplete-items {
        /* Asegurar que se vea sobre todo lo demás */
        z-index: 9999999 !important; 
        
        /* Limitar altura para que quepa arriba del teclado */
        max-height: 180px !important; 
        
        /* Forzar colores para evitar texto blanco sobre fondo blanco */
        background-color: #ffffff !important;
        color: #333333 !important;
        border: 1px solid #ccc !important;
        
        /* Sombra fuerte para distinguirlo */
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    }

    /* Asegurar que el contenedor padre no recorte la lista */
    .dbm-autocomplete-wrapper,
    .dbm-search-form,
    .dbm-search-container {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Aumentar tamaño de letra de opciones para facilitar el toque */
    .dbm-autocomplete-items div {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
}

/* --- ORDENAMIENTO DE CLÍNICAS: Manda el ID 10 al final --- */
.dbm-filter-clinics-active {
    display: grid;
}

.dbm-filter-clinics-active li[data-group-id="10"] {
    order: 99 !important; /* Visualmente los coloca al fondo de la lista */
}



/* --- SEGMENTED CONTROL DE 3 ESTADOS --- */
.dbm-segmented-control {
    display: inline-flex;
    background-color: #f4f9ff;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #d1e3ff;
}
.dbm-segmented-control input[type="radio"] {
    display: none;
}
.dbm-segmented-control label {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--dbm-text);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0;
}
.dbm-segmented-control input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--dbm-primary), var(--dbm-secondary));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3);
}


















