.bbm-contenedor {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.bbm-buscador {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bbm-fila {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.bbm-campo {
    flex: 1;
    min-width: 200px;
}

.bbm-campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbm-campo select,
.bbm-campo input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: white;
}

.bbm-campo select:focus,
.bbm-campo input:focus {
    outline: none;
    border-color: #28a745;
}

.bbm-campo-botones {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.bbm-btn-primario,
.bbm-btn-secundario {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bbm-btn-primario {
    background: #28a745;
    color: white;
}

.bbm-btn-primario:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.bbm-btn-secundario {
    background: #6c757d;
    color: white;
}

.bbm-btn-secundario:hover {
    background: #5a6268;
}

.bbm-contenido {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: 700px;
}

.bbm-mapa-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

#bbm-mapa {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

#bbm-leyenda-geo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bbm-circulo {
    width: 16px;
    height: 16px;
    border: 3px solid #28a745;
    border-radius: 50%;
    display: inline-block;
}

.bbm-resultados-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#bbm-info-resultados {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

#bbm-lista-sucursales {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.bbm-sucursal-card {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.bbm-sucursal-card:hover {
    background: #f8f9fa;
}

.bbm-sucursal-card.activa {
    background: #e8f5e9;
    border-left: 4px solid #28a745;
}

.bbm-sucursal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bbm-sucursal-nombre {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.bbm-badge-nueva {
    background: #ffc107;
    color: #212529;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bbm-sucursal-direccion {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bbm-sucursal-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #868e96;
    margin-bottom: 10px;
}

.bbm-sucursal-distancia {
    color: #28a745;
    font-weight: 600;
}

.bbm-sucursal-acciones {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bbm-btn-mapa,
.bbm-btn-direcciones {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.bbm-btn-mapa {
    background: #e9ecef;
    color: #495057;
    border: none;
    cursor: pointer;
}

.bbm-btn-mapa:hover {
    background: #dee2e6;
}

.bbm-btn-direcciones {
    background: #28a745;
    color: white;
}

.bbm-btn-direcciones:hover {
    background: #218838;
}

.bbm-horarios {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
}

.bbm-horarios-titulo {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.bbm-horario-fila {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.bbm-horario-dia {
    color: #868e96;
}

.bbm-horario-hora {
    color: #212529;
    font-weight: 500;
}

#bbm-paginacion {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.bbm-pagina {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.bbm-pagina:hover {
    background: #e9ecef;
}

.bbm-pagina.activa {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.bbm-pagina:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bbm-oculto {
    display: none !important;
}

.bbm-cargando {
    text-align: center;
    padding: 40px;
    color: #868e96;
}

.bbm-sin-resultados {
    text-align: center;
    padding: 40px;
    color: #868e96;
}

.bbm-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.bbm-popup-content {
    padding: 16px;
    min-width: 280px;
}

.bbm-popup-titulo {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #212529;
}

.bbm-popup-direccion {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .bbm-contenido {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .bbm-mapa-wrapper {
        height: 400px;
    }
    
    .bbm-resultados-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 640px) {
    .bbm-fila {
        flex-direction: column;
    }
    
    .bbm-campo {
        min-width: 100%;
    }
    
    .bbm-campo-botones {
        width: 100%;
    }
    
    .bbm-btn-primario,
    .bbm-btn-secundario {
        flex: 1;
    }
}